3
0

upd(crm): update sql for module content

This commit is contained in:
Tit Petric
2018-08-15 17:11:43 +02:00
parent 3ba1eb9a22
commit 69e1333722
@@ -4,6 +4,13 @@ CREATE TABLE `crm_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',
PRIMARY KEY (`id`,`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `crm_module_form` (
`module_id` bigint(20) unsigned NOT NULL,
`place` tinyint(3) unsigned NOT NULL,
@@ -12,4 +19,5 @@ CREATE TABLE `crm_module_form` (
`title` varchar(255) NOT NULL COMMENT 'The label of the form input',
`placeholder` varchar(255) NOT NULL COMMENT 'Placeholder text (if supported by input)',
PRIMARY KEY (`module_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
) ENGINE=InnoDB DEFAULT CHARSET=utf8;