Updated dump sql file
This commit is contained in:
parent
3dae73fcf0
commit
5b415878a5
29
lepisi.sql
29
lepisi.sql
@ -9,26 +9,36 @@ DROP TABLE IF EXISTS `kategori`;
|
|||||||
CREATE TABLE `kategori` (
|
CREATE TABLE `kategori` (
|
||||||
`id` int(3) NOT NULL AUTO_INCREMENT,
|
`id` int(3) NOT NULL AUTO_INCREMENT,
|
||||||
`category` varchar(20) NOT NULL,
|
`category` varchar(20) NOT NULL,
|
||||||
|
`background` char(7) NOT NULL DEFAULT '#ffffff',
|
||||||
|
`foreground` char(7) NOT NULL DEFAULT '#000000',
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
INSERT INTO `kategori` (`id`, `category`, `background`, `foreground`, `status`) VALUES
|
||||||
|
(1, 'Akademik', '#ff0000', '#b7b7b7', 1),
|
||||||
|
(2, 'Kemahasiswaan', '#0071ff', '#ff0000', 1),
|
||||||
|
(3, 'Pindah Kelas', '#fffe00', '#e900ff', 1);
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `pengumuman`;
|
DROP TABLE IF EXISTS `pengumuman`;
|
||||||
CREATE TABLE `pengumuman` (
|
CREATE TABLE `pengumuman` (
|
||||||
`id` int(3) NOT NULL AUTO_INCREMENT,
|
`id` int(3) NOT NULL AUTO_INCREMENT,
|
||||||
`category` int(3) NOT NULL,
|
`category` int(3) NOT NULL,
|
||||||
`created_at` date NOT NULL DEFAULT current_timestamp(),
|
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`valid_at` date NOT NULL DEFAULT current_timestamp(),
|
`valid_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`expired_at` date NOT NULL,
|
`expired_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
`creator` int(3) NOT NULL,
|
`creator` int(3) NOT NULL,
|
||||||
`edited_at` date DEFAULT NULL,
|
`edited_at` timestamp NULL DEFAULT NULL,
|
||||||
`editor` int(3) DEFAULT NULL,
|
`editor` int(3) DEFAULT NULL,
|
||||||
`content` varchar(255) NOT NULL,
|
`content` varchar(255) NOT NULL,
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
`status` tinyint(1) NOT NULL DEFAULT 1,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
INSERT INTO `pengumuman` (`id`, `category`, `created_at`, `valid_at`, `expired_at`, `creator`, `edited_at`, `editor`, `content`, `status`) VALUES
|
||||||
|
(1, 2, '2017-08-20 00:00:00', '2017-08-21 00:00:00', '2017-08-26 00:00:00', 1, NULL, NULL, 'Pengambilan & pengisian KRS tanggal **21 - 26 Agustus 2017**.', 0),
|
||||||
|
(2, 1, '2017-08-15 00:00:00', '2017-09-16 00:00:00', '2017-09-30 00:00:00', 1, NULL, NULL, '**Almamater gelombang 3** sudah dapat diambil di ruang **Student Admission Officer (Marketing)**.', 1),
|
||||||
|
(3, 1, '2017-09-10 00:00:00', '2017-09-11 00:00:00', '2017-09-30 00:00:00', 1, NULL, NULL, 'Perkuliahan semester ganjil dimulai pada tanggal **11 September 2017**.', 1);
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `users`;
|
DROP TABLE IF EXISTS `users`;
|
||||||
CREATE TABLE `users` (
|
CREATE TABLE `users` (
|
||||||
@ -38,14 +48,13 @@ CREATE TABLE `users` (
|
|||||||
`salt` char(23) NOT NULL,
|
`salt` char(23) NOT NULL,
|
||||||
`full_name` varchar(50) NOT NULL,
|
`full_name` varchar(50) NOT NULL,
|
||||||
`registered_at` date NOT NULL DEFAULT current_timestamp(),
|
`registered_at` date NOT NULL DEFAULT current_timestamp(),
|
||||||
`privilage` tinyint(1) NOT NULL DEFAULT 0,
|
`privilege` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`status` tinyint(1) NOT NULL DEFAULT 0,
|
|
||||||
`max_user` int(1) NOT NULL DEFAULT 5,
|
`max_user` int(1) NOT NULL DEFAULT 5,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
INSERT INTO `users` (`id`, `username`, `password`, `salt`, `full_name`, `registered_at`, `privilage`, `status`, `max_user`) VALUES
|
INSERT INTO `users` (`id`, `username`, `password`, `salt`, `full_name`, `registered_at`, `privilege`, `max_user`) VALUES
|
||||||
(1, 'root', '14Ll9fZ15hncw', '146012323259b6163952e48', 'Administrator', '2017-09-09', 1, 0, 1),
|
(1, 'root', '14Ll9fZ15hncw', '146012323259b6163952e48', 'Administrator', '2017-09-09', 1, 1),
|
||||||
(2, 'user', '18jL3uoFwSAx.', '18211527759b374b270bd3', 'User', '2017-09-09', 0, 0, 5);
|
(2, 'user', '18jL3uoFwSAx.', '18211527759b374b270bd3', 'User', '2017-09-09', 0, 5);
|
||||||
|
|
||||||
-- 2017-09-11 06:16:24
|
-- 2017-09-18 02:41:44
|
||||||
|
Loading…
Reference in New Issue
Block a user