From 26e514666412348727e1a9b99b7e187796337236 Mon Sep 17 00:00:00 2001 From: carlossa Date: Fri, 18 Oct 2024 07:55:37 +0200 Subject: [PATCH] fix: refs #4774 model backs --- back/model-config.json | 5 ++++- back/models/companyI18n.json | 22 +++++++++++++++++++ .../11309-pinkGalax/00-firstScript.sql | 3 +++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 back/models/companyI18n.json create mode 100644 db/versions/11309-pinkGalax/00-firstScript.sql 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');