u
This commit is contained in:
@@ -118,7 +118,6 @@ BEGIN
|
||||
reducedtaxrate INT NULL,
|
||||
taxfreerate INT NULL,
|
||||
poscustomergroup_id INT NOT NULL,
|
||||
CONSTRAINT UQ_company_name UNIQUE (name),
|
||||
CONSTRAINT FK_company_root_category FOREIGN KEY (root_category_id) REFERENCES category(id) ON DELETE SET NULL,
|
||||
CONSTRAINT FK_company_default_language FOREIGN KEY (default_language_id) REFERENCES language(id) ON DELETE SET NULL,
|
||||
CONSTRAINT FK_company_taxrate FOREIGN KEY (taxrate) REFERENCES tax(id) ON DELETE NO ACTION,
|
||||
|
||||
@@ -53,7 +53,7 @@ CREATE TABLE IF NOT EXISTS pic (
|
||||
export const INIT_COMPANY = `
|
||||
CREATE TABLE IF NOT EXISTS company (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name TEXT NOT NULL COLLATE NOCASE UNIQUE,
|
||||
name TEXT NOT NULL COLLATE NOCASE,
|
||||
root_category_id INTEGER,
|
||||
default_language_id INTEGER,
|
||||
taxrate INTEGER,
|
||||
|
||||
Reference in New Issue
Block a user