-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuratsdm.sql
177 lines (146 loc) · 4.73 KB
/
suratsdm.sql
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 10 Mei 2017 pada 11.49
-- Versi Server: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `suratsdm`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `tdposisi`
--
CREATE TABLE `tdposisi` (
`id` int(11) NOT NULL,
`dari` int(11) NOT NULL,
`tujuan` int(11) NOT NULL,
`dposisi` text NOT NULL,
`tgldposisi` date NOT NULL,
`tglentri` date NOT NULL,
`noagenda` varchar(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tdposisi`
--
INSERT INTO `tdposisi` (`id`, `dari`, `tujuan`, `dposisi`, `tgldposisi`, `tglentri`, `noagenda`) VALUES
(14, 1, 3, 'Silahkan di banting', '2017-01-21', '2017-04-18', '00004'),
(11, 1, 2, 'Select up to 20 PDF files and images from your computer or drag them to the drop area.', '2017-01-20', '2017-01-20', '00001'),
(12, 1, 2, 'Drag-and-drop file blocks to change the order. When you are ready to proceed, click COMBINE button.', '2017-01-20', '2017-01-20', '00002'),
(15, 1, 2, 'hredherheh', '2017-03-08', '2017-04-17', '00001');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tsatker`
--
CREATE TABLE `tsatker` (
`id` int(11) NOT NULL,
`satker` varchar(50) NOT NULL,
`dari` tinyint(1) NOT NULL,
`tujuan` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tsatker`
--
INSERT INTO `tsatker` (`id`, `satker`, `dari`, `tujuan`) VALUES
(1, 'Direktur Utama', 1, 0),
(2, 'Direktur Medik dan Keperawatan', 1, 1),
(3, 'Direktur Umum, SDM & Pendidikan', 1, 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tsurat`
--
CREATE TABLE `tsurat` (
`id` int(11) NOT NULL,
`noagenda` varchar(5) NOT NULL,
`nosurat` varchar(35) NOT NULL,
`tglsurat` date NOT NULL,
`tglterima` date NOT NULL,
`sifat` varchar(10) NOT NULL,
`asal` varchar(50) NOT NULL,
`hal` text NOT NULL,
`status` tinyint(1) DEFAULT NULL,
`tglentri` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tsurat`
--
INSERT INTO `tsurat` (`id`, `noagenda`, `nosurat`, `tglsurat`, `tglterima`, `sifat`, `asal`, `hal`, `status`, `tglentri`) VALUES
(2, '00002', '012', '2017-01-14', '2017-01-14', 'Biasa', 'some body', 'everything', 1, '2017-01-14'),
(3, '00003', '12032', '2017-01-13', '2017-01-14', 'Cito', 'boliwood', 'This optional parameter is a constant indicating what type of array should be produced', 0, '2017-04-17'),
(8, '00004', 'BK.01.02/8343/2017', '2017-01-19', '2017-01-20', 'Rahasia', 'Bebek', 'Bebek suka mbebek-i', 1, '2017-01-20'),
(1, '00001', 'AD22334', '2017-01-13', '2017-01-15', 'Cito', 'sosro', 'W3Schools is optimized for learning', 1, '2017-01-16');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tuser`
--
CREATE TABLE `tuser` (
`id` tinyint(4) NOT NULL,
`userid` varchar(15) NOT NULL,
`nama` varchar(30) NOT NULL,
`sandi` varchar(15) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tuser`
--
INSERT INTO `tuser` (`id`, `userid`, `nama`, `sandi`) VALUES
(1, 'admin', 'santoso', 'kampret');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tdposisi`
--
ALTER TABLE `tdposisi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tsatker`
--
ALTER TABLE `tsatker`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tsurat`
--
ALTER TABLE `tsurat`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `noagenda` (`noagenda`),
ADD UNIQUE KEY `nosurat` (`nosurat`);
--
-- Indexes for table `tuser`
--
ALTER TABLE `tuser`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `userid` (`userid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tdposisi`
--
ALTER TABLE `tdposisi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `tsatker`
--
ALTER TABLE `tsatker`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tsurat`
--
ALTER TABLE `tsurat`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `tuser`
--
ALTER TABLE `tuser`
MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;