1 | CREATE TABLE dtb_kiyaku ( |
---|
2 | kiyaku_id int auto_increment primary key NOT NULL, |
---|
3 | kiyaku_title text NOT NULL, |
---|
4 | kiyaku_text text NOT NULL, |
---|
5 | rank int NOT NULL DEFAULT 0, |
---|
6 | creator_id int NOT NULL, |
---|
7 | create_date datetime NOT NULL , |
---|
8 | update_date datetime NOT NULL, |
---|
9 | del_flg smallint NOT NULL DEFAULT 0 |
---|
10 | ) TYPE=InnoDB ; |
---|
11 | |
---|
12 | CREATE TABLE mtb_zip ( |
---|
13 | code text, |
---|
14 | old_zipcode text, |
---|
15 | zipcode text, |
---|
16 | state_kana text, |
---|
17 | city_kana text, |
---|
18 | town_kana text, |
---|
19 | state text, |
---|
20 | city text, |
---|
21 | town text, |
---|
22 | flg1 text, |
---|
23 | flg2 text, |
---|
24 | flg3 text, |
---|
25 | flg4 text, |
---|
26 | flg5 text, |
---|
27 | flg6 text |
---|
28 | ) TYPE=InnoDB ; |
---|
29 | |
---|
30 | CREATE TABLE dtb_bat_order_daily_age ( |
---|
31 | order_count numeric NOT NULL DEFAULT 0, |
---|
32 | total numeric NOT NULL DEFAULT 0, |
---|
33 | total_average numeric NOT NULL DEFAULT 0, |
---|
34 | start_age smallint, |
---|
35 | end_age smallint, |
---|
36 | member smallint, |
---|
37 | order_date datetime, |
---|
38 | create_date datetime NOT NULL |
---|
39 | ) TYPE=InnoDB ; |
---|
40 | |
---|
41 | CREATE TABLE dtb_update ( |
---|
42 | module_id int NOT NULL UNIQUE, |
---|
43 | module_name text NOT NULL, |
---|
44 | now_version text, |
---|
45 | latest_version text NOT NULL, |
---|
46 | module_explain text, |
---|
47 | main_php text NOT NULL, |
---|
48 | extern_php text NOT NULL, |
---|
49 | install_sql text, |
---|
50 | uninstall_sql text, |
---|
51 | other_files text, |
---|
52 | del_flg smallint NOT NULL DEFAULT 0, |
---|
53 | create_date datetime NOT NULL , |
---|
54 | update_date datetime, |
---|
55 | release_date datetime NOT NULL |
---|
56 | ) TYPE=InnoDB ; |
---|
57 | |
---|
58 | CREATE TABLE dtb_baseinfo ( |
---|
59 | company_name text, |
---|
60 | company_kana text, |
---|
61 | zip01 text, |
---|
62 | zip02 text, |
---|
63 | pref smallint, |
---|
64 | addr01 text, |
---|
65 | addr02 text, |
---|
66 | tel01 text, |
---|
67 | tel02 text, |
---|
68 | tel03 text, |
---|
69 | fax01 text, |
---|
70 | fax02 text, |
---|
71 | fax03 text, |
---|
72 | business_hour text, |
---|
73 | law_company text, |
---|
74 | law_manager text, |
---|
75 | law_zip01 text, |
---|
76 | law_zip02 text, |
---|
77 | law_pref smallint, |
---|
78 | law_addr01 text, |
---|
79 | law_addr02 text, |
---|
80 | law_tel01 text, |
---|
81 | law_tel02 text, |
---|
82 | law_tel03 text, |
---|
83 | law_fax01 text, |
---|
84 | law_fax02 text, |
---|
85 | law_fax03 text, |
---|
86 | law_email text, |
---|
87 | law_url text, |
---|
88 | law_term01 text, |
---|
89 | law_term02 text, |
---|
90 | law_term03 text, |
---|
91 | law_term04 text, |
---|
92 | law_term05 text, |
---|
93 | law_term06 text, |
---|
94 | law_term07 text, |
---|
95 | law_term08 text, |
---|
96 | law_term09 text, |
---|
97 | law_term10 text, |
---|
98 | tax numeric DEFAULT 5, |
---|
99 | tax_rule smallint DEFAULT 1, |
---|
100 | email01 text, |
---|
101 | email02 text, |
---|
102 | email03 text, |
---|
103 | email04 text, |
---|
104 | email05 text, |
---|
105 | free_rule numeric, |
---|
106 | shop_name text, |
---|
107 | shop_kana text, |
---|
108 | point_rate numeric, |
---|
109 | welcome_point numeric, |
---|
110 | update_date datetime, |
---|
111 | top_tpl text, |
---|
112 | product_tpl text, |
---|
113 | detail_tpl text, |
---|
114 | mypage_tpl text, |
---|
115 | good_traded text, |
---|
116 | message text |
---|
117 | ) TYPE=InnoDB ; |
---|
118 | |
---|
119 | CREATE TABLE dtb_deliv ( |
---|
120 | deliv_id int auto_increment primary key NOT NULL, |
---|
121 | name text, |
---|
122 | service_name text, |
---|
123 | confirm_url text, |
---|
124 | rank int, |
---|
125 | status smallint NOT NULL DEFAULT 1, |
---|
126 | del_flg smallint NOT NULL DEFAULT 0, |
---|
127 | creator_id int NOT NULL, |
---|
128 | create_date datetime NOT NULL , |
---|
129 | update_date datetime |
---|
130 | ) TYPE=InnoDB ; |
---|
131 | |
---|
132 | CREATE TABLE dtb_delivtime ( |
---|
133 | deliv_id int NOT NULL, |
---|
134 | time_id int auto_increment primary key NOT NULL, |
---|
135 | deliv_time text NOT NULL |
---|
136 | ) TYPE=InnoDB ; |
---|
137 | |
---|
138 | CREATE TABLE dtb_delivfee ( |
---|
139 | deliv_id int NOT NULL, |
---|
140 | fee_id int auto_increment primary key NOT NULL, |
---|
141 | fee text NOT NULL, |
---|
142 | pref smallint |
---|
143 | ) TYPE=InnoDB ; |
---|
144 | |
---|
145 | CREATE TABLE dtb_payment ( |
---|
146 | payment_id int auto_increment primary key NOT NULL, |
---|
147 | payment_method text, |
---|
148 | charge numeric, |
---|
149 | rule numeric, |
---|
150 | deliv_id int DEFAULT 0, |
---|
151 | rank int, |
---|
152 | note text, |
---|
153 | fix smallint, |
---|
154 | status smallint NOT NULL DEFAULT 1, |
---|
155 | del_flg smallint NOT NULL DEFAULT 0, |
---|
156 | creator_id int NOT NULL, |
---|
157 | create_date datetime NOT NULL , |
---|
158 | update_date datetime, |
---|
159 | payment_image text, |
---|
160 | upper_rule numeric, |
---|
161 | charge_flg int2 DEFAULT 1, |
---|
162 | rule_min numeric, |
---|
163 | upper_rule_max numeric, |
---|
164 | module_id int4, |
---|
165 | module_path text, |
---|
166 | memo01 text, |
---|
167 | memo02 text, |
---|
168 | memo03 text, |
---|
169 | memo04 text, |
---|
170 | memo05 text, |
---|
171 | memo06 text, |
---|
172 | memo07 text, |
---|
173 | memo08 text, |
---|
174 | memo09 text, |
---|
175 | memo10 text |
---|
176 | ) TYPE=InnoDB ; |
---|
177 | |
---|
178 | CREATE TABLE dtb_mailtemplate ( |
---|
179 | template_id int NOT NULL, |
---|
180 | subject text, |
---|
181 | header text, |
---|
182 | footer text, |
---|
183 | creator_id int NOT NULL, |
---|
184 | del_flg smallint NOT NULL DEFAULT 0, |
---|
185 | create_date datetime NOT NULL , |
---|
186 | update_date datetime NOT NULL |
---|
187 | ) TYPE=InnoDB ; |
---|
188 | |
---|
189 | CREATE TABLE dtb_mailmaga_template ( |
---|
190 | template_id int auto_increment primary key NOT NULL UNIQUE, |
---|
191 | subject text, |
---|
192 | charge_image text, |
---|
193 | mail_method int, |
---|
194 | header text, |
---|
195 | body text, |
---|
196 | main_title text, |
---|
197 | main_comment text, |
---|
198 | main_product_id int, |
---|
199 | sub_title text, |
---|
200 | sub_comment text, |
---|
201 | sub_product_id01 int, |
---|
202 | sub_product_id02 int, |
---|
203 | sub_product_id03 int, |
---|
204 | sub_product_id04 int, |
---|
205 | sub_product_id05 int, |
---|
206 | sub_product_id06 int, |
---|
207 | sub_product_id07 int, |
---|
208 | sub_product_id08 int, |
---|
209 | sub_product_id09 int, |
---|
210 | sub_product_id10 int, |
---|
211 | sub_product_id11 int, |
---|
212 | sub_product_id12 int, |
---|
213 | del_flg smallint NOT NULL DEFAULT 0, |
---|
214 | creator_id int NOT NULL, |
---|
215 | create_date datetime NOT NULL , |
---|
216 | update_date datetime |
---|
217 | ) TYPE=InnoDB ; |
---|
218 | |
---|
219 | CREATE TABLE dtb_send_history ( |
---|
220 | send_id int auto_increment primary key NOT NULL, |
---|
221 | mail_method smallint, |
---|
222 | subject text, |
---|
223 | body text, |
---|
224 | send_count int, |
---|
225 | complete_count int NOT NULL DEFAULT 0, |
---|
226 | start_date datetime, |
---|
227 | end_date datetime, |
---|
228 | search_data text, |
---|
229 | del_flg smallint NOT NULL DEFAULT 0, |
---|
230 | creator_id int NOT NULL, |
---|
231 | create_date datetime NOT NULL , |
---|
232 | update_date datetime NOT NULL |
---|
233 | ) TYPE=InnoDB ; |
---|
234 | |
---|
235 | CREATE TABLE dtb_send_customer ( |
---|
236 | customer_id int, |
---|
237 | send_id int auto_increment primary key NOT NULL, |
---|
238 | email text, |
---|
239 | name text, |
---|
240 | send_flag smallint |
---|
241 | ) TYPE=InnoDB ; |
---|
242 | |
---|
243 | CREATE TABLE dtb_products ( |
---|
244 | product_id int auto_increment primary key NOT NULL UNIQUE, |
---|
245 | name text, |
---|
246 | deliv_fee numeric, |
---|
247 | sale_limit numeric, |
---|
248 | sale_unlimited smallint DEFAULT 0, |
---|
249 | category_id int, |
---|
250 | rank int, |
---|
251 | status smallint NOT NULL DEFAULT 2, |
---|
252 | product_flag text, |
---|
253 | point_rate numeric, |
---|
254 | comment1 text, |
---|
255 | comment2 text, |
---|
256 | comment3 mediumtext, |
---|
257 | comment4 text, |
---|
258 | comment5 text, |
---|
259 | comment6 text, |
---|
260 | file1 text, |
---|
261 | file2 text, |
---|
262 | file3 text, |
---|
263 | file4 text, |
---|
264 | file5 text, |
---|
265 | file6 text, |
---|
266 | main_list_comment text, |
---|
267 | main_list_image text, |
---|
268 | main_comment mediumtext, |
---|
269 | main_image text, |
---|
270 | main_large_image text, |
---|
271 | sub_title1 text, |
---|
272 | sub_comment1 mediumtext, |
---|
273 | sub_image1 text, |
---|
274 | sub_large_image1 text, |
---|
275 | sub_title2 text, |
---|
276 | sub_comment2 mediumtext, |
---|
277 | sub_image2 text, |
---|
278 | sub_large_image2 text, |
---|
279 | sub_title3 text, |
---|
280 | sub_comment3 mediumtext, |
---|
281 | sub_image3 text, |
---|
282 | sub_large_image3 text, |
---|
283 | sub_title4 text, |
---|
284 | sub_comment4 mediumtext, |
---|
285 | sub_image4 text, |
---|
286 | sub_large_image4 text, |
---|
287 | sub_title5 text, |
---|
288 | sub_comment5 mediumtext, |
---|
289 | sub_image5 text, |
---|
290 | sub_large_image5 text, |
---|
291 | sub_title6 text, |
---|
292 | sub_comment6 mediumtext, |
---|
293 | sub_image6 text, |
---|
294 | sub_large_image6 text, |
---|
295 | del_flg smallint NOT NULL DEFAULT 0, |
---|
296 | creator_id int NOT NULL, |
---|
297 | create_date datetime NOT NULL , |
---|
298 | update_date datetime, |
---|
299 | deliv_date_id int |
---|
300 | ) TYPE=InnoDB ; |
---|
301 | |
---|
302 | CREATE TABLE dtb_products_class ( |
---|
303 | product_class_id int auto_increment primary key NOT NULL UNIQUE, |
---|
304 | product_id int NOT NULL, |
---|
305 | classcategory_id1 int NOT NULL DEFAULT 0, |
---|
306 | classcategory_id2 int NOT NULL DEFAULT 0, |
---|
307 | product_code text, |
---|
308 | stock numeric, |
---|
309 | stock_unlimited smallint DEFAULT 0, |
---|
310 | sale_limit numeric, |
---|
311 | price01 numeric, |
---|
312 | price02 numeric, |
---|
313 | status smallint, |
---|
314 | creator_id int NOT NULL, |
---|
315 | create_date datetime NOT NULL , |
---|
316 | update_date datetime |
---|
317 | ) TYPE=InnoDB ; |
---|
318 | |
---|
319 | CREATE TABLE dtb_class ( |
---|
320 | class_id int auto_increment primary key NOT NULL, |
---|
321 | name text, |
---|
322 | status smallint, |
---|
323 | rank int, |
---|
324 | creator_id int NOT NULL, |
---|
325 | create_date datetime NOT NULL , |
---|
326 | update_date datetime, |
---|
327 | del_flg smallint NOT NULL DEFAULT 0, |
---|
328 | product_id int |
---|
329 | ) TYPE=InnoDB ; |
---|
330 | |
---|
331 | CREATE TABLE dtb_classcategory ( |
---|
332 | classcategory_id int auto_increment primary key NOT NULL, |
---|
333 | name text, |
---|
334 | class_id int NOT NULL, |
---|
335 | status smallint, |
---|
336 | rank int, |
---|
337 | creator_id int NOT NULL, |
---|
338 | create_date datetime NOT NULL , |
---|
339 | update_date datetime, |
---|
340 | del_flg smallint NOT NULL DEFAULT 0 |
---|
341 | ) TYPE=InnoDB ; |
---|
342 | |
---|
343 | CREATE TABLE dtb_category ( |
---|
344 | category_id int auto_increment primary key NOT NULL, |
---|
345 | category_name text, |
---|
346 | parent_category_id int NOT NULL DEFAULT 0, |
---|
347 | level int NOT NULL, |
---|
348 | rank int, |
---|
349 | creator_id int NOT NULL, |
---|
350 | create_date datetime NOT NULL , |
---|
351 | update_date datetime, |
---|
352 | del_flg smallint NOT NULL DEFAULT 0 |
---|
353 | ) TYPE=InnoDB ; |
---|
354 | |
---|
355 | CREATE TABLE dtb_bat_order_daily ( |
---|
356 | total_order numeric NOT NULL DEFAULT 0, |
---|
357 | member numeric NOT NULL DEFAULT 0, |
---|
358 | nonmember numeric NOT NULL DEFAULT 0, |
---|
359 | men numeric NOT NULL DEFAULT 0, |
---|
360 | women numeric NOT NULL DEFAULT 0, |
---|
361 | men_member numeric NOT NULL DEFAULT 0, |
---|
362 | men_nonmember numeric NOT NULL DEFAULT 0, |
---|
363 | women_member numeric NOT NULL DEFAULT 0, |
---|
364 | women_nonmember numeric NOT NULL DEFAULT 0, |
---|
365 | total numeric NOT NULL DEFAULT 0, |
---|
366 | total_average numeric NOT NULL DEFAULT 0, |
---|
367 | order_date datetime NOT NULL , |
---|
368 | create_date datetime NOT NULL , |
---|
369 | year smallint NOT NULL, |
---|
370 | month smallint NOT NULL, |
---|
371 | day smallint NOT NULL, |
---|
372 | wday smallint NOT NULL, |
---|
373 | key_day text NOT NULL, |
---|
374 | key_month text NOT NULL, |
---|
375 | key_year text NOT NULL, |
---|
376 | key_wday text NOT NULL |
---|
377 | ) TYPE=InnoDB ; |
---|
378 | |
---|
379 | CREATE TABLE dtb_bat_order_daily_hour ( |
---|
380 | total_order numeric NOT NULL DEFAULT 0, |
---|
381 | member numeric NOT NULL DEFAULT 0, |
---|
382 | nonmember numeric NOT NULL DEFAULT 0, |
---|
383 | men numeric NOT NULL DEFAULT 0, |
---|
384 | women numeric NOT NULL DEFAULT 0, |
---|
385 | men_member numeric NOT NULL DEFAULT 0, |
---|
386 | men_nonmember numeric NOT NULL DEFAULT 0, |
---|
387 | women_member numeric NOT NULL DEFAULT 0, |
---|
388 | women_nonmember numeric NOT NULL DEFAULT 0, |
---|
389 | total numeric NOT NULL DEFAULT 0, |
---|
390 | total_average numeric NOT NULL DEFAULT 0, |
---|
391 | hour smallint NOT NULL DEFAULT 0, |
---|
392 | order_date datetime , |
---|
393 | create_date datetime NOT NULL |
---|
394 | ) TYPE=InnoDB ; |
---|
395 | |
---|
396 | CREATE TABLE dtb_recommend_products ( |
---|
397 | product_id int NOT NULL, |
---|
398 | recommend_product_id int, |
---|
399 | rank int NOT NULL, |
---|
400 | comment text, |
---|
401 | status smallint NOT NULL DEFAULT 0, |
---|
402 | creator_id int NOT NULL, |
---|
403 | create_date datetime NOT NULL , |
---|
404 | update_date datetime NOT NULL |
---|
405 | ) TYPE=InnoDB ; |
---|
406 | |
---|
407 | CREATE TABLE dtb_review ( |
---|
408 | review_id int auto_increment primary key NOT NULL, |
---|
409 | product_id int NOT NULL, |
---|
410 | reviewer_name text NOT NULL, |
---|
411 | reviewer_url text, |
---|
412 | sex smallint, |
---|
413 | customer_id int, |
---|
414 | recommend_level smallint NOT NULL, |
---|
415 | title text NOT NULL, |
---|
416 | comment text NOT NULL, |
---|
417 | status smallint DEFAULT 2, |
---|
418 | creator_id int NOT NULL, |
---|
419 | create_date datetime, |
---|
420 | update_date datetime, |
---|
421 | del_flg smallint NOT NULL DEFAULT 0 |
---|
422 | ) TYPE=InnoDB ; |
---|
423 | |
---|
424 | CREATE TABLE dtb_customer_reading ( |
---|
425 | reading_product_id int NOT NULL, |
---|
426 | customer_id int NOT NULL, |
---|
427 | create_date datetime NOT NULL, |
---|
428 | update_date datetime NOT NULL |
---|
429 | ) TYPE=InnoDB ; |
---|
430 | |
---|
431 | CREATE TABLE dtb_category_count ( |
---|
432 | category_id int NOT NULL, |
---|
433 | product_count int NOT NULL, |
---|
434 | create_date datetime NOT NULL |
---|
435 | ) TYPE=InnoDB ; |
---|
436 | |
---|
437 | CREATE TABLE dtb_category_total_count ( |
---|
438 | category_id int NOT NULL, |
---|
439 | product_count int, |
---|
440 | create_date datetime NOT NULL |
---|
441 | ) TYPE=InnoDB ; |
---|
442 | |
---|
443 | CREATE TABLE dtb_news ( |
---|
444 | news_id int auto_increment primary key NOT NULL UNIQUE, |
---|
445 | news_date datetime, |
---|
446 | rank int, |
---|
447 | news_title text NOT NULL, |
---|
448 | news_comment text, |
---|
449 | news_url text, |
---|
450 | news_select smallint NOT NULL DEFAULT 0, |
---|
451 | link_method text, |
---|
452 | creator_id int NOT NULL, |
---|
453 | create_date datetime NOT NULL , |
---|
454 | update_date datetime, |
---|
455 | del_flg smallint NOT NULL DEFAULT 0 |
---|
456 | ) TYPE=InnoDB ; |
---|
457 | |
---|
458 | CREATE TABLE dtb_best_products ( |
---|
459 | best_id int auto_increment primary key NOT NULL, |
---|
460 | category_id int NOT NULL, |
---|
461 | rank int NOT NULL DEFAULT 0, |
---|
462 | product_id int NOT NULL, |
---|
463 | title text, |
---|
464 | comment text, |
---|
465 | creator_id int NOT NULL, |
---|
466 | create_date datetime NOT NULL , |
---|
467 | update_date datetime, |
---|
468 | del_flg smallint NOT NULL DEFAULT 0 |
---|
469 | ) TYPE=InnoDB ; |
---|
470 | |
---|
471 | CREATE TABLE dtb_mail_history ( |
---|
472 | send_id int auto_increment primary key NOT NULL, |
---|
473 | order_id int NOT NULL, |
---|
474 | send_date datetime, |
---|
475 | template_id int, |
---|
476 | creator_id int NOT NULL, |
---|
477 | subject text, |
---|
478 | mail_body text |
---|
479 | ) TYPE=InnoDB ; |
---|
480 | |
---|
481 | CREATE TABLE dtb_customer ( |
---|
482 | customer_id int auto_increment primary key NOT NULL, |
---|
483 | name01 text NOT NULL, |
---|
484 | name02 text NOT NULL, |
---|
485 | kana01 text NOT NULL, |
---|
486 | kana02 text NOT NULL, |
---|
487 | zip01 text, |
---|
488 | zip02 text, |
---|
489 | pref smallint, |
---|
490 | addr01 text, |
---|
491 | addr02 text, |
---|
492 | email text NOT NULL, |
---|
493 | email_mobile text, |
---|
494 | tel01 text, |
---|
495 | tel02 text, |
---|
496 | tel03 text, |
---|
497 | fax01 text, |
---|
498 | fax02 text, |
---|
499 | fax03 text, |
---|
500 | sex smallint, |
---|
501 | job smallint, |
---|
502 | birth datetime, |
---|
503 | password text, |
---|
504 | reminder smallint, |
---|
505 | reminder_answer text, |
---|
506 | secret_key varchar(50) NOT NULL UNIQUE, |
---|
507 | first_buy_date datetime, |
---|
508 | last_buy_date datetime, |
---|
509 | buy_times numeric DEFAULT 0, |
---|
510 | buy_total numeric DEFAULT 0, |
---|
511 | point numeric DEFAULT 0, |
---|
512 | note text, |
---|
513 | status smallint NOT NULL DEFAULT 1, |
---|
514 | create_date datetime NOT NULL , |
---|
515 | update_date datetime , |
---|
516 | del_flg smallint NOT NULL DEFAULT 0, |
---|
517 | cell01 text, |
---|
518 | cell02 text, |
---|
519 | cell03 text, |
---|
520 | mobile_phone_id text |
---|
521 | ) TYPE=InnoDB ; |
---|
522 | |
---|
523 | CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(64)); |
---|
524 | |
---|
525 | CREATE TABLE dtb_customer_mail ( |
---|
526 | email varchar(50) NOT NULL UNIQUE, |
---|
527 | mail_flag smallint, |
---|
528 | secret_key varchar(50) UNIQUE, |
---|
529 | create_date datetime NOT NULL , |
---|
530 | update_date datetime |
---|
531 | ) TYPE=InnoDB ; |
---|
532 | |
---|
533 | CREATE TABLE dtb_customer_mail_temp ( |
---|
534 | email varchar(50) NOT NULL UNIQUE, |
---|
535 | mail_flag smallint, |
---|
536 | temp_id varchar(50) NOT NULL UNIQUE, |
---|
537 | end_flag smallint, |
---|
538 | update_date datetime NOT NULL , |
---|
539 | create_data datetime NOT NULL |
---|
540 | ) TYPE=InnoDB ; |
---|
541 | |
---|
542 | CREATE TABLE dtb_order ( |
---|
543 | order_id int auto_increment primary key NOT NULL, |
---|
544 | order_temp_id text, |
---|
545 | customer_id int NOT NULL, |
---|
546 | message text, |
---|
547 | order_name01 text, |
---|
548 | order_name02 text, |
---|
549 | order_kana01 text, |
---|
550 | order_kana02 text, |
---|
551 | order_email text, |
---|
552 | order_tel01 text, |
---|
553 | order_tel02 text, |
---|
554 | order_tel03 text, |
---|
555 | order_fax01 text, |
---|
556 | order_fax02 text, |
---|
557 | order_fax03 text, |
---|
558 | order_zip01 text, |
---|
559 | order_zip02 text, |
---|
560 | order_pref text, |
---|
561 | order_addr01 text, |
---|
562 | order_addr02 text, |
---|
563 | order_sex smallint, |
---|
564 | order_birth datetime, |
---|
565 | order_job int, |
---|
566 | deliv_name01 text, |
---|
567 | deliv_name02 text, |
---|
568 | deliv_kana01 text, |
---|
569 | deliv_kana02 text, |
---|
570 | deliv_tel01 text, |
---|
571 | deliv_tel02 text, |
---|
572 | deliv_tel03 text, |
---|
573 | deliv_fax01 text, |
---|
574 | deliv_fax02 text, |
---|
575 | deliv_fax03 text, |
---|
576 | deliv_zip01 text, |
---|
577 | deliv_zip02 text, |
---|
578 | deliv_pref text, |
---|
579 | deliv_addr01 text, |
---|
580 | deliv_addr02 text, |
---|
581 | subtotal numeric, |
---|
582 | discount numeric, |
---|
583 | deliv_fee numeric, |
---|
584 | charge numeric, |
---|
585 | use_point numeric, |
---|
586 | add_point numeric, |
---|
587 | birth_point numeric DEFAULT 0, |
---|
588 | tax numeric, |
---|
589 | total numeric, |
---|
590 | payment_total numeric, |
---|
591 | payment_id int, |
---|
592 | payment_method text, |
---|
593 | deliv_id int, |
---|
594 | deliv_time_id int, |
---|
595 | deliv_time text, |
---|
596 | deliv_no text, |
---|
597 | note text, |
---|
598 | status smallint, |
---|
599 | create_date datetime NOT NULL , |
---|
600 | loan_result text, |
---|
601 | credit_result text, |
---|
602 | credit_msg text, |
---|
603 | update_date datetime, |
---|
604 | commit_date text, |
---|
605 | del_flg smallint NOT NULL DEFAULT 0, |
---|
606 | deliv_date text, |
---|
607 | conveni_data text, |
---|
608 | cell01 text, |
---|
609 | cell02 text, |
---|
610 | cell03 text, |
---|
611 | memo01 text, |
---|
612 | memo02 text, |
---|
613 | memo03 text, |
---|
614 | memo04 text, |
---|
615 | memo05 text, |
---|
616 | memo06 text, |
---|
617 | memo07 text, |
---|
618 | memo08 text, |
---|
619 | memo09 text, |
---|
620 | memo10 text |
---|
621 | ) TYPE=InnoDB ; |
---|
622 | |
---|
623 | CREATE TABLE dtb_order_temp ( |
---|
624 | order_temp_id text NOT NULL, |
---|
625 | customer_id int NOT NULL, |
---|
626 | message text, |
---|
627 | order_name01 text, |
---|
628 | order_name02 text, |
---|
629 | order_kana01 text, |
---|
630 | order_kana02 text, |
---|
631 | order_email text, |
---|
632 | order_tel01 text, |
---|
633 | order_tel02 text, |
---|
634 | order_tel03 text, |
---|
635 | order_fax01 text, |
---|
636 | order_fax02 text, |
---|
637 | order_fax03 text, |
---|
638 | order_zip01 text, |
---|
639 | order_zip02 text, |
---|
640 | order_pref text, |
---|
641 | order_addr01 text, |
---|
642 | order_addr02 text, |
---|
643 | order_sex smallint, |
---|
644 | order_birth datetime, |
---|
645 | order_job int, |
---|
646 | deliv_name01 text, |
---|
647 | deliv_name02 text, |
---|
648 | deliv_kana01 text, |
---|
649 | deliv_kana02 text, |
---|
650 | deliv_tel01 text, |
---|
651 | deliv_tel02 text, |
---|
652 | deliv_tel03 text, |
---|
653 | deliv_fax01 text, |
---|
654 | deliv_fax02 text, |
---|
655 | deliv_fax03 text, |
---|
656 | deliv_zip01 text, |
---|
657 | deliv_zip02 text, |
---|
658 | deliv_pref text, |
---|
659 | deliv_addr01 text, |
---|
660 | deliv_addr02 text, |
---|
661 | subtotal numeric, |
---|
662 | discount numeric, |
---|
663 | deliv_fee numeric, |
---|
664 | charge numeric, |
---|
665 | use_point numeric, |
---|
666 | add_point numeric, |
---|
667 | birth_point numeric DEFAULT 0, |
---|
668 | tax numeric, |
---|
669 | total numeric, |
---|
670 | payment_total numeric, |
---|
671 | payment_id int, |
---|
672 | payment_method text, |
---|
673 | deliv_id int, |
---|
674 | deliv_time_id int, |
---|
675 | deliv_time text, |
---|
676 | deliv_no text, |
---|
677 | note text, |
---|
678 | mail_flag smallint, |
---|
679 | status smallint, |
---|
680 | deliv_check smallint, |
---|
681 | point_check smallint, |
---|
682 | loan_result text, |
---|
683 | credit_result text, |
---|
684 | credit_msg text, |
---|
685 | create_date datetime NOT NULL , |
---|
686 | update_date datetime, |
---|
687 | del_flg smallint NOT NULL DEFAULT 0, |
---|
688 | deliv_date text, |
---|
689 | conveni_data text, |
---|
690 | cell01 text, |
---|
691 | cell02 text, |
---|
692 | cell03 text, |
---|
693 | order_id int4, |
---|
694 | memo01 text, |
---|
695 | memo02 text, |
---|
696 | memo03 text, |
---|
697 | memo04 text, |
---|
698 | memo05 text, |
---|
699 | memo06 text, |
---|
700 | memo07 text, |
---|
701 | memo08 text, |
---|
702 | memo09 text, |
---|
703 | memo10 text |
---|
704 | ) TYPE=InnoDB ; |
---|
705 | |
---|
706 | CREATE TABLE dtb_other_deliv ( |
---|
707 | other_deliv_id int auto_increment primary key NOT NULL, |
---|
708 | customer_id int NOT NULL, |
---|
709 | name01 text, |
---|
710 | name02 text, |
---|
711 | kana01 text, |
---|
712 | kana02 text, |
---|
713 | zip01 text, |
---|
714 | zip02 text, |
---|
715 | pref text, |
---|
716 | addr01 text, |
---|
717 | addr02 text, |
---|
718 | tel01 text, |
---|
719 | tel02 text, |
---|
720 | tel03 text |
---|
721 | ) TYPE=InnoDB ; |
---|
722 | |
---|
723 | CREATE TABLE dtb_order_detail ( |
---|
724 | order_id int NOT NULL, |
---|
725 | product_id int NOT NULL, |
---|
726 | classcategory_id1 int NOT NULL, |
---|
727 | classcategory_id2 int NOT NULL, |
---|
728 | product_name text NOT NULL, |
---|
729 | product_code text, |
---|
730 | classcategory_name1 text, |
---|
731 | classcategory_name2 text, |
---|
732 | price numeric, |
---|
733 | quantity numeric, |
---|
734 | point_rate numeric |
---|
735 | ) TYPE=InnoDB ; |
---|
736 | |
---|
737 | CREATE TABLE mtb_pref ( |
---|
738 | pref_id smallint NOT NULL, |
---|
739 | pref_name text, |
---|
740 | rank smallint NOT NULL DEFAULT 0 |
---|
741 | ) TYPE=InnoDB ; |
---|
742 | |
---|
743 | CREATE TABLE dtb_member ( |
---|
744 | member_id int auto_increment primary key NOT NULL, |
---|
745 | name text, |
---|
746 | department text, |
---|
747 | login_id text NOT NULL, |
---|
748 | password text NOT NULL, |
---|
749 | authority smallint NOT NULL, |
---|
750 | rank int NOT NULL DEFAULT 0, |
---|
751 | work smallint NOT NULL DEFAULT 1, |
---|
752 | del_flg smallint NOT NULL DEFAULT 0, |
---|
753 | creator_id int NOT NULL, |
---|
754 | update_date datetime, |
---|
755 | create_date datetime NOT NULL , |
---|
756 | login_date datetime |
---|
757 | ) TYPE=InnoDB ; |
---|
758 | |
---|
759 | CREATE TABLE dtb_question ( |
---|
760 | question_id int auto_increment primary key NOT NULL, |
---|
761 | question_name text, |
---|
762 | question text, |
---|
763 | create_date datetime NOT NULL , |
---|
764 | del_flg smallint NOT NULL DEFAULT 0 |
---|
765 | ) TYPE=InnoDB ; |
---|
766 | |
---|
767 | CREATE TABLE dtb_question_result ( |
---|
768 | result_id int auto_increment primary key NOT NULL, |
---|
769 | question_id int NOT NULL, |
---|
770 | question_date datetime, |
---|
771 | question_name text, |
---|
772 | name01 text, |
---|
773 | name02 text, |
---|
774 | kana01 text, |
---|
775 | kana02 text, |
---|
776 | zip01 text, |
---|
777 | zip02 text, |
---|
778 | pref smallint, |
---|
779 | addr01 text, |
---|
780 | addr02 text, |
---|
781 | tel01 text, |
---|
782 | tel02 text, |
---|
783 | tel03 text, |
---|
784 | mail01 text, |
---|
785 | question01 text, |
---|
786 | question02 text, |
---|
787 | question03 text, |
---|
788 | question04 text, |
---|
789 | question05 text, |
---|
790 | question06 text, |
---|
791 | create_date datetime NOT NULL , |
---|
792 | del_flg smallint NOT NULL DEFAULT 0 |
---|
793 | ) TYPE=InnoDB ; |
---|
794 | |
---|
795 | CREATE TABLE dtb_bat_relate_products ( |
---|
796 | product_id int, |
---|
797 | relate_product_id int, |
---|
798 | customer_id int, |
---|
799 | create_date datetime |
---|
800 | ) TYPE=InnoDB ; |
---|
801 | |
---|
802 | CREATE TABLE dtb_campaign ( |
---|
803 | campaign_id int auto_increment primary key NOT NULL, |
---|
804 | campaign_name text, |
---|
805 | campaign_point_rate numeric NOT NULL, |
---|
806 | campaign_point_type smallint, |
---|
807 | start_date datetime NOT NULL, |
---|
808 | end_date datetime NOT NULL, |
---|
809 | search_condition text, |
---|
810 | del_flg smallint NOT NULL DEFAULT 0, |
---|
811 | create_date datetime NOT NULL, |
---|
812 | update_date datetime NOT NULL |
---|
813 | ) TYPE=InnoDB ; |
---|
814 | |
---|
815 | CREATE TABLE dtb_campaign_detail ( |
---|
816 | campaign_id int NOT NULL, |
---|
817 | product_id int NOT NULL, |
---|
818 | campaign_point_rate numeric NOT NULL |
---|
819 | ) TYPE=InnoDB ; |
---|
820 | |
---|
821 | CREATE TABLE dtb_pagelayout ( |
---|
822 | page_id int auto_increment primary key NOT NULL, |
---|
823 | page_name text, |
---|
824 | url text NOT NULL, |
---|
825 | php_dir text, |
---|
826 | tpl_dir text, |
---|
827 | filename text, |
---|
828 | header_chk smallint DEFAULT 1, |
---|
829 | footer_chk smallint DEFAULT 1, |
---|
830 | edit_flg smallint DEFAULT 1, |
---|
831 | author text, |
---|
832 | description text, |
---|
833 | keyword text, |
---|
834 | update_url text, |
---|
835 | create_date datetime NOT NULL , |
---|
836 | update_date datetime NOT NULL |
---|
837 | ) TYPE=InnoDB ; |
---|
838 | |
---|
839 | CREATE TABLE dtb_bloc ( |
---|
840 | bloc_id int auto_increment primary key NOT NULL, |
---|
841 | bloc_name text, |
---|
842 | tpl_path text, |
---|
843 | filename varchar(50) NOT NULL UNIQUE, |
---|
844 | create_date datetime NOT NULL , |
---|
845 | update_date datetime NOT NULL , |
---|
846 | php_path text, |
---|
847 | del_flg smallint NOT NULL DEFAULT 0 |
---|
848 | ) TYPE=InnoDB ; |
---|
849 | |
---|
850 | CREATE TABLE dtb_blocposition ( |
---|
851 | page_id int NOT NULL, |
---|
852 | target_id int, |
---|
853 | bloc_id int, |
---|
854 | bloc_row int, |
---|
855 | filename text |
---|
856 | ) TYPE=InnoDB ; |
---|
857 | |
---|
858 | CREATE TABLE dtb_csv ( |
---|
859 | no int auto_increment primary key, |
---|
860 | csv_id int NOT NULL, |
---|
861 | col text, |
---|
862 | disp_name text, |
---|
863 | rank int, |
---|
864 | status smallint NOT NULL DEFAULT 1, |
---|
865 | create_date datetime NOT NULL , |
---|
866 | update_date datetime NOT NULL |
---|
867 | ) TYPE=InnoDB ; |
---|
868 | |
---|
869 | CREATE TABLE dtb_csv_sql ( |
---|
870 | sql_id int auto_increment primary key, |
---|
871 | sql_name text NOT NULL, |
---|
872 | csv_sql text, |
---|
873 | update_date datetime NOT NULL, |
---|
874 | create_date datetime NOT NULL |
---|
875 | ) TYPE=InnoDB ; |
---|
876 | |
---|
877 | CREATE TABLE dtb_user_regist ( |
---|
878 | user_id int auto_increment primary key NOT NULL, |
---|
879 | org_name text, |
---|
880 | post_name text, |
---|
881 | name01 text, |
---|
882 | name02 text, |
---|
883 | kana01 text, |
---|
884 | kana02 text, |
---|
885 | email text NOT NULL, |
---|
886 | url text, |
---|
887 | note text, |
---|
888 | secret_key varchar(50) NOT NULL UNIQUE, |
---|
889 | status smallint NOT NULL, |
---|
890 | del_flg smallint DEFAULT 0, |
---|
891 | create_date datetime NOT NULL, |
---|
892 | update_date datetime NOT NULL |
---|
893 | ) TYPE=InnoDB ; |
---|
894 | |
---|
895 | CREATE TABLE dtb_templates |
---|
896 | ( |
---|
897 | template_code varchar(50) NOT NULL UNIQUE , |
---|
898 | template_name text , |
---|
899 | create_date datetime NOT NULL , |
---|
900 | update_date datetime NOT NULL |
---|
901 | ) TYPE=InnoDB ; |
---|
902 | |
---|
903 | CREATE TABLE dtb_table_comment |
---|
904 | ( |
---|
905 | id int auto_increment primary key, |
---|
906 | table_name text, |
---|
907 | column_name text, |
---|
908 | description text |
---|
909 | ) TYPE=InnoDB ; |
---|