You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
{
|
|
"id" : "SHOP",
|
|
"name" : {
|
|
"default" : "Shop",
|
|
"CZ" : "Prodejna"
|
|
},
|
|
"descriptoin" : {
|
|
"default" : "",
|
|
"CZ" : ""
|
|
},
|
|
"schemaVersion" : 1,
|
|
"sql" : [
|
|
"CREATE TABLE \"VoucherItem\" (
|
|
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
\"name\" TEXT NULL,
|
|
\"count\" INTEGER NOT NULL,
|
|
\"unitPrice\" INTEGER NOT NULL,
|
|
\"vatRate\" INTEGER NOT NULL,
|
|
\"priceWitouthVat\" INTEGER NOT NULL,
|
|
\"price\" INTEGER NOT NULL,
|
|
\"refId\" INTEGER NOT NULL,
|
|
\"itemPlugin\" TEXT NULL,
|
|
\"vatType\" INTEGER NOT NULL,
|
|
\"voucher\" INTEGER NOT NULL,
|
|
CONSTRAINT \"voucher_fk\"
|
|
FOREIGN KEY (\"voucher\")
|
|
REFERENCES \"Voucher\" (\"id\")
|
|
DEFERRABLE INITIALLY DEFERRED);
|
|
|
|
CREATE TABLE \"Voucher\" (
|
|
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
\"name\" TEXT NULL,
|
|
\"description\" TEXT NULL,
|
|
\"contact\" INTEGER NULL,
|
|
\"vatRateHigh\" INTEGER NOT NULL,
|
|
\"vatRateFirstLower\" INTEGER NOT NULL,
|
|
\"vatRateSecondLower\" INTEGER NOT NULL,
|
|
\"priceNoVat\" INTEGER NOT NULL,
|
|
\"priceVatHigh\" INTEGER NOT NULL,
|
|
\"priceVatFirstLower\" INTEGER NOT NULL,
|
|
\"priceVatSecondLower\" INTEGER NOT NULL,
|
|
\"priceWitouthVat\" INTEGER NOT NULL,
|
|
\"totalPriceVatHigh\" INTEGER NOT NULL,
|
|
\"totalPriceVatFirstLower\" INTEGER NOT NULL,
|
|
\"totalPriceVatSecondLower\" INTEGER NOT NULL,
|
|
\"totalPrice\" INTEGER NOT NULL,
|
|
\"status\" INTEGER NOT NULL,
|
|
CONSTRAINT \"contact_fk\"
|
|
FOREIGN KEY (\"contact\")
|
|
REFERENCES \"AddressbookData\" (\"id\")
|
|
DEFERRABLE INITIALLY DEFERRED);
|
|
"
|
|
],
|
|
"dependencies" : [ "ADDRESSBOOK" ]
|
|
}
|