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.
74 lines
2.2 KiB
JSON
74 lines
2.2 KiB
JSON
{
|
|
"MetaData" : {
|
|
"id" : "CORE",
|
|
"name" : {
|
|
"default" : "Core plugin",
|
|
"CZ" : "Jádro"
|
|
},
|
|
"description" : {
|
|
"default" : "",
|
|
"CZ" : ""
|
|
},
|
|
"schemaVersion" : 1,
|
|
"sql" : [
|
|
"CREATE TABLE \"User\" (
|
|
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
\"login\" TEXT NULL,
|
|
\"password\" TEXT NULL,
|
|
\"name\" TEXT NULL,
|
|
\"lastModDate\" TEXT NULL,
|
|
\"createDate\" TEXT NULL,
|
|
\"active\" INTEGER NOT NULL,
|
|
\"isAdmin\" INTEGER NOT NULL);
|
|
|
|
CREATE TABLE \"User_listRoles\" (
|
|
\"object_id\" INTEGER NOT NULL,
|
|
\"value\" INTEGER NOT NULL,
|
|
CONSTRAINT \"object_id_fk\"
|
|
FOREIGN KEY (\"object_id\")
|
|
REFERENCES \"User\" (\"id\")
|
|
ON DELETE CASCADE,
|
|
CONSTRAINT \"value_fk\"
|
|
FOREIGN KEY (\"value\")
|
|
REFERENCES \"Role\" (\"id\")
|
|
DEFERRABLE INITIALLY DEFERRED);
|
|
|
|
CREATE INDEX \"User_listRoles_object_id_i\"
|
|
ON \"User_listRoles\" (\"object_id\");
|
|
|
|
CREATE TABLE \"Role\" (
|
|
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
\"name\" TEXT NULL,
|
|
\"lastModDate\" TEXT NULL,
|
|
\"createDate\" TEXT NULL,
|
|
\"active\" INTEGER NOT NULL);
|
|
|
|
CREATE TABLE \"Role_listPermissions\" (
|
|
\"object_id\" INTEGER NOT NULL,
|
|
\"value\" INTEGER NOT NULL,
|
|
CONSTRAINT \"object_id_fk\"
|
|
FOREIGN KEY (\"object_id\")
|
|
REFERENCES \"Role\" (\"id\")
|
|
ON DELETE CASCADE,
|
|
CONSTRAINT \"value_fk\"
|
|
FOREIGN KEY (\"value\")
|
|
REFERENCES \"Permission\" (\"id\")
|
|
DEFERRABLE INITIALLY DEFERRED);
|
|
|
|
CREATE INDEX \"Role_listPermissions_object_id_i\"
|
|
ON \"Role_listPermissions\" (\"object_id\");
|
|
|
|
CREATE TABLE \"Permission\" (
|
|
\"id\" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
\"pluginId\" TEXT NULL,
|
|
\"permissionName\" TEXT NULL,
|
|
\"lastModDate\" TEXT NULL,
|
|
\"createDate\" TEXT NULL,
|
|
\"active\" INTEGER NOT NULL);"
|
|
|
|
|
|
],
|
|
"dependencies" : []
|
|
}
|
|
}
|