Add service templates

This commit is contained in:
Anthony F McInerney
2020-09-16 12:33:28 +01:00
parent 929f409642
commit 3d3a0b0c71
2 changed files with 15 additions and 1 deletions
+15
View File
@@ -1723,6 +1723,21 @@ services:
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [service_id], Unique: true, Type: BTREE }
services_device_id_index: { Name: services_device_id_index, Columns: [device_id], Unique: false, Type: BTREE }
services_template:
Columns:
- { Field: service_template_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
- { Field: device_group_id, Type: 'int unsigned', 'Null': false, Extra: '' }
- { Field: service_template_ip, Type: text, 'Null': false, Extra: '' }
- { Field: service_template_type, Type: varchar(255), 'Null': false, Extra: '' }
- { Field: service_template_desc, Type: text, 'Null': false, Extra: '' }
- { Field: service_template_param, Type: text, 'Null': false, Extra: '' }
- { Field: service_template_ignore, Type: tinyint, 'Null': false, Extra: '' }
- { Field: service_template_status, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
- { Field: service_template_changed, Type: 'int unsigned', 'Null': false, Extra: '', Default: '0' }
- { Field: service_disabled, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
Indexes:
PRIMARY: { Name: PRIMARY, Columns: [service_template_id], Unique: true, Type: BTREE }
services_device_group_id_index: { Name: services_device_group_id_index, Columns: [device_template_id], Unique: false, Type: BTREE }
session:
Columns:
- { Field: session_id, Type: 'int unsigned', 'Null': false, Extra: auto_increment }
-1
View File
@@ -1 +0,0 @@
CREATE TABLE IF NOT EXISTS `services_template` ( `service_template_id` int unsigned NOT NULL AUTO_INCREMENT, `device_group_id` int NOT NULL, `service_template_type` varchar(255) NOT NULL, `service_template_ip` text NOT NULL, `service_template_desc` text NOT NULL, `service_template_param` text NOT NULL, `service_template_ignore` tinyint(1) NOT NULL, `service_template_changed` int unsigned NOT NULL DEFAULT '0', `service_template_disabled` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`service_template_id`), KEY `service_template_devicegroup` (`device_group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_unicode_ci;