refs #7407 create models #2603

Merged
carlossa merged 7 commits from 7407-workerMedical into dev 2024-09-04 13:07:52 +00:00
2 changed files with 15 additions and 0 deletions
Showing only changes of commit 774d55d4ae - Show all commits

View File

@ -3882,3 +3882,12 @@ INSERT INTO `vn`.`calendarHolidays` (calendarHolidaysTypeFk, dated, calendarHoli
(1, '2001-05-17', 1, 5),
(1, '2001-05-18', 1, 5);
INSERT INTO vn.medicalReview
(id, workerFk, centerFk, `date`, `time`, isFit, amount, invoice, remark)
VALUES(1, 1106, 1, '2000-01-01', '08:10', 1, 200.0, NULL, '');
INSERT INTO vn.medicalReview
(id, workerFk, centerFk, `date`, `time`, isFit, amount, invoice, remark)
VALUES(2, 1106, 2, '2001-01-01', '09:10', 0, 10.0, NULL, NULL);
INSERT INTO vn.medicalReview
(id, workerFk, centerFk, `date`, `time`, isFit, amount, invoice, remark)
VALUES(3, 9, 2, '2000-01-01', '8:00', 1, 150.0, NULL, NULL);

View File

@ -0,0 +1,6 @@
-- Place your SQL code here
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES
('MedicalReview', '*', '*', 'ALLOW', 'ROLE', 'hr'),
('MedicalCenter', '*', '*', 'ALLOW', 'ROLE', 'hr'),
('Worker', '__get__medicalReview', '*', 'ALLOW', 'ROLE', 'hr');
Review

Es la primera vez que veo este tipo de ACL, como funciona?
Gracias, de antemano

Es la primera vez que veo este tipo de ACL, como funciona? Gracias, de antemano
Review

por loopback, hay que ponerlos asi

por loopback, hay que ponerlos asi