47 lines
1.8 KiB
SQL
47 lines
1.8 KiB
SQL
|
|
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
|
VALUES
|
|
('CompanyI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('CompanyI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('CompanyI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('ItemTypeI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('ItemTypeI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('ItemTypeI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('InkI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('InkI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('InkI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('OriginI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('OriginI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('OriginI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('StateI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('StateI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('StateI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('TagI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('TagI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('TagI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('itemCategoryI18n','find','READ','ALLOW','ROLE','employee'),
|
|
('itemCategoryI18n','crud','WRITE','ALLOW','ROLE','employee'),
|
|
('itemCategoryI18n','create','WRITE','ALLOW','ROLE','employee'),
|
|
('Application','getI18nTables','*','ALLOW','ROLE','employee');
|
|
|
|
ALTER TABLE vn.companyI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.inkI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.itemCategoryI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.itemTypeI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.originI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.stateI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|
|
|
|
ALTER TABLE vn.tagI18n
|
|
ADD id INT AUTO_INCREMENT UNIQUE;
|