-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpossp9_db.sql
262 lines (235 loc) · 37.8 KB
/
possp9_db.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
/*
Navicat Premium Data Transfer
Source Server : Admin
Source Server Type : MySQL
Source Server Version : 50724
Source Host : localhost:3306
Source Schema : possp9_db
Target Server Type : MySQL
Target Server Version : 50724
File Encoding : 65001
Date: 11/08/2020 18:43:43
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sysdiagrams
-- ----------------------------
DROP TABLE IF EXISTS `sysdiagrams`;
CREATE TABLE `sysdiagrams` (
`name` varchar(160) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
`principal_id` int(11) NOT NULL,
`diagram_id` int(11) NOT NULL AUTO_INCREMENT,
`version` int(11) NULL DEFAULT NULL,
`definition` longblob NULL,
PRIMARY KEY (`diagram_id`) USING BTREE,
UNIQUE INDEX `UK_principal_name`(`principal_id`, `name`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sysdiagrams
-- ----------------------------
INSERT INTO `sysdiagrams` VALUES ('Diagram_1', 1, 1, 1, 0xD0CF11E0A1B11AE1000000000000000000000000000000003E000300FEFF0900060000000000000000000000010000000100000000000000001000000200000001000000FEFFFFFF0000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDFFFFFF0F000000FEFFFFFF0400000005000000100000000700000008000000090000000A0000000B0000000C0000000D0000000E000000FEFFFFFFFEFFFFFF1100000012000000130000001400000015000000160000001700000018000000FEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF52006F006F007400200045006E00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500FFFFFFFFFFFFFFFF0200000000000000000000000000000000000000000000000000000000000000804BFD1FE9E5D2010300000040160000000000006600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000201FFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000000000000000000000000000000000000AA040000000000006F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040002010100000004000000FFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000060000004410000000000000010043006F006D0070004F0062006A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000201FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000130000005F000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A0000000B0000000C0000000D0000000E0000000F000000100000001100000012000000FEFFFFFF14000000FEFFFFFF160000001700000018000000190000001A0000001B0000001C0000001D0000001E0000001F000000200000002100000022000000230000002400000025000000260000002700000028000000290000002A0000002B0000002C0000002D0000002E0000002F000000300000003100000032000000330000003400000035000000360000003700000038000000390000003A0000003B0000003C0000003D0000003E0000003F00000040000000410000004200000043000000440000004500000046000000470000004800000049000000FEFFFFFFFEFFFFFF4C0000004D0000004E0000004F0000005000000051000000520000005300000054000000550000005600000057000000FEFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000428000A0E100C050000800E0000000F00FFFF0E000000007D0000CD650000043B0000E7890000DD590000DE805B10F195D011B0A000AA00BDCB5C000008003000000000020000030000003C006B0000000900000000000000D9E6B0E91C81D011AD5100A0C90F5739F43B7F847F61C74385352986E1D552F8A0327DB2D86295428D98273C25A2DA2D00002800430000000000000053444DD2011FD1118E63006097D2DF4834C9D2777977D811907000065B840D9C00002800430000000000000051444DD2011FD1118E63006097D2DF4834C9D2777977D811907000065B840D9C0D000000C0030000008D010000003000A50900000700008001000000A202000000800000080000805363684772696400282300000000000054424C4F5244455200003800A50900000700008002000000B0020000008000000F0000805363684772696452000000000000000054424C4F524445525F44455441494C0000007C00A50900000700008003000000520000000180000053000080436F6E74726F6C5215160000FFFEFFFF52656C6174696F6E736869702027464B5F54424C4F524445525F44455441494C5F54424C4F5244455227206265747765656E202754424C4F524445522720616E64202754424C4F524445525F44455441494C270000002800B50100000700008004000000310000006900000002800000436F6E74726F6C52B01300008FFEFFFF00003400A50900000700008005000000A6020000008000000A00008053636847726964520E1F0000F41A000054424C50524F44554354455400003000A50900000700008006000000A202000000800000080000805363684772696452964B0000C819000054626C53746F636B00007400A50900000700008007000000520000000180000049000080436F6E74726F6C6B23350000F319000052656C6174696F6E736869702027464B5F54626C53746F636B5F54424C50524F4455435427206265747765656E202754424C50524F445543542720616E64202754626C53746F636B27007D0000002800B50100000700008008000000310000005F00000002800000436F6E74726F6C6BAE390000391C000000003400A50900000700008009000000A8020000008000000B000080536368477269646BDE3F0000EE02000054626C41646453746F636B5400008000A5090000070000800A000000620000000180000057000080436F6E74726F6C6B151600007112000052656C6174696F6E736869702027464B5F54424C4F524445525F44455441494C5F54424C50524F4455435427206265747765656E202754424C50524F445543542720616E64202754424C4F524445525F44455441494C270000002800B5010000070000800B000000310000006D00000002800000436F6E74726F6C6B931400009B14000000007800A5090000070000800D00000062000000018000004F000080436F6E74726F6C6B233500005F15000052656C6174696F6E736869702027464B5F54626C41646453746F636B5F54424C50524F4455435427206265747765656E202754424C50524F445543542720616E64202754626C41646453746F636B270000002800B5010000070000800E000000310000006500000002800000436F6E74726F6C6B4F36000083190000000000000000000000000000000000000000000000000100FEFF030A0000FFFFFFFF00000000000000000000000000000000170000004D6963726F736F66742044445320466F726D20322E300010000000456D626564646564204F626A6563740000000000F439B2710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000100260000007300630068005F006C006100620065006C0073005F00760069007300690062006C0065000000010000000B0000001E000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000010000000100000000000000000000000000000000000000D00200000600280000004100630074006900760065005400610062006C00650056006900650077004D006F006400650000000100000008000400214334120800000041170000D8160000785634120700000014010000540042004C004F005200440045005200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000005000000540000002C0000002C0000002C000000340000000000000000000000A7290000C51A0000000000002D010000090000000C000000070000001C010000F708000053070000390300000B040000D0020000DD04000018060000A203000018060000BC07000046050000000000000100000041170000D816000000000000070000000700000002000000020000001C010000E60A00000000000001000000F21300004E06000000000000010000000100000002000000020000001C010000F70800000100000000000000F21300000804000000000000000000000000000002000000020000001C010000F7080000000000000000000055320000DD23000000000000000000000D00000004000000040000001C010000F70800009B0A00008106000078563412040000005A00000001000000010000000B000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A00000004000000640062006F00000009000000540042004C004F00520044004500520000002143341208000000411700005D140000785634120700000014010000540042004C004F0052004400450052005F00440045005400410049004C000000A89F9A130500000000000000030000000000000000000000000100000001000000000000A851085B8464085B50B3475B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055AAFFD5802B00000000000000000000000000000000000000000000000000000000000000000000000000000000000055AAFFD5802B00000000000000000000000000000100000005000000540000002C0000002C0000002C000000340000000000000000000000A72900007F180000000000002D010000080000000C000000070000001C010000F708000053070000390300000B040000D0020000DD04000018060000A203000018060000BC070000460500000000000001000000411700005D14000000000000060000000600000002000000020000001C010000E60A00000000000001000000F21300000804000000000000000000000000000002000000020000001C010000F70800000100000000000000F21300000804000000000000000000000000000002000000020000001C010000F7080000000000000000000055320000DD23000000000000000000000D00000004000000040000001C010000F70800009B0A00008106000078563412040000006800000001000000010000000B000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A00000004000000640062006F00000010000000540042004C004F0052004400450052005F00440045005400410049004C00000002000B00282300009600000041170000960000000000000002000000F0F0F00000000000000000000000000000000000010000000400000000000000B01300008FFEFFFF0913000058010000320000000100000200000913000058010000020000000000050000800800008001000000150001000000900144420100065461686F6D611B0046004B005F00540042004C004F0052004400450052005F00440045005400410049004C005F00540042004C004F005200440045005200214334120800000041170000D8160000785634120700000014010000540042004C00500052004F00440055004300540000000C1930DCA6940193D32A04063E00F4C63C000E005900DF000000E1ED296D10005A0F18903E00E081925CE0000000310074030000000098F14712088D3E00888E3E00F8D12212909B3E0090623F1290C63C0008BDEE1100C83C00CD1E4D77017D3A00FEFFFFFF6CE34877D2E04877710100007042B1020000000003E0487700000000E8CB3C000000000088623F1250C73C00DD14B97500003E000000000090623F1268C73C007021EF5C00003E000000000090623F127042B10274C73C009521EF5C90623F1288C73C000200000000000000E8000000B51C000000000000000000000100000005000000540000002C0000002C0000002C000000340000000000000000000000A7290000C51A0000000000002D010000090000000C000000070000001C010000F708000053070000390300000B040000D0020000DD04000018060000A203000018060000BC07000046050000000000000100000041170000D816000000000000070000000700000002000000020000001C010000E60A00000000000001000000F21300004E06000000000000010000000100000002000000020000001C010000F70800000100000000000000F21300000804000000000000000000000000000002000000020000001C010000F7080000000000000000000055320000DD23000000000000000000000D00000004000000040000001C010000F70800009B0A00008106000078563412040000005E00000001000000010000000B000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A00000004000000640062006F0000000B000000540042004C00500052004F00440055004300540000002143341208000000411700005D140000785634120700000014010000540062006C00530074006F0063006B0000000000902849120000000090284912A0234A120500000000000000030000000000000000000000000100000001000000000000A851F35B8464F35B50B3325C6F00770073003B0043003A005C00570069006E0064006F00770073005C00530079007300740065006D00330032005C005700620065006D003B0043003A005C00570069006E0064006F00770073005C00530079007300740065006D00330032005C00570069006E0064006F007700730050006F007700650072005300680065006C006C005C00760031002E0030005C003B0043003A005C00500072006F00000000000000000000000100000005000000540000002C0000002C0000002C000000340000000000000000000000A72900007F180000000000002D010000080000000C000000070000001C010000F708000053070000390300000B040000D0020000DD04000018060000A203000018060000BC070000460500000000000001000000411700005D14000000000000060000000600000002000000020000001C010000E60A00000000000001000000F21300000804000000000000000000000000000002000000020000001C010000F70800000100000000000000F21300000804000000000000000000000000000002000000020000001C010000F7080000000000000000000055320000DD23000000000000000000000D00000004000000040000001C010000F70800009B0A00008106000078563412040000005A00000001000000010000000B000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A00000004000000640062006F00000009000000540062006C00530074006F0063006B00000002000B004F3600008A1B0000964B00008A1B00000000000002000000F0F0F00000000000000000000000000000000000010000000800000000000000AE390000391C0000880E00005801000032000000010000020000880E000058010000020000000000050000800800008001000000150001000000900144420100065461686F6D61160046004B005F00540062006C00530074006F0063006B005F00540042004C00500052004F0044005500430054002143341208000000411700005D140000785634120700000014010000540062006C00410064006400530074006F0063006B00000000000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE911B01000000C0EE911B00000000C0EE000000000000000000000100000005000000540000002C0000002C0000002C000000340000000000000000000000A72900007F180000000000002D010000080000000C000000070000001C010000F708000053070000390300000B040000D0020000DD04000018060000A203000018060000BC070000460500000000000001000000411700005D14000000000000060000000600000002000000020000001C010000E60A00000000000001000000F21300000804000000000000000000000000000002000000020000001C010000F70800000100000000000000F21300000804000000000000000000000000000002000000020000001C010000F7080000000000000000000055320000DD23000000000000000000000D00000004000000040000001C010000F70800009B0A00008106000078563412040000006000000001000000010000000B000000000000000100000002000000030000000400000005000000060000000700000008000000090000000A00000004000000640062006F0000000C000000540062006C00410064006400530074006F0063006B00000004000B000E1F00008A1B0000281B00008A1B0000281B0000EC13000041170000EC1300000000000002000000F0F0F00000000000000000000000000000000000010000000B00000000000000931400009B1400008014000058010000600000000100000200008014000058010000020000000000FFFFFF000800008001000000150001000000900144420100065461686F6D611D0046004B005F00540042004C004F0052004400450052005F00440045005400410049004C005F00540042004C00500052004F00440055004300540004000B004F3600008A1B0000163B00008A1B0000163B0000DA160000DE3F0000DA1600000000000002000000F0F0F00000000000000000000000000000000000010000000E000000000000004F36000083190000AC1000005801000000000000010000020000AC10000058010000020000000000FFFFFF000800008001000000150001000000900144420100065461686F6D61190046004B005F00540062006C00410064006400530074006F0063006B005F00540042004C00500052004F0044005500430054000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300440064007300530074007200650061006D000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000160002000300000006000000FFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000150000003C0D00000000000053006300680065006D00610020005500440056002000440065006600610075006C0074000000000000000000000000000000000000000000000000000000000026000200FFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000004A0000001600000000000000440053005200450046002D0053004300480045004D0041002D0043004F004E00540045004E0054005300000000000000000000000000000000000000000000002C0002010500000007000000FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000004B000000040300000000000053006300680065006D00610020005500440056002000440065006600610075006C007400200050006F007300740020005600360000000000000000000000000036000200FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000580000001200000000000000000031000000200000005400610062006C00650056006900650077004D006F00640065003A00300000000100000008003A00000034002C0030002C003200380034002C0030002C0032003200390035002C0031002C0031003800370035002C0035002C0031003200340035000000200000005400610062006C00650056006900650077004D006F00640065003A00310000000100000008001E00000032002C0030002C003200380034002C0030002C0032003700390030000000200000005400610062006C00650056006900650077004D006F00640065003A00320000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00330000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00340000000100000008003E00000034002C0030002C003200380034002C0030002C0032003200390035002C00310032002C0032003700310035002C00310031002C0031003600360035000000020000000200000000000000000000000000000000000000D00200000600280000004100630074006900760065005400610062006C00650056006900650077004D006F006400650000000100000008000400000031000000200000005400610062006C00650056006900650077004D006F00640065003A00300000000100000008003A00000034002C0030002C003200380034002C0030002C0032003200390035002C0031002C0031003800370035002C0035002C0031003200340035000000200000005400610062006C00650056006900650077004D006F00640065003A00310000000100000008001E00000032002C0030002C003200380034002C0030002C0032003700390030000000200000005400610062006C00650056006900650077004D006F00640065003A00320000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00330000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00340000000100000008003E00000034002C0030002C003200380034002C0030002C0032003200390035002C00310032002C0032003700310035002C00310031002C0031003600360035000000030000000300000000000000480000000100407701000000640062006F00000046004B005F00540042004C004F0052004400450052005F00440045005400410049004C005F00540042004C004F00520044004500520000000000000000000000C402000000000400000004000000030000000800000001D8761488D876140000000000000000AD070000000000050000000500000000000000000000000000000000000000D00200000600280000004100630074006900760065005400610062006C00650056006900650077004D006F006400650000000100000008000400000031000000200000005400610062006C00650056006900650077004D006F00640065003A00300000000100000008003A00000034002C0030002C003200380034002C0030002C0032003200390035002C0031002C0031003800370035002C0035002C0031003200340035000000200000005400610062006C00650056006900650077004D006F00640065003A00310000000100000008001E00000032002C0030002C003200380034002C0030002C0032003700390030000000200000005400610062006C00650056006900650077004D006F00640065003A00320000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00330000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00340000000100000008003E00000034002C0030002C003200380034002C0030002C0032003200390035002C00310032002C0032003700310035002C00310031002C0031003600360035000000060000000600000000000000000000000000000000000000D00200000600280000004100630074006900760065005400610062006C00650056006900650077004D006F006400650000000100000008000400000031000000200000005400610062006C00650056006900650077004D006F00640065003A00300000000100000008003A00000034002C0030002C003200380034002C0030002C0032003200390035002C0031002C0031003800370035002C0035002C0031003200340035000000200000005400610062006C00650056006900650077004D006F00640065003A00310000000100000008001E00000032002C0030002C003200380034002C0030002C0032003700390030000000200000005400610062006C00650056006900650077004D006F00640065003A00320000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00330000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00340000000100000008003E00000034002C0030002C003200380034002C0030002C0032003200390035002C00310032002C0032003700310035002C00310031002C00310036003600350000000700000007000000000000003E000000010E000001000000640062006F00000046004B005F00540062006C00530074006F0063006B005F00540042004C00500052004F00440055004300540000000000000000000000C402000000000800000008000000070000000800000001D9761408D976140000000000000000AD070000000000090000000900000000000000000000000000000000000000D00200000600280000004100630074006900760065005400610062006C00650056006900650077004D006F006400650000000100000008000400000031000000200000005400610062006C00650056006900650077004D006F00640065003A00300000000100000008003A00000034002C0030002C003200380034002C0030002C0032003200390035002C0031002C0031003800370035002C0035002C0031003200340035000000200000005400610062006C00650056006900650077004D006F00640065003A00310000000100000008001E00000032002C0030002C003200380034002C0030002C0032003700390030000000200000005400610062006C00650056006900650077004D006F00640065003A00320000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00330000000100000008001E00000032002C0030002C003200380034002C0030002C0032003200390035000000200000005400610062006C00650056006900650077004D006F00640065003A00340000000100000008003E00000034002C0030002C003200380034002C0030002C0032003200390035002C00310032002C0032003700310035002C00310031002C00310036003600350000000A0000000A000000000000004C0000000100B75D01000000640062006F00000046004B005F00540042004C004F0052004400450052005F00440045005400410049004C005F00540042004C00500052004F00440055004300540000000000000000000000C402000000000B0000000B0000000A0000000800000001AA5000C0AA50000000000000000000AD0F00000100000D0000000D00000000000000440000000100407701000000640062006F00000046004B005F00540062006C00410064006400530074006F0063006B005F00540042004C00500052004F00440055004300540000000000000000000000C402000000000E0000000E0000000D000000080000000152611BA052611B0000000000000000AD0F0000010000140000000300000001000000020000004C0000004D0000000D00000005000000090000004D0000008E0000000A00000005000000020000004C0000008F0000000700000005000000060000004D0000005000000000000000010003000000000000000C0000000B0000004E61BC00000000000000000000000000000000000000000000000000000000000000000000000000000000000000DBE6B0E91C81D011AD5100A0C90F573900000200F0EBFB1FE9E5D201020200001048450000000000000000000000000000000000720100004400610074006100200053006F0075007200630065003D0041005300550053002D00500043003B0049006E0069007400690061006C00200043006100740061006C006F0067003D0050004F00530031003B005000650072007300690073007400200053006500630075007200690074007900200049006E0066006F003D0054007200750065003B0055007300650072002000490044003D00730061003B004D0075006C007400690070006C00650041006300740069007600650052006500730075006C00740053006500740073003D00460061006C00730065003B005000610063006B00650074002000530069007A0065003D0034003000390036003B004100700070006C00690063006100740069006F006E0020004E0061006D0065003D0022004D006900630072006F0073006F00660074002000530051004C00200053006500720076006500720020004D0061006E006100670065006D0065006E0074002000530074007500640069006F002200000000800500140000004400690061006700720061006D005F00310000000002260012000000540062006C00530074006F0063006B00000008000000640062006F0000000002260016000000540042004C00500052004F004400550043005400000008000000640062006F0000000002260020000000540042004C004F0052004400450052005F00440045005400410049004C00000008000000640062006F0000000002260012000000540042004C004F005200440045005200000008000000640062006F0000000002240018000000540062006C00410064006400530074006F0063006B00000008000000640062006F00000001000000D68509B3BB6BF2459AB8371664F0327008004E0000007B00310036003300340043004400440037002D0030003800380038002D0034003200450033002D0039004600410032002D004200360044003300320035003600330042003900310044007D000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010003000000000000000C0000000B000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062885214);
-- ----------------------------
-- Table structure for tbladdstock
-- ----------------------------
DROP TABLE IF EXISTS `tbladdstock`;
CREATE TABLE `tbladdstock` (
`ProductID` int(50) NOT NULL,
`AddDate` datetime(6) NULL DEFAULT NULL,
`ExpireDate` datetime(6) NULL DEFAULT NULL,
`Qty` int(11) NOT NULL,
`UserID` int(50) NOT NULL,
INDEX `FK_TblAddStock_TBLPRODUCT`(`ProductID`) USING BTREE,
INDEX `UserID`(`UserID`) USING BTREE,
CONSTRAINT `tbladdstock_ibfk_1` FOREIGN KEY (`ProductID`) REFERENCES `tblproduct` (`ProductID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tblcategory
-- ----------------------------
DROP TABLE IF EXISTS `tblcategory`;
CREATE TABLE `tblcategory` (
`CategoryID` int(50) NOT NULL AUTO_INCREMENT,
`CategoryName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`CategoryID`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblcategory
-- ----------------------------
INSERT INTO `tblcategory` VALUES (1, 'Beer');
INSERT INTO `tblcategory` VALUES (2, 'Food');
INSERT INTO `tblcategory` VALUES (3, 'Soft Drink');
-- ----------------------------
-- Table structure for tblcustomer
-- ----------------------------
DROP TABLE IF EXISTS `tblcustomer`;
CREATE TABLE `tblcustomer` (
`CUSTOMTER_ID` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`CUSTOMER_NAME` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`ADDRESS` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`COUNTRY` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tblorder
-- ----------------------------
DROP TABLE IF EXISTS `tblorder`;
CREATE TABLE `tblorder` (
`OrderID` int(11) NOT NULL,
`OrderDate` date NULL DEFAULT NULL,
`UserID` int(50) NULL DEFAULT NULL,
`TotalAmount` double NULL DEFAULT NULL,
PRIMARY KEY (`OrderID`) USING BTREE,
INDEX `UserID`(`UserID`) USING BTREE,
CONSTRAINT `tblorder_ibfk_1` FOREIGN KEY (`UserID`) REFERENCES `tbluser` (`UserID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblorder
-- ----------------------------
INSERT INTO `tblorder` VALUES (1, '2020-06-03', 1, 6);
INSERT INTO `tblorder` VALUES (2, '2020-06-03', 1, 4);
INSERT INTO `tblorder` VALUES (3, '2020-06-03', 1, 4);
INSERT INTO `tblorder` VALUES (4, '2020-06-03', 1, 4);
INSERT INTO `tblorder` VALUES (5, '2020-06-03', 1, 4);
-- ----------------------------
-- Table structure for tblorder_detail
-- ----------------------------
DROP TABLE IF EXISTS `tblorder_detail`;
CREATE TABLE `tblorder_detail` (
`OrderID` int(11) NULL DEFAULT NULL,
`ProductID` int(50) NULL DEFAULT NULL,
`Qty` int(11) NULL DEFAULT NULL,
`Price` double NULL DEFAULT NULL,
`Total` double NULL DEFAULT NULL,
INDEX `ProductID`(`ProductID`) USING BTREE,
INDEX `OrderID`(`OrderID`) USING BTREE,
CONSTRAINT `tblorder_detail_ibfk_1` FOREIGN KEY (`OrderID`) REFERENCES `tblorder` (`OrderID`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `tblorder_detail_ibfk_2` FOREIGN KEY (`ProductID`) REFERENCES `tblproduct` (`ProductID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblorder_detail
-- ----------------------------
INSERT INTO `tblorder_detail` VALUES (1, 1, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (1, 2, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (1, 3, 2, 1, 2);
INSERT INTO `tblorder_detail` VALUES (2, 1, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (2, 2, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (3, 1, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (3, 2, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (4, 1, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (4, 2, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (5, 1, 1, 2, 2);
INSERT INTO `tblorder_detail` VALUES (5, 2, 1, 2, 2);
-- ----------------------------
-- Table structure for tblposition
-- ----------------------------
DROP TABLE IF EXISTS `tblposition`;
CREATE TABLE `tblposition` (
`PositionID` int(50) NOT NULL,
`PostionName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
PRIMARY KEY (`PositionID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblposition
-- ----------------------------
INSERT INTO `tblposition` VALUES (1, 'IT');
INSERT INTO `tblposition` VALUES (2, 'HR');
-- ----------------------------
-- Table structure for tblproduct
-- ----------------------------
DROP TABLE IF EXISTS `tblproduct`;
CREATE TABLE `tblproduct` (
`ProductID` int(50) NOT NULL,
`ProductName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`Barcode` int(50) NULL DEFAULT NULL,
`UnitPrice` float NULL DEFAULT NULL,
`SellPrice` float NULL DEFAULT NULL,
`CategoryID` int(50) NULL DEFAULT NULL,
`Photo` blob NULL,
`QtyInStock` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`ProductID`) USING BTREE,
INDEX `CategoryID`(`CategoryID`) USING BTREE,
CONSTRAINT `tblproduct_ibfk_1` FOREIGN KEY (`CategoryID`) REFERENCES `tblcategory` (`CategoryID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblproduct
-- ----------------------------
INSERT INTO `tblproduct` VALUES (1, 'ABC', 1, 1, 2, 1, NULL, 95);
INSERT INTO `tblproduct` VALUES (2, 'Fanta', 123, 1, 2, 1, NULL, 95);
INSERT INTO `tblproduct` VALUES (3, 'Water', 1234, 1, 1, 1, NULL, 98);
INSERT INTO `tblproduct` VALUES (4, 'sting', 12345, 11, 1, 1, NULL, 100);
-- ----------------------------
-- Table structure for tblsubmenu
-- ----------------------------
DROP TABLE IF EXISTS `tblsubmenu`;
CREATE TABLE `tblsubmenu` (
`SubMenuID` int(11) NOT NULL,
`SubMenuName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`SubMenuID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tblsubmenu
-- ----------------------------
INSERT INTO `tblsubmenu` VALUES (1, 'User Mangement');
INSERT INTO `tblsubmenu` VALUES (2, 'User Permmision');
INSERT INTO `tblsubmenu` VALUES (3, 'Report User');
INSERT INTO `tblsubmenu` VALUES (4, 'Report Product');
INSERT INTO `tblsubmenu` VALUES (5, 'Product');
INSERT INTO `tblsubmenu` VALUES (6, 'Category');
INSERT INTO `tblsubmenu` VALUES (7, 'Add Stock');
INSERT INTO `tblsubmenu` VALUES (8, 'Sale');
INSERT INTO `tblsubmenu` VALUES (9, 'Report Stock');
-- ----------------------------
-- Table structure for tbluser
-- ----------------------------
DROP TABLE IF EXISTS `tbluser`;
CREATE TABLE `tbluser` (
`UserID` int(50) NOT NULL,
`UserName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`Gender` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`DateOfBirth` date NULL DEFAULT NULL,
`Password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`Description` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`Salary` double NULL DEFAULT NULL,
`Phone` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`Active` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`PositionID` int(50) NULL DEFAULT NULL,
`Photo` longblob NULL,
PRIMARY KEY (`UserID`) USING BTREE,
INDEX `PositionID`(`PositionID`) USING BTREE,
CONSTRAINT `tbluser_ibfk_1` FOREIGN KEY (`PositionID`) REFERENCES `tblposition` (`PositionID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tbluser
-- ----------------------------
INSERT INTO `tbluser` VALUES (1, 'chanthou', 'M', NULL, '1', NULL, NULL, NULL, NULL, 1, NULL);
INSERT INTO `tbluser` VALUES (2, 'da', NULL, NULL, '2', NULL, NULL, NULL, NULL, 1, NULL);
-- ----------------------------
-- Table structure for user_permission
-- ----------------------------
DROP TABLE IF EXISTS `user_permission`;
CREATE TABLE `user_permission` (
`UserID` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`SubMenuID` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`Button` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- View structure for view_order
-- ----------------------------
DROP VIEW IF EXISTS `view_order`;
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `view_order` AS select `o`.`OrderID` AS `OrderID`,`o`.`OrderDate` AS `OrderDate`,`o`.`UserID` AS `UserID`,`u`.`UserName` AS `UserName`,`o`.`TotalAmount` AS `TotalAmount`,`p`.`ProductID` AS `ProductID`,`p`.`ProductName` AS `ProductName`,`od`.`Qty` AS `Qty`,`od`.`Price` AS `Price`,`od`.`Total` AS `Total`,(`od`.`Price` - `p`.`UnitPrice`) AS `Income` from (((`tblorder` `o` join `tblorder_detail` `od` on((`o`.`OrderID` = `od`.`OrderID`))) join `tbluser` `u` on((`o`.`UserID` = `u`.`UserID`))) join `tblproduct` `p` on((`od`.`ProductID` = `p`.`ProductID`)));
-- ----------------------------
-- View structure for view_product
-- ----------------------------
DROP VIEW IF EXISTS `view_product`;
CREATE ALGORITHM = UNDEFINED DEFINER = `SP9`@`localhost` SQL SECURITY DEFINER VIEW `view_product` AS select `tblproduct`.`ProductID` AS `ProductID`,`tblproduct`.`ProductName` AS `ProductName`,`tblproduct`.`Barcode` AS `Barcode`,`tblproduct`.`UnitPrice` AS `UnitPrice`,`tblproduct`.`SellPrice` AS `SellPrice`,`tblcategory`.`CategoryName` AS `CategoryName`,`tblproduct`.`Photo` AS `Photo`,`tblproduct`.`QtyInStock` AS `QtyInStock` from (`tblproduct` join `tblcategory` on((`tblproduct`.`CategoryID` = `tblcategory`.`CategoryID`)));
-- ----------------------------
-- Procedure structure for pro_product
-- ----------------------------
DROP PROCEDURE IF EXISTS `pro_product`;
delimiter ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `pro_product`()
BEGIN
select * from tblproduct;
END
;;
delimiter ;
SET FOREIGN_KEY_CHECKS = 1;