feat: refs #7874 clientObservationType
gitea/salix/pipeline/pr-dev Build queued... Details

This commit is contained in:
Jorge Penadés 2024-09-13 11:59:28 +02:00
parent 8fce0d969b
commit cfbc3692e9
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
-- Place your SQL code here
CREATE TABLE IF NOT EXISTS vn.clientObservationType(
id tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
code varchar(45) NOT NULL,
description varchar(50) NOT NULL,
PRIMARY KEY (id)
);
ALTER TABLE vn.clientObservation ADD COLUMN typeFk tinyint(3) unsigned NOT NULL;
ALTER TABLE vn.clientObservation ADD CONSTRAINT clientObservationTypeFk FOREIGN KEY (typeFk) REFERENCES vn.clientObservationType(id);
INSERT INTO salix.ACL
SET model = 'ClientObservationType',
property = '*',
accessType = 'READ',
permission = 'ALLOW',
principalType = 'ROLE',
principalId = 'employee';