This commit is contained in:
parent
8fce0d969b
commit
cfbc3692e9
|
@ -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';
|
Loading…
Reference in New Issue