プロジェクト

全般

プロフィール

リビジョン 370

堀内6年以上前に追加

請求書削除データ・請求書削除明細データ追加

差分を表示:

ProcessManagement.sql
1 1
-- Project Name : noname
2
-- Date/Time    : 2018/07/24 8:34:39
2
-- Date/Time    : 2018/08/06 8:37:19
3 3
-- Author       : Horiuchi
4 4
-- RDBMS Type   : MySQL
5 5
-- Application  : A5:SQL Mk-2
6 6

  
7
/*
8
  BackupToTempTable, RestoreFromTempTable?^????????t????????????B
9
  ???????Adrop table, create table ????f?[?^???c?????B
10
  ????@?\????I?? $$TableName ???????e?[?u????????????B
11
*/
12

  
7 13
-- ?S????s???\??f?[?^
14
--* BackupToTempTable
8 15
drop table if exists actionscheduledata cascade;
9 16

  
17
--* RestoreFromTempTable
10 18
create table actionscheduledata (
11 19
  TargetDate date not null comment '????'
12 20
  , PersonCode decimal(8,0) not null comment '?S????R?[?h'
......
29 37
  on actionscheduledata(TargetDay);
30 38

  
31 39
-- ???F?o?H?}?X?^
40
--* BackupToTempTable
32 41
drop table if exists approvalmaster cascade;
33 42

  
43
--* RestoreFromTempTable
34 44
create table approvalmaster (
35 45
  ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
36 46
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
......
44 54
) comment '???F?o?H?}?X?^' ;
45 55

  
46 56
-- ?o?????f?[?^
57
--* BackupToTempTable
47 58
drop table if exists attendancedailydata cascade;
48 59

  
60
--* RestoreFromTempTable
49 61
create table attendancedailydata (
50 62
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
51 63
  , AttendanceDate date not null comment '???????'
......
69 81
  on attendancedailydata(AttendanceDate);
70 82

  
71 83
-- ?o?????f?[?^
84
--* BackupToTempTable
72 85
drop table if exists attendancedata cascade;
73 86

  
87
--* RestoreFromTempTable
74 88
create table attendancedata (
75 89
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
76 90
  , AttendanceMonth date not null comment '?o?????N??'
......
85 99
) comment '?o?????f?[?^' ;
86 100

  
87 101
-- ??s?c????}?X?^
102
--* BackupToTempTable
88 103
drop table if exists bankbusinessdaymaster cascade;
89 104

  
105
--* RestoreFromTempTable
90 106
create table bankbusinessdaymaster (
91 107
  YEARMONTH decimal(6,0) default '0' not null comment '?N??'
92 108
  , BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???'
......
98 114
) comment '??s?c????}?X?^' ;
99 115

  
100 116
-- ???????f?[?^
117
--* BackupToTempTable
101 118
drop table if exists billingdata cascade;
102 119

  
120
--* RestoreFromTempTable
103 121
create table billingdata (
104 122
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
105 123
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
111 129
) comment '???????f?[?^' ;
112 130

  
113 131
-- ??????????f?[?^
132
--* BackupToTempTable
114 133
drop table if exists billingdatadetail cascade;
115 134

  
135
--* RestoreFromTempTable
116 136
create table billingdatadetail (
117 137
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
118 138
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
133 153
) comment '??????????f?[?^' ;
134 154

  
135 155
-- ???????x???T?}???[?f?[?^
156
--* BackupToTempTable
136 157
drop table if exists billingpaymentsummary cascade;
137 158

  
159
--* RestoreFromTempTable
138 160
create table billingpaymentsummary (
139 161
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
140 162
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
155 177
) comment '???????x???T?}???[?f?[?^' ;
156 178

  
157 179
-- ?^?c?????????
180
--* BackupToTempTable
158 181
drop table if exists bizperiodhistory cascade;
159 182

  
183
--* RestoreFromTempTable
160 184
create table bizperiodhistory (
161 185
  PeriodYear smallint(6) not null comment '?c??????E?H???N?x'
162 186
  , PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O'
......
168 192
) comment '?^?c?????????' ;
169 193

  
170 194
-- ?H???????f?[?^?y???p?z
195
--* BackupToTempTable
171 196
drop table if exists bk_constructionledger cascade;
172 197

  
198
--* RestoreFromTempTable
173 199
create table bk_constructionledger (
174 200
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
175 201
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
......
195 221
) comment '?H???????f?[?^?y???p?z' ;
196 222

  
197 223
-- ?H??????????f?[?^?y???p?z
224
--* BackupToTempTable
198 225
drop table if exists bk_constructionledgerdetail cascade;
199 226

  
227
--* RestoreFromTempTable
200 228
create table bk_constructionledgerdetail (
201 229
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
202 230
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
228 256
) comment '?H??????????f?[?^?y???p?z' ;
229 257

  
230 258
-- ?H?????????s?f?[?^?y???p?z
259
--* BackupToTempTable
231 260
drop table if exists bk_constructionledgerexcute cascade;
232 261

  
262
--* RestoreFromTempTable
233 263
create table bk_constructionledgerexcute (
234 264
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
235 265
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
243 273
) comment '?H?????????s?f?[?^?y???p?z' ;
244 274

  
245 275
-- ??Z????f?[?^?y???p?z
276
--* BackupToTempTable
246 277
drop table if exists bk_estimatedata cascade;
247 278

  
279
--* RestoreFromTempTable
248 280
create table bk_estimatedata (
249 281
  SaveDate datetime not null comment '?????t'
250 282
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
263 295
) comment '??Z????f?[?^?y???p?z' ;
264 296

  
265 297
-- ??Z????y?[?W?f?[?^?y???p?z
298
--* BackupToTempTable
266 299
drop table if exists bk_estimatedatabody cascade;
267 300

  
301
--* RestoreFromTempTable
268 302
create table bk_estimatedatabody (
269 303
  SaveDate datetime not null comment '?????t'
270 304
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
282 316
) comment '??Z????y?[?W?f?[?^?y???p?z' ;
283 317

  
284 318
-- ??Z????f?[?^????y???p?z
319
--* BackupToTempTable
285 320
drop table if exists bk_estimatedatadetail cascade;
286 321

  
322
--* RestoreFromTempTable
287 323
create table bk_estimatedatadetail (
288 324
  SaveDate datetime not null comment '?????t'
289 325
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
309 345
) comment '??Z????f?[?^????y???p?z' ;
310 346

  
311 347
-- ?\?Z???W?v?R?[?h?}?X?^
348
--* BackupToTempTable
312 349
drop table if exists budgetsumcode cascade;
313 350

  
351
--* RestoreFromTempTable
314 352
create table budgetsumcode (
315 353
  BlockCode decimal(2,0) unsigned not null comment '?u???b?N???'
316 354
  , GroupCode decimal(2,0) unsigned not null comment '?O???[?v???'
......
323 361
) comment '?\?Z???W?v?R?[?h?}?X?^' ;
324 362

  
325 363
-- ?@?l?i?}?X?^
364
--* BackupToTempTable
326 365
drop table if exists businesstypemaster cascade;
327 366

  
367
--* RestoreFromTempTable
328 368
create table businesstypemaster (
329 369
  BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h'
330 370
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
338 378
  on businesstypemaster(DisplayOrder);
339 379

  
340 380
-- ?S????????????f?[?^
381
--* BackupToTempTable
341 382
drop table if exists chgchargedep cascade;
342 383

  
384
--* RestoreFromTempTable
343 385
create table chgchargedep (
344 386
  PersonCode decimal(8,0) not null comment '?S????R?[?h'
345 387
  , StartDate date not null comment '?J?n?N????'
......
352 394
) comment '?S????????????f?[?^' ;
353 395

  
354 396
-- ?H???S????X?????f?[?^
397
--* BackupToTempTable
355 398
drop table if exists chgconstrcharge cascade;
356 399

  
400
--* RestoreFromTempTable
357 401
create table chgconstrcharge (
358 402
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
359 403
  , Division decimal(1,0) not null comment '????'
......
370 414
) comment '?H???S????X?????f?[?^' ;
371 415

  
372 416
-- ????????}?X?^
417
--* BackupToTempTable
373 418
drop table if exists commoncostlarge cascade;
374 419

  
420
--* RestoreFromTempTable
375 421
create table commoncostlarge (
376 422
  LargeCode decimal(5,0) unsigned not null comment '????L?['
377 423
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
384 430
) comment '????????}?X?^' ;
385 431

  
386 432
-- ?????H???A?}?X?^
433
--* BackupToTempTable
387 434
drop table if exists commoncostlinkms cascade;
388 435

  
436
--* RestoreFromTempTable
389 437
create table commoncostlinkms (
390 438
  LargeCode decimal(5,0) unsigned not null comment '????L?['
391 439
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
396 444
) comment '?????H???A?}?X?^' ;
397 445

  
398 446
-- ?????????}?X?^
447
--* BackupToTempTable
399 448
drop table if exists commoncostmiddle cascade;
400 449

  
450
--* RestoreFromTempTable
401 451
create table commoncostmiddle (
402 452
  LargeCode decimal(5,0) unsigned not null comment '????L?['
403 453
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
411 461
) comment '?????????}?X?^' ;
412 462

  
413 463
-- ?????????L?[?}?X?^
464
--* BackupToTempTable
414 465
drop table if exists commoncostmiddlesearchword cascade;
415 466

  
467
--* RestoreFromTempTable
416 468
create table commoncostmiddlesearchword (
417 469
  LargeCode decimal(5,0) unsigned not null comment '????L?['
418 470
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
424 476
) comment '?????????L?[?}?X?^' ;
425 477

  
426 478
-- ?\???H???A?}?X?^
479
--* BackupToTempTable
427 480
drop table if exists componentlinkmaster cascade;
428 481

  
482
--* RestoreFromTempTable
429 483
create table componentlinkmaster (
430 484
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
431 485
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
442 496
  on componentlinkmaster(ItemCode);
443 497

  
444 498
-- ?\???}?X?^
499
--* BackupToTempTable
445 500
drop table if exists componentmaster cascade;
446 501

  
502
--* RestoreFromTempTable
447 503
create table componentmaster (
448 504
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
449 505
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
461 517
  on componentmaster(DisplayOrder);
462 518

  
463 519
-- ?\???H??????A?}?X?^
520
--* BackupToTempTable
464 521
drop table if exists componenttotypemaster cascade;
465 522

  
523
--* RestoreFromTempTable
466 524
create table componenttotypemaster (
467 525
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
468 526
  , TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
......
479 537
  on componenttotypemaster(TypeCode);
480 538

  
481 539
-- ?H???????o??f?[?^
540
--* BackupToTempTable
482 541
drop table if exists constrledgerexpenses cascade;
483 542

  
543
--* RestoreFromTempTable
484 544
create table constrledgerexpenses (
485 545
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
486 546
  , SeqNo decimal(5,0) not null comment '?}??'
......
502 562
  on constrledgerexpenses(NameCode);
503 563

  
504 564
-- ?H????{???
565
--* BackupToTempTable
505 566
drop table if exists constructionbaseinfo cascade;
506 567

  
568
--* RestoreFromTempTable
507 569
create table constructionbaseinfo (
508 570
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
509 571
  , TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O'
......
585 647
  on constructionbaseinfo(ConstructionPeriod);
586 648

  
587 649
-- ?H????{????
650
--* BackupToTempTable
588 651
drop table if exists constructionbaseinfodetail cascade;
589 652

  
653
--* RestoreFromTempTable
590 654
create table constructionbaseinfodetail (
591 655
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
592 656
  , DetailNo decimal(3,0) not null comment '??????'
......
603 667
  on constructionbaseinfodetail(DetailNo);
604 668

  
605 669
-- ?H???{?H?\?Z?f?[?^
670
--* BackupToTempTable
606 671
drop table if exists constructionbudget cascade;
607 672

  
673
--* RestoreFromTempTable
608 674
create table constructionbudget (
609 675
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
610 676
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
......
634 700
) comment '?H???{?H?\?Z?f?[?^' ;
635 701

  
636 702
-- ?H???{?H?\?Z?f?[?^????
703
--* BackupToTempTable
637 704
drop table if exists constructionbudgetdetail cascade;
638 705

  
706
--* RestoreFromTempTable
639 707
create table constructionbudgetdetail (
640 708
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
641 709
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
659 727
) comment '?H???{?H?\?Z?f?[?^????' ;
660 728

  
661 729
-- ?H??}?X?^
730
--* BackupToTempTable
662 731
drop table if exists constructionitemmaster cascade;
663 732

  
733
--* RestoreFromTempTable
664 734
create table constructionitemmaster (
665 735
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
666 736
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
674 744
) comment '?H??}?X?^' ;
675 745

  
676 746
-- ?H???????f?[?^
747
--* BackupToTempTable
677 748
drop table if exists constructionledger cascade;
678 749

  
750
--* RestoreFromTempTable
679 751
create table constructionledger (
680 752
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
681 753
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
......
707 779
  on constructionledger(ConstructionEnd);
708 780

  
709 781
-- ?H??????????f?[?^
782
--* BackupToTempTable
710 783
drop table if exists constructionledgerdetail cascade;
711 784

  
785
--* RestoreFromTempTable
712 786
create table constructionledgerdetail (
713 787
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
714 788
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
762 836
  on constructionledgerdetail(CompanyCode);
763 837

  
764 838
-- ?H?????????s?f?[?^
839
--* BackupToTempTable
765 840
drop table if exists constructionledgerexcute cascade;
766 841

  
842
--* RestoreFromTempTable
767 843
create table constructionledgerexcute (
768 844
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
769 845
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
780 856
  on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
781 857

  
782 858
-- ?H???????N???
859
--* BackupToTempTable
783 860
drop table if exists constructionlink cascade;
784 861

  
862
--* RestoreFromTempTable
785 863
create table constructionlink (
786 864
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
787 865
  , FluctuationCode decimal(10,0) not null comment '?q?H?????'
......
801 879
  on constructionlink(LinkType);
802 880

  
803 881
-- ?H????????
882
--* BackupToTempTable
804 883
drop table if exists constructionmaterialinfo cascade;
805 884

  
885
--* RestoreFromTempTable
806 886
create table constructionmaterialinfo (
807 887
  CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????'
808 888
  , MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
......
817 897
) comment '?H????????' ;
818 898

  
819 899
-- ????i?????t?f?[?^
900
--* BackupToTempTable
820 901
drop table if exists constructionprogressdate cascade;
821 902

  
903
--* RestoreFromTempTable
822 904
create table constructionprogressdate (
823 905
  ConstructionCode decimal(10,0) not null comment '?H?????'
824 906
  , ConstructionStatusFlg decimal(2,0) not null comment '???H?????'
......
840 922
  on constructionprogressdate(ChangeDate);
841 923

  
842 924
-- ???}?X?^
925
--* BackupToTempTable
843 926
drop table if exists constructionspecmaster cascade;
844 927

  
928
--* RestoreFromTempTable
845 929
create table constructionspecmaster (
846 930
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
847 931
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
......
860 944
  on constructionspecmaster(DisplayOrder);
861 945

  
862 946
-- ???P???}?X?^
947
--* BackupToTempTable
863 948
drop table if exists constructionspecunitprice cascade;
864 949

  
950
--* RestoreFromTempTable
865 951
create table constructionspecunitprice (
866 952
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
867 953
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
874 960
) comment '???P???}?X?^' ;
875 961

  
876 962
-- ?H?????}?X?^
963
--* BackupToTempTable
877 964
drop table if exists constructiontypemaster cascade;
878 965

  
966
--* RestoreFromTempTable
879 967
create table constructiontypemaster (
880 968
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
881 969
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
891 979
) comment '?H?????}?X?^' ;
892 980

  
893 981
-- ?????o?[?f?[?^
982
--* BackupToTempTable
894 983
drop table if exists costdataofdepartment cascade;
895 984

  
985
--* RestoreFromTempTable
896 986
create table costdataofdepartment (
897 987
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
898 988
  , ConstrYear smallint(5) unsigned not null comment '?H???????E?N??'
......
912 1002
) comment '?????o?[?f?[?^' ;
913 1003

  
914 1004
-- ?S??????o??f?[?^
1005
--* BackupToTempTable
915 1006
drop table if exists costdataofperson cascade;
916 1007

  
1008
--* RestoreFromTempTable
917 1009
create table costdataofperson (
918 1010
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
919 1011
  , ActionDate date not null comment '?????t'
......
942 1034
  on costdataofperson(ConstructionCode);
943 1035

  
944 1036
-- ??????o?^?\???f?[?^
1037
--* BackupToTempTable
945 1038
drop table if exists costomerregist cascade;
946 1039

  
1040
--* RestoreFromTempTable
947 1041
create table costomerregist (
948 1042
  CreatePersonCode decimal(8,0) unsigned not null comment '?\??????'
949 1043
  , CreateDate date not null comment '????'
......
987 1081
  on costomerregist(CreateDepartmentCode);
988 1082

  
989 1083
-- ????f?[?^
1084
--* BackupToTempTable
990 1085
drop table if exists dailydataconstruction cascade;
991 1086

  
1087
--* RestoreFromTempTable
992 1088
create table dailydataconstruction (
993 1089
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
994 1090
  , DailyDataDate date not null comment '???????'
......
1009 1105
  on dailydataconstruction(ConstructionCode);
1010 1106

  
1011 1107
-- ????f?[?^ (????)
1108
--* BackupToTempTable
1012 1109
drop table if exists dailydatadetail cascade;
1013 1110

  
1111
--* RestoreFromTempTable
1014 1112
create table dailydatadetail (
1015 1113
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1016 1114
  , DailyDataDate date not null comment '???????'
......
1032 1130
  on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
1033 1131

  
1034 1132
-- ????f?[?^ (??????)
1133
--* BackupToTempTable
1035 1134
drop table if exists dailydatafield cascade;
1036 1135

  
1136
--* RestoreFromTempTable
1037 1137
create table dailydatafield (
1038 1138
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1039 1139
  , DailyDataDate date not null comment '???????'
......
1050 1150
  on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
1051 1151

  
1052 1152
-- ????f?[?^ (????)
1153
--* BackupToTempTable
1053 1154
drop table if exists dailydatamaterials cascade;
1054 1155

  
1156
--* RestoreFromTempTable
1055 1157
create table dailydatamaterials (
1056 1158
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1057 1159
  , DailyDataDate date not null comment '???????'
......
1071 1173
  on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
1072 1174

  
1073 1175
-- ????f?[?^ (??????w??)
1176
--* BackupToTempTable
1074 1177
drop table if exists dailydatasubcontractors cascade;
1075 1178

  
1179
--* RestoreFromTempTable
1076 1180
create table dailydatasubcontractors (
1077 1181
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1078 1182
  , DailyDataDate date not null comment '???????'
......
1089 1193
  on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
1090 1194

  
1091 1195
-- ????f?[?^ (???)
1196
--* BackupToTempTable
1092 1197
drop table if exists dailydatavehicles cascade;
1093 1198

  
1199
--* RestoreFromTempTable
1094 1200
create table dailydatavehicles (
1095 1201
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1096 1202
  , DailyDataDate date not null comment '???????'
......
1111 1217
  on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
1112 1218

  
1113 1219
-- ???}?X?^
1220
--* BackupToTempTable
1114 1221
drop table if exists daymaster cascade;
1115 1222

  
1223
--* RestoreFromTempTable
1116 1224
create table daymaster (
1117 1225
  days smallint(6) not null comment '??'
1118 1226
  , constraint daymaster_PKC primary key (days)
1119 1227
) comment '???}?X?^' ;
1120 1228

  
1121 1229
-- ?????}?X?^
1230
--* BackupToTempTable
1122 1231
drop table if exists deadlinemaster cascade;
1123 1232

  
1233
--* RestoreFromTempTable
1124 1234
create table deadlinemaster (
1125 1235
  LABOURKIND decimal(1,0) default '0' not null comment '??????'
1126 1236
  , DEADLINE decimal(2,0) comment '????'
......
1133 1243
) comment '?????}?X?^' ;
1134 1244

  
1135 1245
-- ?????o???}?X?^
1246
--* BackupToTempTable
1136 1247
drop table if exists departmentexpensesmaster cascade;
1137 1248

  
1249
--* RestoreFromTempTable
1138 1250
create table departmentexpensesmaster (
1139 1251
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1140 1252
  , ExpensesPeriod smallint(6) not null comment '?????'
......
1149 1261
) comment '?????o???}?X?^' ;
1150 1262

  
1151 1263
-- ?????}?X?^
1264
--* BackupToTempTable
1152 1265
drop table if exists departmentmaster cascade;
1153 1266

  
1267
--* RestoreFromTempTable
1154 1268
create table departmentmaster (
1155 1269
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1156 1270
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
1169 1283
  on departmentmaster(DisplayOrder);
1170 1284

  
1171 1285
-- ?????m?F???F?f?[?^
1286
--* BackupToTempTable
1172 1287
drop table if exists depositapprovalinfo cascade;
1173 1288

  
1289
--* RestoreFromTempTable
1174 1290
create table depositapprovalinfo (
1175 1291
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1176 1292
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1188 1304
) comment '?????m?F???F?f?[?^' ;
1189 1305

  
1190 1306
-- ?????f?[?^
1307
--* BackupToTempTable
1191 1308
drop table if exists depositdata cascade;
1192 1309

  
1310
--* RestoreFromTempTable
1193 1311
create table depositdata (
1194 1312
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1195 1313
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1208 1326
) comment '?????f?[?^' ;
1209 1327

  
1210 1328
-- ????????f?[?^
1329
--* BackupToTempTable
1211 1330
drop table if exists depositdatadetail cascade;
1212 1331

  
1332
--* RestoreFromTempTable
1213 1333
create table depositdatadetail (
1214 1334
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1215 1335
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1232 1352
) comment '????????f?[?^' ;
1233 1353

  
1234 1354
-- ???}?X?^
1355
--* BackupToTempTable
1235 1356
drop table if exists divisionmaster cascade;
1236 1357

  
1358
--* RestoreFromTempTable
1237 1359
create table divisionmaster (
1238 1360
  DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
1239 1361
  , NameCode decimal(5,0) unsigned not null comment '????R?[?h'
......
1246 1368
) comment '???}?X?^' ;
1247 1369

  
1248 1370
-- ??Z?\?Z???f?[?^
1371
--* BackupToTempTable
1249 1372
drop table if exists estimatebudget cascade;
1250 1373

  
1374
--* RestoreFromTempTable
1251 1375
create table estimatebudget (
1252 1376
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1253 1377
  , ConstructionTime decimal(5,2) unsigned not null comment '?H??'
......
1264 1388
) comment '??Z?\?Z???f?[?^' ;
1265 1389

  
1266 1390
-- ??Z?\?Z????f?[?^????
1391
--* BackupToTempTable
1267 1392
drop table if exists estimatebudgetdetail cascade;
1268 1393

  
1394
--* RestoreFromTempTable
1269 1395
create table estimatebudgetdetail (
1270 1396
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1271 1397
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
1285 1411
) comment '??Z?\?Z????f?[?^????' ;
1286 1412

  
1287 1413
-- ??Z????f?[?^
1414
--* BackupToTempTable
1288 1415
drop table if exists estimatedata cascade;
1289 1416

  
1417
--* RestoreFromTempTable
1290 1418
create table estimatedata (
1291 1419
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1292 1420
  , LineCount decimal(3,0) unsigned not null comment '?s???'
......
1307 1435
  on estimatedata(ConstructionCode,FixedItemCode);
1308 1436

  
1309 1437
-- ??Z????y?[?W?f?[?^
1438
--* BackupToTempTable
1310 1439
drop table if exists estimatedatabody cascade;
1311 1440

  
1441
--* RestoreFromTempTable
1312 1442
create table estimatedatabody (
1313 1443
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1314 1444
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
......
1328 1458
  on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
1329 1459

  
1330 1460
-- ??Z????f?[?^????
1461
--* BackupToTempTable
1331 1462
drop table if exists estimatedatadetail cascade;
1332 1463

  
1464
--* RestoreFromTempTable
1333 1465
create table estimatedatadetail (
1334 1466
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1335 1467
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
......
1357 1489
  on estimatedatadetail(ConstructionCode,PageCount);
1358 1490

  
1359 1491
-- ?o???}?X?^
1492
--* BackupToTempTable
1360 1493
drop table if exists expensesmaster cascade;
1361 1494

  
1495
--* RestoreFromTempTable
1362 1496
create table expensesmaster (
1363 1497
  DivisionCode smallint(6) not null comment '?H?????R?[?h'
1364 1498
  , NameCode smallint(6) not null comment '?o????R?[?h'
......
1371 1505
) comment '?o???}?X?^' ;
1372 1506

  
1373 1507
-- ???x???}?X?^
1508
--* BackupToTempTable
1374 1509
drop table if exists holidaycalendermaster cascade;
1375 1510

  
1511
--* RestoreFromTempTable
1376 1512
create table holidaycalendermaster (
1377 1513
  Holiday date not null comment '?x??'
1378 1514
  , BusinessYear smallint(5) unsigned not null comment '?c??N?x'
......
1391 1527
  on holidaycalendermaster(TargetDay);
1392 1528

  
1393 1529
-- ?????????????
1530
--* BackupToTempTable
1394 1531
drop table if exists inputsearchlogdata cascade;
1395 1532

  
1533
--* RestoreFromTempTable
1396 1534
create table inputsearchlogdata (
1397 1535
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1398 1536
  , UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
......
1406 1544
  on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
1407 1545

  
1408 1546
-- ???????f?[?^
1547
--* BackupToTempTable
1409 1548
drop table if exists invoicedata cascade;
1410 1549

  
1550
--* RestoreFromTempTable
1411 1551
create table invoicedata (
1412 1552
  INVOICENO decimal(9,0) not null comment '??????No'
1413 1553
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
......
1433 1573
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
1434 1574

  
1435 1575
-- ??????
1576
--* BackupToTempTable
1436 1577
drop table if exists materialinfo cascade;
1437 1578

  
1579
--* RestoreFromTempTable
1438 1580
create table materialinfo (
1439 1581
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1440 1582
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
......
1446 1588
) comment '??????' ;
1447 1589

  
1448 1590
-- ????i??}?X?^
1591
--* BackupToTempTable
1449 1592
drop table if exists materialitemmaster cascade;
1450 1593

  
1594
--* RestoreFromTempTable
1451 1595
create table materialitemmaster (
1452 1596
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1453 1597
  , MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
......
1461 1605
) comment '????i??}?X?^' ;
1462 1606

  
1463 1607
-- ??????}?X?^
1608
--* BackupToTempTable
1464 1609
drop table if exists materialkindmaster cascade;
1465 1610

  
1611
--* RestoreFromTempTable
1466 1612
create table materialkindmaster (
1467 1613
  MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
1468 1614
  , MATERIALKINDNAME varchar(40) comment '?????????'
......
1474 1620
) comment '??????}?X?^' ;
1475 1621

  
1476 1622
-- ??????????
1623
--* BackupToTempTable
1477 1624
drop table if exists materialrecordinfo cascade;
1478 1625

  
1626
--* RestoreFromTempTable
1479 1627
create table materialrecordinfo (
1480 1628
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1481 1629
  , PROCESSDATE date default '0000-00-00' not null comment '?????N????'
......
1492 1640
) comment '??????????' ;
1493 1641

  
1494 1642
-- ?f??????b?Z?[?W
1643
--* BackupToTempTable
1495 1644
drop table if exists messageboarddata cascade;
1496 1645

  
1646
--* RestoreFromTempTable
1497 1647
create table messageboarddata (
1498 1648
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1499 1649
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1522 1672
  on messageboarddata(MessageFlag);
1523 1673

  
1524 1674
-- ?f???????e?[?u??
1675
--* BackupToTempTable
1525 1676
drop table if exists messageboardterget cascade;
1526 1677

  
1678
--* RestoreFromTempTable
1527 1679
create table messageboardterget (
1528 1680
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1529 1681
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1539 1691
  on messageboardterget(RecordNumber,BranchNumber);
1540 1692

  
1541 1693
-- ?f??????b?Z?[?W?{??????
1694
--* BackupToTempTable
1542 1695
drop table if exists messagebrowsinghistory cascade;
1543 1696

  
1697
--* RestoreFromTempTable
1544 1698
create table messagebrowsinghistory (
1545 1699
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1546 1700
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1553 1707
) comment '?f??????b?Z?[?W?{??????' ;
1554 1708

  
1555 1709
-- ???}?X?^
1710
--* BackupToTempTable
1556 1711
drop table if exists monthmaster cascade;
1557 1712

  
1713
--* RestoreFromTempTable
1558 1714
create table monthmaster (
1559 1715
  month smallint(6) not null comment '??'
1560 1716
  , constraint monthmaster_PKC primary key (month)
1561 1717
) comment '???}?X?^' ;
1562 1718

  
1563 1719
-- ??????}?X?^
1720
--* BackupToTempTable
1564 1721
drop table if exists orderersmaster cascade;
1565 1722

  
1723
--* RestoreFromTempTable
1566 1724
create table orderersmaster (
1567 1725
  OrderCotegory decimal(5,0) unsigned not null comment '???????'
1568 1726
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
......
1589 1747
) comment '??????}?X?^' ;
1590 1748

  
1591 1749
-- ????z?f?[?^
1750
--* BackupToTempTable
1592 1751
drop table if exists orderspricedata cascade;
1593 1752

  
1753
--* RestoreFromTempTable
1594 1754
create table orderspricedata (
1595 1755
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1596 1756
  , ChangeNo decimal(3,0) unsigned not null comment '??X???'
......
1608 1768
) comment '????z?f?[?^' ;
1609 1769

  
1610 1770
-- ?x?????F???f?[?^
1771
--* BackupToTempTable
1611 1772
drop table if exists paymentapprovalinfo cascade;
1612 1773

  
1774
--* RestoreFromTempTable
1613 1775
create table paymentapprovalinfo (
1614 1776
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1615 1777
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
1626 1788
) comment '?x?????F???f?[?^' ;
1627 1789

  
1628 1790
-- ?x??????f?[?^
1791
--* BackupToTempTable
1629 1792
drop table if exists paymentdatadetail cascade;
1630 1793

  
1794
--* RestoreFromTempTable
1631 1795
create table paymentdatadetail (
1632 1796
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1633 1797
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
1657 1821
  on paymentdatadetail(APPROVALPERSONCODE);
1658 1822

  
1659 1823
-- ?H??????????f?[?^
1824
--* BackupToTempTable
1660 1825
drop table if exists periodavoidance cascade;
1661 1826

  
1827
--* RestoreFromTempTable
1662 1828
create table periodavoidance (
1663 1829
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1664 1830
  , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
......
1678 1844
  on periodavoidance(FieldNo);
1679 1845

  
1680 1846
-- ?S??????F?f?[?^
1847
--* BackupToTempTable
1681 1848
drop table if exists personapproval cascade;
1682 1849

  
1850
--* RestoreFromTempTable
1683 1851
create table personapproval (
1684 1852
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1685 1853
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
1697 1865
) comment '?S??????F?f?[?^' ;
1698 1866

  
1699 1867
-- ?S??????F?R?????g?f?[?^
1868
--* BackupToTempTable
1700 1869
drop table if exists personapprovalcomment cascade;
1701 1870

  
1871
--* RestoreFromTempTable
1702 1872
create table personapprovalcomment (
1703 1873
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1704 1874
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
1713 1883
) comment '?S??????F?R?????g?f?[?^' ;
1714 1884

  
1715 1885
-- ?S??????????}?X?^
1886
--* BackupToTempTable
1716 1887
drop table if exists persondepartmentmaster cascade;
1717 1888

  
1889
--* RestoreFromTempTable
1718 1890
create table persondepartmentmaster (
1719 1891
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1720 1892
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
......
1731 1903
  on persondepartmentmaster(DepartmentCode);
1732 1904

  
1733 1905
-- ?S????}?X?^
1906
--* BackupToTempTable
1734 1907
drop table if exists personinchargemaster cascade;
1735 1908

  
1909
--* RestoreFromTempTable
1736 1910
create table personinchargemaster (
1737 1911
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1738 1912
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
......
1766 1940
  on personinchargemaster(DepartmentCode);
1767 1941

  
1768 1942
-- ?S??????^?}?X?^
1943
--* BackupToTempTable
1769 1944
drop table if exists personsalarymaster cascade;
1770 1945

  
1946
--* RestoreFromTempTable
1771 1947
create table personsalarymaster (
1772 1948
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1773 1949
  , StartDate date not null comment '?g?p?J?n?N????'
......
1788 1964
  on personsalarymaster(MonthlySalary);
1789 1965

  
1790 1966
-- ?w???????f?[?^
1967
--* BackupToTempTable
1791 1968
drop table if exists pointingoutcomment cascade;
1792 1969

  
1970
--* RestoreFromTempTable
1793 1971
create table pointingoutcomment (
1794 1972
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1795 1973
  , ProcessNo smallint(6) not null comment '????????i??????j'
......
1810 1988
) comment '?w???????f?[?^' ;
1811 1989

  
1812 1990
-- ?????????????c???^?f?[?^
1991
--* BackupToTempTable
1813 1992
drop table if exists proceedingsdata cascade;
1814 1993

  
1994
--* RestoreFromTempTable
1815 1995
create table proceedingsdata (
1816 1996
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1817 1997
  , ProceedingsDataDate date not null comment '?c???^????'
......
1826 2006
) comment '?????????????c???^?f?[?^' ;
1827 2007

  
1828 2008
-- ?????????????c???^?f?[?^?i?o???j
2009
--* BackupToTempTable
1829 2010
drop table if exists proceedingsdataattend cascade;
1830 2011

  
2012
--* RestoreFromTempTable
1831 2013
create table proceedingsdataattend (
1832 2014
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1833 2015
  , ProceedingsDataDate date not null comment '?c???^????'
......
1841 2023
) comment '?????????????c???^?f?[?^?i?o???j' ;
1842 2024

  
1843 2025
-- ?????????????c???^?f?[?^?i????j
2026
--* BackupToTempTable
1844 2027
drop table if exists proceedingsdatadetail cascade;
1845 2028

  
2029
--* RestoreFromTempTable
1846 2030
create table proceedingsdatadetail (
1847 2031
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1848 2032
  , ProceedingsDataDate date not null comment '?c???^????'
......
1857 2041
) comment '?????????????c???^?f?[?^?i????j' ;
1858 2042

  
1859 2043
-- ???F?f?[?^
2044
--* BackupToTempTable
1860 2045
drop table if exists processapproval cascade;
1861 2046

  
2047
--* RestoreFromTempTable
1862 2048
create table processapproval (
1863 2049
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1864 2050
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
1875 2061
) comment '???F?f?[?^' ;
1876 2062

  
1877 2063
-- ???F?R?????g?f?[?^
2064
--* BackupToTempTable
1878 2065
drop table if exists processapprovalcomment cascade;
1879 2066

  
2067
--* RestoreFromTempTable
1880 2068
create table processapprovalcomment (
1881 2069
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1882 2070
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
1890 2078
) comment '???F?R?????g?f?[?^' ;
1891 2079

  
1892 2080
-- ???F????f?[?^
2081
--* BackupToTempTable
1893 2082
drop table if exists processapprovaldetail cascade;
1894 2083

  
2084
--* RestoreFromTempTable
1895 2085
create table processapprovaldetail (
1896 2086
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1897 2087
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
1904 2094
) comment '???F????f?[?^' ;
1905 2095

  
1906 2096
-- ?N?????}?X?^
2097
--* BackupToTempTable
1907 2098
drop table if exists processexcutemaster cascade;
1908 2099

  
2100
--* RestoreFromTempTable
1909 2101
create table processexcutemaster (
1910 2102
  SecCode decimal(2,0) unsigned not null comment '???????'
1911 2103
  , ExecCode decimal(4,0) unsigned not null comment '?N?????????'
......
1922 2114
  on processexcutemaster(ExecCode);
1923 2115

  
1924 2116
-- ???????f?[?^
2117
--* BackupToTempTable
1925 2118
drop table if exists purchaseorder cascade;
1926 2119

  
2120
--* RestoreFromTempTable
1927 2121
create table purchaseorder (
1928 2122
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1929 2123
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
1958 2152
) comment '???????f?[?^' ;
1959 2153

  
1960 2154
-- ?????????t?f?[?^
2155
--* BackupToTempTable
1961 2156
drop table if exists purchaseorderdate cascade;
1962 2157

  
2158
--* RestoreFromTempTable
1963 2159
create table purchaseorderdate (
1964 2160
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1965 2161
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
1973 2169
) comment '?????????t?f?[?^' ;
1974 2170

  
1975 2171
-- ??????????f?[?^
2172
--* BackupToTempTable
1976 2173
drop table if exists purchaseorderdetail cascade;
1977 2174

  
2175
--* RestoreFromTempTable
1978 2176
create table purchaseorderdetail (
1979 2177
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1980 2178
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
2001 2199
  on purchaseorderdetail(SourceCode);
2002 2200

  
2003 2201
-- ???R?[?h??????
2202
--* BackupToTempTable
2004 2203
drop table if exists recordkey cascade;
2005 2204

  
2205
--* RestoreFromTempTable
2006 2206
create table recordkey (
2007 2207
  KeyNo decimal(2,0) unsigned not null comment '?L?[?R?[?h'
2008 2208
  , RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
......
2011 2211
  , constraint recordkey_PKC primary key (KeyNo,RecordNumber)
2012 2212
) comment '???R?[?h??????' ;
2013 2213

  
2214
-- ?????????f?[?^
2215
--* BackupToTempTable
2216
drop table if exists reminvoicedata cascade;
2217

  
2218
--* RestoreFromTempTable
2219
create table reminvoicedata (
2220
  InvoiceNo decimal(9,0) not null comment '??????No'
2221
  , RemPerson decimal(8,0) not null comment '???S????R?[?h'
2222
  , RemDate date not null comment '?????t'
2223
  , RemComment varchar(300) comment '?????R'
2224
  , EntryDate datetime not null comment '?o?^?N????'
2225
  , UpdateDate datetime not null comment '?X?V?N????'
2226
  , constraint reminvoicedata_PKC primary key (InvoiceNo)
2227
) comment '?????????f?[?^' ;
2228

  
2229
-- ????????????f?[?^
2230
--* BackupToTempTable
2231
drop table if exists reminvoicedatadetail cascade;
2232

  
2233
--* RestoreFromTempTable
2234
create table reminvoicedatadetail (
2235
  InvoiceNo decimal(9,0) not null comment '??????No'
2236
  , SeqNo smallint(5) unsigned not null comment '?A??'
2237
  , RequestNo decimal(9,0) not null comment '????No'
2238
  , EntryDate datetime not null comment '?o?^?N????'
2239
  , UpdateDate datetime not null comment '?X?V?N????'
2240
  , constraint reminvoicedatadetail_PKC primary key (InvoiceNo,SeqNo)
2241
) comment '????????????f?[?^' ;
2242

  
2014 2243
-- ?????f?[?^
2244
--* BackupToTempTable
2015 2245
drop table if exists requestdata cascade;
2016 2246

  
2247
--* RestoreFromTempTable
2017 2248
create table requestdata (
2018 2249
  REQUESTNO decimal(9,0) not null comment '????No'
2019 2250
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
......
2037 2268
) comment '?????f?[?^' ;
2038 2269

  
2039 2270
-- ?????f?[?^????
2271
--* BackupToTempTable
2040 2272
drop table if exists requestdatadetail cascade;
2041 2273

  
2274
--* RestoreFromTempTable
2042 2275
create table requestdatadetail (
2043 2276
  REQUESTNO decimal(9,0) not null comment '????No'
2044 2277
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
......
2052 2285
) comment '?????f?[?^????' ;
2053 2286

  
2054 2287
-- ?????w?b?_
2288
--* BackupToTempTable
2055 2289
drop table if exists requesthead cascade;
2056 2290

  
2291
--* RestoreFromTempTable
2057 2292
create table requesthead (
2058 2293
  REQUESTNO decimal(9,0) not null comment '????No'
2059 2294
  , REQCONSTRUCTIONCODE decimal(10,0) not null comment '?????H?????'
......
2078 2313
alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
2079 2314

  
2080 2315
-- ?????????t?f?[?^
2316
--* BackupToTempTable
2081 2317
drop table if exists requestorderdate cascade;
2082 2318

  
2319
--* RestoreFromTempTable
2083 2320
create table requestorderdate (
2084 2321
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2085 2322
  , InvoiceNo decimal(9,0) not null comment '??????No'
......
2090 2327
) comment '?????????t?f?[?^' ;
2091 2328

  
2092 2329
-- ????O???t?f?[?^
2330
--* BackupToTempTable
2093 2331
drop table if exists salesgraphdata cascade;
2094 2332

  
2333
--* RestoreFromTempTable
2095 2334
create table salesgraphdata (
2096 2335
  GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h'
2097 2336
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
......
2114 2353
  on salesgraphdata(ConstructionPeriod);
2115 2354

  
2116 2355
-- ?????}?X?^
2356
--* BackupToTempTable
2117 2357
drop table if exists securitymaster cascade;
2118 2358

  
2359
--* RestoreFromTempTable
2119 2360
create table securitymaster (
2120 2361
  SecCode decimal(2,0) unsigned not null comment '???????'
2121 2362
  , DisplayOrder decimal(2,0) not null comment '?\????'
......
2139 2380
  on securitymaster(SecRange);
2140 2381

  
2141 2382
-- ???S?p?g???[???f?[?^
2383
--* BackupToTempTable
2142 2384
drop table if exists sfpdata cascade;
2143 2385

  
2386
--* RestoreFromTempTable
2144 2387
create table sfpdata (
2145 2388
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2146 2389
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
......
2157 2400
  on sfpdata(RequestDate);
2158 2401

  
2159 2402
-- ???S?p?g???[??????f?[?^
2403
--* BackupToTempTable
2160 2404
drop table if exists sfpdatadetail cascade;
2161 2405

  
2406
--* RestoreFromTempTable
2162 2407
create table sfpdatadetail (
2163 2408
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2164 2409
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
......
2170 2415
) comment '???S?p?g???[??????f?[?^' ;
2171 2416

  
2172 2417
-- ??????{?H?H??o?^?\???f?[?^
2418
--* BackupToTempTable
2173 2419
drop table if exists subconstrjobitemregist cascade;
2174 2420

  
2421
--* RestoreFromTempTable
2175 2422
create table subconstrjobitemregist (
2176 2423
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2177 2424
  , CreateDate date not null comment '????'
......
2184 2431
) comment '??????{?H?H??o?^?\???f?[?^' ;
2185 2432

  
2186 2433
-- ??????E?????N?o?^?\???f?[?^
2434
--* BackupToTempTable
2187 2435
drop table if exists subconstrjoblinkregist cascade;
2188 2436

  
2437
--* RestoreFromTempTable
2189 2438
create table subconstrjoblinkregist (
2190 2439
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2191 2440
  , CreateDate date not null comment '????'
......
2198 2447
) comment '??????E?????N?o?^?\???f?[?^' ;
2199 2448

  
2200 2449
-- ??????o?^?\???f?[?^
2450
--* BackupToTempTable
2201 2451
drop table if exists subconstrregist cascade;
2202 2452

  
2453
--* RestoreFromTempTable
2203 2454
create table subconstrregist (
2204 2455
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2205 2456
  , CreateDate date not null comment '????'
......
2233 2484
) comment '??????o?^?\???f?[?^' ;
2234 2485

  
2235 2486
-- ??????H??}?X?^
2487
--* BackupToTempTable
2236 2488
drop table if exists subcontractoritemmaster cascade;
2237 2489

  
2490
--* RestoreFromTempTable
2238 2491
create table subcontractoritemmaster (
2239 2492
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2240 2493
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
2246 2499
) comment '??????H??}?X?^' ;
2247 2500

  
2248 2501
-- ??????E??}?X?^
2502
--* BackupToTempTable
2249 2503
drop table if exists subcontractorjobcategory cascade;
2250 2504

  
2505
--* RestoreFromTempTable
2251 2506
create table subcontractorjobcategory (
2252 2507
  JobCategoryCode decimal(5,0) not null comment '?E??L?['
2253 2508
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
2259 2514
) comment '??????E??}?X?^' ;
2260 2515

  
2261 2516
-- ??????{?H?H??f?[?^
2517
--* BackupToTempTable
2262 2518
drop table if exists subcontractorjobitem cascade;
2263 2519

  
2520
--* RestoreFromTempTable
2264 2521
create table subcontractorjobitem (
2265 2522
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2266 2523
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
2277 2534
  on subcontractorjobitem(ItemCode);
2278 2535

  
2279 2536
-- ??????E?????N?}?X?^
2537
--* BackupToTempTable
2280 2538
drop table if exists subcontractorjoblink cascade;
2281 2539

  
2540
--* RestoreFromTempTable
2282 2541
create table subcontractorjoblink (
2283 2542
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2284 2543
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
......
2295 2554
  on subcontractorjoblink(JobCategoryCode);
2296 2555

  
2297 2556
-- ??????}?X?^
2557
--* BackupToTempTable
2298 2558
drop table if exists subcontractormaster cascade;
2299 2559

  
2560
--* RestoreFromTempTable
2300 2561
create table subcontractormaster (
2301 2562
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2302 2563
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
......
2328 2589
  on subcontractormaster(JapaneseSyllabary);
2329 2590

  
2330 2591
-- ?d????}?X?^
2592
--* BackupToTempTable
2331 2593
drop table if exists suppliersmaster cascade;
2332 2594

  
2595
--* RestoreFromTempTable
2333 2596
create table suppliersmaster (
2334 2597
  SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h'
2335 2598
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
2349 2612
) comment '?d????}?X?^' ;
2350 2613

  
2351 2614
-- ?V?X?e???N???m?F?f?[?^
2615
--* BackupToTempTable
2352 2616
drop table if exists systemexecute cascade;
2353 2617

  
2618
--* RestoreFromTempTable
2354 2619
create table systemexecute (
2355 2620
  PrimaryCode tinyint(4) not null comment '?L?[????'
2356 2621
  , TargetDate date not null comment '?N?????t'
......
2362 2627
) comment '?V?X?e???N???m?F?f?[?^' ;
2363 2628

  
2364 2629
-- ????}?X?^
2630
--* BackupToTempTable
2365 2631
drop table if exists systemmaster cascade;
2366 2632

  
2633
--* RestoreFromTempTable
2367 2634
create table systemmaster (
2368 2635
  SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
2369 2636
  , CompanyName1 varchar(60) not null comment '?????P'
......
2399 2666
) comment '????}?X?^' ;
2400 2667

  
2401 2668
-- ?????}?X?^
2669
--* BackupToTempTable
2402 2670
drop table if exists termmaster cascade;
2403 2671

  
2672
--* RestoreFromTempTable
2404 2673
create table termmaster (
2405 2674
  ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
2406 2675
  , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???'
......
2421 2690
  on termmaster(DisplayOrder);
2422 2691

  
2423 2692
-- ?o?????f?[?^
2693
--* BackupToTempTable
2424 2694
drop table if exists tranceportdailydata cascade;
2425 2695

  
2696
--* RestoreFromTempTable
2426 2697
create table tranceportdailydata (
2427 2698
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
2428 2699
  , AttendanceDate date not null comment '???????'
......
2443 2714
  on tranceportdailydata(AttendanceDate);
2444 2715

  
2445 2716
-- ?H?????o???}?X?^
2717
--* BackupToTempTable
2446 2718
drop table if exists typeexpensesmaster cascade;
2447 2719

  
2720
--* RestoreFromTempTable
2448 2721
create table typeexpensesmaster (
2449 2722
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
2450 2723
  , ExpensesPeriod smallint(6) not null comment '?????'
......
2457 2730
) comment '?H?????o???}?X?^' ;
2458 2731

  
2459 2732
-- ?P??}?X?^
2733
--* BackupToTempTable
2460 2734
drop table if exists unitmaster cascade;
2461 2735

  
2736
--* RestoreFromTempTable
2462 2737
create table unitmaster (
2463 2738
  UnitKey decimal(5,0) unsigned not null comment '?P??L?['
2464 2739
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
2472 2747
  on unitmaster(DisplayOrder);
2473 2748

  
2474 2749
-- ????}?X?^
2750
--* BackupToTempTable
2475 2751
drop table if exists vehiclemaster cascade;
2476 2752

  
2753
--* RestoreFromTempTable
2477 2754
create table vehiclemaster (
2478 2755
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2479 2756
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
2501 2778
) comment '????}?X?^' ;
2502 2779

  
2503 2780
-- ????L?^?f?[?^
2781
--* BackupToTempTable
2504 2782
drop table if exists vehiclerecorddata cascade;
2505 2783

  
2784
--* RestoreFromTempTable
2506 2785
create table vehiclerecorddata (
2507 2786
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2508 2787
  , DivisionCode decimal(2,0) unsigned not null comment '?f?[?^??'
......
2517 2796
) comment '????L?^?f?[?^' ;
2518 2797

  
2519 2798
-- ????\??f?[?^
2799
--* BackupToTempTable
2520 2800
drop table if exists vehiclescheduledata cascade;
2521 2801

  
2802
--* RestoreFromTempTable
2522 2803
create table vehiclescheduledata (
2523 2804
  TargetDate date not null comment '????'
2524 2805
  , VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
......
2542 2823
  on vehiclescheduledata(TargetDay);
2543 2824

  
2544 2825
-- ?N?}?X?^
2826
--* BackupToTempTable
2545 2827
drop table if exists yearmaster cascade;
2546 2828

  
2829
--* RestoreFromTempTable
2547 2830
create table yearmaster (
2548 2831
  years smallint(6) not null comment '?N'
2549 2832
  , constraint yearmaster_PKC primary key (years)

他の形式にエクスポート: Unified diff