36 lines
1.5 KiB
SQL
Executable File
36 lines
1.5 KiB
SQL
Executable File
CREATE TABLE `patient_menu` (
|
|
`id` int(11) UNSIGNED NOT NULL,
|
|
`parent_id` int(11) DEFAULT 0,
|
|
`name` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
|
`url` varchar(225) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
|
`menu_icon` text DEFAULT NULL,
|
|
`menu_order` int(11) DEFAULT NULL,
|
|
`menu_for` enum('verified','unverified','all') DEFAULT 'all',
|
|
`status` enum('0','1') NOT NULL DEFAULT '1',
|
|
`created_on` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
INSERT INTO `patient_menu` (`id`, `parent_id`, `name`, `url`, `menu_icon`, `menu_order`, `menu_for`, `status`, `created_on`) VALUES
|
|
(1, 0, 'Dashboard', 'patientDashboard', '<i class=\"la la-home\"></i>', 1, 'all', '1', '2021-10-04 04:32:45'),
|
|
(2, 0, 'Profile', 'patientDashboard/profile', '<i class=\"ft-user\"></i>', 2, 'unverified', '1', '2021-10-04 04:32:51');
|
|
|
|
CREATE TABLE `caregiver_patient_clock_in_out` (
|
|
`id` int(11) NOT NULL,
|
|
`caregiver_id` int(250) NOT NULL,
|
|
`patient_id` int(250) NOT NULL,
|
|
`schedule_id` int(250) NOT NULL,
|
|
`clock_in_time` datetime NOT NULL,
|
|
`clock_in_data` varchar(250) NOT NULL,
|
|
`clock_out_time` datetime DEFAULT NULL,
|
|
`clock_out_data` varchar(250) NOT NULL,
|
|
`status` tinyint(1) NOT NULL,
|
|
`clock_status` tinyint(4) NOT NULL,
|
|
`created_on` datetime NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
ALTER TABLE `patient_details` ADD `ion_user_id` BIGINT(20) NULL DEFAULT NULL AFTER `form_status`;
|
|
ALTER TABLE `patient_details` ADD `distance` INT(225) NULL DEFAULT NULL AFTER `level_of_service`;
|