Implemented basic Calendar services, GET, POST and PUT
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
CREATE TABLE IF NOT EXISTS `m_calendar` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`entity_id` bigint(20) NOT NULL DEFAULT '0',
|
||||
`entity_type_enum` smallint(5) NOT NULL DEFAULT '0',
|
||||
`title` varchar(50) NOT NULL,
|
||||
`description` varchar(100) DEFAULT NULL,
|
||||
`location` varchar(50) DEFAULT NULL,
|
||||
`start_date` date NOT NULL,
|
||||
`end_date` date DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`duration` smallint(6) DEFAULT NULL,
|
||||
`calendar_type_enum` smallint(5) NOT NULL,
|
||||
`repeating` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`recurrence` varchar(100) NOT NULL,
|
||||
`remind_by_enum` smallint(5) DEFAULT NULL,
|
||||
`first_reminder` smallint(11) NOT NULL,
|
||||
`second_reminder` smallint(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
@@ -0,0 +1,8 @@
|
||||
INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
|
||||
VALUES('configuration', 'CREATE_CALENDAR', 'CALENDAR', 'CREATE', '0'),
|
||||
('configuration', 'READ_CALENDAR', 'CALENDAR', 'READ', '0'),
|
||||
('configuration', 'UPDATE_CALENDAR', 'CALENDAR', 'UPDATE', '0'),
|
||||
('configuration', 'DELETE_CALENDAR', 'CALENDAR', 'DELETE', '0'),
|
||||
('configuration', 'CREATE_CALENDAR_CHECKER', 'CALENDAR', 'CREATE', '0'),
|
||||
('configuration', 'UPDATE_CALENDAR_CHECKER', 'CALENDAR', 'UPDATE', '0'),
|
||||
('configuration', 'DELETE_CALENDAR_CHECKER', 'CALENDAR', 'DELETE', '0');
|
||||
Reference in New Issue
Block a user