Files
prodejna/commodity/commodity.json
T

34 lines
772 B
JSON
Raw Normal View History

2016-03-02 23:26:37 +01:00
{
"id" : "COMMODITY",
"name" : {
"default" : "Commodity",
"CZ" : "Zboží"
},
"descriptoin" : {
"default" : "",
"CZ" : ""
},
"schemaVersion" : 1,
"sql" : [
"CREATE TABLE \"CommodityTypeData\" (
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
\"name\" TEXT NULL);
CREATE TABLE \"CommodityData\" (
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
\"name\" TEXT NULL,
\"shortName\" TEXT NULL,
\"code\" TEXT NULL,
\"type\" INTEGER NULL,
\"price\" INTEGER NOT NULL,
\"vat\" INTEGER NOT NULL,
\"count\" INTEGER NOT NULL,
CONSTRAINT \"type_fk\"
FOREIGN KEY (\"type\")
REFERENCES \"CommodityTypeData\" (\"id\")
DEFERRABLE INITIALLY DEFERRED);"
],
"dependencies" : []
}