3
0

upd(crm): update db schema

This commit is contained in:
Tit Petric
2018-08-15 20:30:56 +02:00
parent ca4f10f3e5
commit e7d28b005b

View File

@@ -1,13 +1,14 @@
CREATE TABLE `crm_module` (
`id` bigint(20) unsigned NOT NULL,
`name` varchar(64) NOT NULL COMMENT 'The name of the module',
`json` json NOT NULL COMMENT 'List of field definitions for the module',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `crm_module_content` (
`id` bigint(20) unsigned NOT NULL,
`module_id` bigint(20) unsigned NOT NULL,
`json` json NOT NULL COMMENT 'Actual CRM module form fields as a JSON blob',
`json` json NOT NULL COMMENT 'Entry JSON blob based on module fields list',
PRIMARY KEY (`id`,`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;