From 4c1ff2e4d7b53a7eaf15dea69b7b6f10bb6949d5 Mon Sep 17 00:00:00 2001 From: sergiodt Date: Thu, 14 Sep 2023 08:27:49 +0200 Subject: [PATCH] refs #6141feat:buyer model --- back/model-config.json | 3 +++ back/models/buyer.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 back/models/buyer.json diff --git a/back/model-config.json b/back/model-config.json index b88956dee..ebc0e321b 100644 --- a/back/model-config.json +++ b/back/model-config.json @@ -15,6 +15,9 @@ }, "Bank": { "dataSource": "vn" + }, + "Buyer": { + "dataSource": "vn" }, "Campaign": { "dataSource": "vn" diff --git a/back/models/buyer.json b/back/models/buyer.json new file mode 100644 index 000000000..a17d3b538 --- /dev/null +++ b/back/models/buyer.json @@ -0,0 +1,28 @@ +{ + "name": "Buyer", + "base": "VnModel", + "options": { + "mysql": { + "table": "buyer" + } + }, + "properties": { + "userFk": { + "type": "number", + "required": true, + "id": true + }, + "nickname": { + "type": "string", + "required": true + } + }, + "acls": [ + { + "accessType": "READ", + "principalType": "ROLE", + "principalId": "employee", + "permission": "ALLOW" + } + ] +}