diff --git a/back/model-config.json b/back/model-config.json index b6d304675..eda9114ac 100644 --- a/back/model-config.json +++ b/back/model-config.json @@ -210,5 +210,8 @@ }, "MrwService": { "dataSource": "vn" + }, + "CompanyI18n": { + "dataSource": "vn" } -} \ No newline at end of file +} diff --git a/back/models/companyI18n.json b/back/models/companyI18n.json new file mode 100644 index 000000000..19fc4aa00 --- /dev/null +++ b/back/models/companyI18n.json @@ -0,0 +1,22 @@ +{ + "name": "CompanyI18n", + "base": "VnModel", + "options": { + "mysql": { + "table": "companyI18n" + } + }, + "properties": { + "companyFk": { + "type": "number", + "id": 1 + }, + "lang": { + "type": "string", + "id": 2 + }, + "footnotes": { + "type": "string" + } + } +} diff --git a/db/versions/11309-pinkGalax/00-firstScript.sql b/db/versions/11309-pinkGalax/00-firstScript.sql new file mode 100644 index 000000000..cfe85ed7c --- /dev/null +++ b/db/versions/11309-pinkGalax/00-firstScript.sql @@ -0,0 +1,3 @@ + +INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId) + VALUES ('CompanyI18n','*','*','ALLOW','ROLE','employee');