-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpunch.sql
More file actions
25 lines (22 loc) · 1.06 KB
/
punch.sql
File metadata and controls
25 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- Create table for punch
SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = 'SYSTEM';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `punch`;
CREATE TABLE `punch` (
`id` int(11) NOT NULL,
`desc` tinytext COLLATE utf8_unicode_ci NOT NULL,
`start` datetime DEFAULT NULL,
`punch_in` datetime DEFAULT NULL,
`punch_out` datetime DEFAULT NULL,
`end` datetime DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`elapsed` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `punch` (`id`, `desc`, `start`, `punch_in`, `punch_out`, `end`, `status`, `elapsed`) VALUES
(1, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0),
(2, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0),
(3, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0),
(4, '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0);