プロジェクト

全般

プロフィール

リビジョン 324

堀内ほぼ7年前に追加

運用履歴情報追加
管理マスタ修正

差分を表示:

branches/ddl/ProcessManagement.sql
1 1
-- Project Name : noname
2
-- Date/Time    : 2018/02/27 8:14:07
2
-- Date/Time    : 2018/03/01 9:30:55
3 3
-- Author       : Horiuchi
4 4
-- RDBMS Type   : MySQL
5 5
-- Application  : A5:SQL Mk-2
6 6

  
7 7
-- ?S????s???\??f?[?^
8
drop table if exists actionscheduledata cascade;
8
drop table actionscheduledata cascade;
9 9

  
10 10
create table actionscheduledata (
11 11
  TargetDate date not null comment '????'
......
29 29
  on actionscheduledata(TargetDay);
30 30

  
31 31
-- ???F?o?H?}?X?^
32
drop table if exists approvalmaster cascade;
32
drop table approvalmaster cascade;
33 33

  
34 34
create table approvalmaster (
35 35
  ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
44 44
) comment '???F?o?H?}?X?^' ;
45 45

  
46 46
-- ?o?????f?[?^
47
drop table if exists attendancedailydata cascade;
47
drop table attendancedailydata cascade;
48 48

  
49 49
create table attendancedailydata (
50 50
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
69 69
  on attendancedailydata(AttendanceDate);
70 70

  
71 71
-- ?o?????f?[?^
72
drop table if exists attendancedata cascade;
72
drop table attendancedata cascade;
73 73

  
74 74
create table attendancedata (
75 75
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
85 85
) comment '?o?????f?[?^' ;
86 86

  
87 87
-- ??s?c????}?X?^
88
drop table if exists bankbusinessdaymaster cascade;
88
drop table bankbusinessdaymaster cascade;
89 89

  
90 90
create table bankbusinessdaymaster (
91 91
  YEARMONTH decimal(6,0) default '0' not null comment '?N??'
......
98 98
) comment '??s?c????}?X?^' ;
99 99

  
100 100
-- ???????f?[?^
101
drop table if exists billingdata cascade;
101
drop table billingdata cascade;
102 102

  
103 103
create table billingdata (
104 104
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
......
111 111
) comment '???????f?[?^' ;
112 112

  
113 113
-- ??????????f?[?^
114
drop table if exists billingdatadetail cascade;
114
drop table billingdatadetail cascade;
115 115

  
116 116
create table billingdatadetail (
117 117
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
......
133 133
) comment '??????????f?[?^' ;
134 134

  
135 135
-- ???????x???T?}???[?f?[?^
136
drop table if exists billingpaymentsummary cascade;
136
drop table billingpaymentsummary cascade;
137 137

  
138 138
create table billingpaymentsummary (
139 139
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
......
154 154
  , constraint billingpaymentsummary_PKC primary key (COMPANYCODE,TARGETDATE,CHARGEPAYMENTKIND)
155 155
) comment '???????x???T?}???[?f?[?^' ;
156 156

  
157
-- ?^?c?????????
158
drop table bizperiodhistory cascade;
159

  
160
create table bizperiodhistory (
161
  PeriodYear smallint(6) not null comment '?c??????E?H???N?x'
162
  , PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O'
163
  , BeginDate datetime not null comment '?????'
164
  , CompleteDate datetime not null comment '??????'
165
  , EntryDate datetime not null comment '?o?^???t'
166
  , UpdateDate datetime not null comment '?X?V???t'
167
  , constraint bizperiodhistory_PKC primary key (PeriodYear,PeriodFlag)
168
) comment '?^?c?????????' ;
169

  
157 170
-- ?H???????f?[?^?y???p?z
158
drop table if exists bk_constructionledger cascade;
171
drop table bk_constructionledger cascade;
159 172

  
160 173
create table bk_constructionledger (
161 174
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
182 195
) comment '?H???????f?[?^?y???p?z' ;
183 196

  
184 197
-- ?H??????????f?[?^?y???p?z
185
drop table if exists bk_constructionledgerdetail cascade;
198
drop table bk_constructionledgerdetail cascade;
186 199

  
187 200
create table bk_constructionledgerdetail (
188 201
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
215 228
) comment '?H??????????f?[?^?y???p?z' ;
216 229

  
217 230
-- ?H?????????s?f?[?^?y???p?z
218
drop table if exists bk_constructionledgerexcute cascade;
231
drop table bk_constructionledgerexcute cascade;
219 232

  
220 233
create table bk_constructionledgerexcute (
221 234
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
230 243
) comment '?H?????????s?f?[?^?y???p?z' ;
231 244

  
232 245
-- ??Z????f?[?^?y???p?z
233
drop table if exists bk_estimatedata cascade;
246
drop table bk_estimatedata cascade;
234 247

  
235 248
create table bk_estimatedata (
236 249
  SaveDate datetime not null comment '?????t'
......
250 263
) comment '??Z????f?[?^?y???p?z' ;
251 264

  
252 265
-- ??Z????y?[?W?f?[?^?y???p?z
253
drop table if exists bk_estimatedatabody cascade;
266
drop table bk_estimatedatabody cascade;
254 267

  
255 268
create table bk_estimatedatabody (
256 269
  SaveDate datetime not null comment '?????t'
......
269 282
) comment '??Z????y?[?W?f?[?^?y???p?z' ;
270 283

  
271 284
-- ??Z????f?[?^????y???p?z
272
drop table if exists bk_estimatedatadetail cascade;
285
drop table bk_estimatedatadetail cascade;
273 286

  
274 287
create table bk_estimatedatadetail (
275 288
  SaveDate datetime not null comment '?????t'
......
296 309
) comment '??Z????f?[?^????y???p?z' ;
297 310

  
298 311
-- ?@?l?i?}?X?^
299
drop table if exists businesstypemaster cascade;
312
drop table businesstypemaster cascade;
300 313

  
301 314
create table businesstypemaster (
302 315
  BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h'
......
311 324
  on businesstypemaster(DisplayOrder);
312 325

  
313 326
-- ????????}?X?^
314
drop table if exists commoncostlarge cascade;
327
drop table commoncostlarge cascade;
315 328

  
316 329
create table commoncostlarge (
317 330
  LargeCode decimal(5,0) unsigned not null comment '????L?['
......
325 338
) comment '????????}?X?^' ;
326 339

  
327 340
-- ?????H???A?}?X?^
328
drop table if exists commoncostlinkms cascade;
341
drop table commoncostlinkms cascade;
329 342

  
330 343
create table commoncostlinkms (
331 344
  LargeCode decimal(5,0) unsigned not null comment '????L?['
......
337 350
) comment '?????H???A?}?X?^' ;
338 351

  
339 352
-- ?????????}?X?^
340
drop table if exists commoncostmiddle cascade;
353
drop table commoncostmiddle cascade;
341 354

  
342 355
create table commoncostmiddle (
343 356
  LargeCode decimal(5,0) unsigned not null comment '????L?['
......
352 365
) comment '?????????}?X?^' ;
353 366

  
354 367
-- ?????????L?[?}?X?^
355
drop table if exists commoncostmiddlesearchword cascade;
368
drop table commoncostmiddlesearchword cascade;
356 369

  
357 370
create table commoncostmiddlesearchword (
358 371
  LargeCode decimal(5,0) unsigned not null comment '????L?['
......
365 378
) comment '?????????L?[?}?X?^' ;
366 379

  
367 380
-- ?\???H???A?}?X?^
368
drop table if exists componentlinkmaster cascade;
381
drop table componentlinkmaster cascade;
369 382

  
370 383
create table componentlinkmaster (
371 384
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
383 396
  on componentlinkmaster(ItemCode);
384 397

  
385 398
-- ?\???}?X?^
386
drop table if exists componentmaster cascade;
399
drop table componentmaster cascade;
387 400

  
388 401
create table componentmaster (
389 402
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
402 415
  on componentmaster(DisplayOrder);
403 416

  
404 417
-- ?\???H??????A?}?X?^
405
drop table if exists componenttotypemaster cascade;
418
drop table componenttotypemaster cascade;
406 419

  
407 420
create table componenttotypemaster (
408 421
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
420 433
  on componenttotypemaster(TypeCode);
421 434

  
422 435
-- ?H????{???
423
drop table if exists constructionbaseinfo cascade;
436
drop table constructionbaseinfo cascade;
424 437

  
425 438
create table constructionbaseinfo (
426 439
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
497 510
  on constructionbaseinfo(ConstructionPeriod);
498 511

  
499 512
-- ?H????{????
500
drop table if exists constructionbaseinfodetail cascade;
513
drop table constructionbaseinfodetail cascade;
501 514

  
502 515
create table constructionbaseinfodetail (
503 516
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
515 528
  on constructionbaseinfodetail(DetailNo);
516 529

  
517 530
-- ?H???{?H?\?Z?f?[?^
518
drop table if exists constructionbudget cascade;
531
drop table constructionbudget cascade;
519 532

  
520 533
create table constructionbudget (
521 534
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
546 559
) comment '?H???{?H?\?Z?f?[?^' ;
547 560

  
548 561
-- ?H???{?H?\?Z?f?[?^????
549
drop table if exists constructionbudgetdetail cascade;
562
drop table constructionbudgetdetail cascade;
550 563

  
551 564
create table constructionbudgetdetail (
552 565
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
571 584
) comment '?H???{?H?\?Z?f?[?^????' ;
572 585

  
573 586
-- ?H??}?X?^
574
drop table if exists constructionitemmaster cascade;
587
drop table constructionitemmaster cascade;
575 588

  
576 589
create table constructionitemmaster (
577 590
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
586 599
) comment '?H??}?X?^' ;
587 600

  
588 601
-- ?H???????f?[?^
589
drop table if exists constructionledger cascade;
602
drop table constructionledger cascade;
590 603

  
591 604
create table constructionledger (
592 605
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
613 626
) comment '?H???????f?[?^' ;
614 627

  
615 628
-- ?H??????????f?[?^
616
drop table if exists constructionledgerdetail cascade;
629
drop table constructionledgerdetail cascade;
617 630

  
618 631
create table constructionledgerdetail (
619 632
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
662 675
  on constructionledgerdetail(DetailCount);
663 676

  
664 677
-- ?H?????????s?f?[?^
665
drop table if exists constructionledgerexcute cascade;
678
drop table constructionledgerexcute cascade;
666 679

  
667 680
create table constructionledgerexcute (
668 681
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
680 693
  on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
681 694

  
682 695
-- ?H???????N???
683
drop table if exists constructionlink cascade;
696
drop table constructionlink cascade;
684 697

  
685 698
create table constructionlink (
686 699
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
701 714
  on constructionlink(LinkType);
702 715

  
703 716
-- ?H????????
704
drop table if exists constructionmaterialinfo cascade;
717
drop table constructionmaterialinfo cascade;
705 718

  
706 719
create table constructionmaterialinfo (
707 720
  CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????'
......
717 730
) comment '?H????????' ;
718 731

  
719 732
-- ????i?????t?f?[?^
720
drop table if exists constructionprogressdate cascade;
733
drop table constructionprogressdate cascade;
721 734

  
722 735
create table constructionprogressdate (
723 736
  ConstructionCode decimal(10,0) not null comment '?H?????'
......
731 744
) comment '????i?????t?f?[?^' ;
732 745

  
733 746
-- ???}?X?^
734
drop table if exists constructionspecmaster cascade;
747
drop table constructionspecmaster cascade;
735 748

  
736 749
create table constructionspecmaster (
737 750
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
751 764
  on constructionspecmaster(DisplayOrder);
752 765

  
753 766
-- ???P???}?X?^
754
drop table if exists constructionspecunitprice cascade;
767
drop table constructionspecunitprice cascade;
755 768

  
756 769
create table constructionspecunitprice (
757 770
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
765 778
) comment '???P???}?X?^' ;
766 779

  
767 780
-- ?H?????}?X?^
768
drop table if exists constructiontypemaster cascade;
781
drop table constructiontypemaster cascade;
769 782

  
770 783
create table constructiontypemaster (
771 784
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
......
781 794
) comment '?H?????}?X?^' ;
782 795

  
783 796
-- ?S??????o??f?[?^
784
drop table if exists costdataofperson cascade;
797
drop table costdataofperson cascade;
785 798

  
786 799
create table costdataofperson (
787 800
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
811 824
  on costdataofperson(ConstructionCode);
812 825

  
813 826
-- ??????o?^?\???f?[?^
814
drop table if exists costomerregist cascade;
827
drop table costomerregist cascade;
815 828

  
816 829
create table costomerregist (
817 830
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
......
848 861
  on costomerregist(PetitionPeriod);
849 862

  
850 863
-- ????f?[?^
851
drop table if exists dailydataconstruction cascade;
864
drop table dailydataconstruction cascade;
852 865

  
853 866
create table dailydataconstruction (
854 867
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
870 883
  on dailydataconstruction(ConstructionCode);
871 884

  
872 885
-- ????f?[?^ (????)
873
drop table if exists dailydatadetail cascade;
886
drop table dailydatadetail cascade;
874 887

  
875 888
create table dailydatadetail (
876 889
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
893 906
  on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
894 907

  
895 908
-- ????f?[?^ (??????)
896
drop table if exists dailydatafield cascade;
909
drop table dailydatafield cascade;
897 910

  
898 911
create table dailydatafield (
899 912
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
911 924
  on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
912 925

  
913 926
-- ????f?[?^ (????)
914
drop table if exists dailydatamaterials cascade;
927
drop table dailydatamaterials cascade;
915 928

  
916 929
create table dailydatamaterials (
917 930
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
932 945
  on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
933 946

  
934 947
-- ????f?[?^ (??????w??)
935
drop table if exists dailydatasubcontractors cascade;
948
drop table dailydatasubcontractors cascade;
936 949

  
937 950
create table dailydatasubcontractors (
938 951
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
950 963
  on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
951 964

  
952 965
-- ????f?[?^ (???)
953
drop table if exists dailydatavehicles cascade;
966
drop table dailydatavehicles cascade;
954 967

  
955 968
create table dailydatavehicles (
956 969
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
972 985
  on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
973 986

  
974 987
-- ???}?X?^
975
drop table if exists daymaster cascade;
988
drop table daymaster cascade;
976 989

  
977 990
create table daymaster (
978 991
  days smallint(6) not null comment '??'
......
982 995
  on daymaster(days);
983 996

  
984 997
-- ?????}?X?^
985
drop table if exists deadlinemaster cascade;
998
drop table deadlinemaster cascade;
986 999

  
987 1000
create table deadlinemaster (
988 1001
  LABOURKIND decimal(1,0) default '0' not null comment '??????'
......
996 1009
) comment '?????}?X?^' ;
997 1010

  
998 1011
-- ?????o???}?X?^
999
drop table if exists departmentexpensesmaster cascade;
1012
drop table departmentexpensesmaster cascade;
1000 1013

  
1001 1014
create table departmentexpensesmaster (
1002 1015
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
......
1011 1024
) comment '?????o???}?X?^' ;
1012 1025

  
1013 1026
-- ?????}?X?^
1014
drop table if exists departmentmaster cascade;
1027
drop table departmentmaster cascade;
1015 1028

  
1016 1029
create table departmentmaster (
1017 1030
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
......
1029 1042
  on departmentmaster(DisplayOrder);
1030 1043

  
1031 1044
-- ?????m?F???F?f?[?^
1032
drop table if exists depositapprovalinfo cascade;
1045
drop table depositapprovalinfo cascade;
1033 1046

  
1034 1047
create table depositapprovalinfo (
1035 1048
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
......
1048 1061
) comment '?????m?F???F?f?[?^' ;
1049 1062

  
1050 1063
-- ?????f?[?^
1051
drop table if exists depositdata cascade;
1064
drop table depositdata cascade;
1052 1065

  
1053 1066
create table depositdata (
1054 1067
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
......
1068 1081
) comment '?????f?[?^' ;
1069 1082

  
1070 1083
-- ????????f?[?^
1071
drop table if exists depositdatadetail cascade;
1084
drop table depositdatadetail cascade;
1072 1085

  
1073 1086
create table depositdatadetail (
1074 1087
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
......
1092 1105
) comment '????????f?[?^' ;
1093 1106

  
1094 1107
-- ???}?X?^
1095
drop table if exists divisionmaster cascade;
1108
drop table divisionmaster cascade;
1096 1109

  
1097 1110
create table divisionmaster (
1098 1111
  DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
......
1106 1119
) comment '???}?X?^' ;
1107 1120

  
1108 1121
-- ??Z?\?Z???f?[?^
1109
drop table if exists estimatebudget cascade;
1122
drop table estimatebudget cascade;
1110 1123

  
1111 1124
create table estimatebudget (
1112 1125
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1124 1137
) comment '??Z?\?Z???f?[?^' ;
1125 1138

  
1126 1139
-- ??Z?\?Z????f?[?^????
1127
drop table if exists estimatebudgetdetail cascade;
1140
drop table estimatebudgetdetail cascade;
1128 1141

  
1129 1142
create table estimatebudgetdetail (
1130 1143
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1145 1158
) comment '??Z?\?Z????f?[?^????' ;
1146 1159

  
1147 1160
-- ??Z????f?[?^
1148
drop table if exists estimatedata cascade;
1161
drop table estimatedata cascade;
1149 1162

  
1150 1163
create table estimatedata (
1151 1164
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1167 1180
  on estimatedata(ConstructionCode,FixedItemCode);
1168 1181

  
1169 1182
-- ??Z????y?[?W?f?[?^
1170
drop table if exists estimatedatabody cascade;
1183
drop table estimatedatabody cascade;
1171 1184

  
1172 1185
create table estimatedatabody (
1173 1186
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1188 1201
  on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
1189 1202

  
1190 1203
-- ??Z????f?[?^????
1191
drop table if exists estimatedatadetail cascade;
1204
drop table estimatedatadetail cascade;
1192 1205

  
1193 1206
create table estimatedatadetail (
1194 1207
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1217 1230
  on estimatedatadetail(ConstructionCode,PageCount);
1218 1231

  
1219 1232
-- ?o???}?X?^
1220
drop table if exists expensesmaster cascade;
1233
drop table expensesmaster cascade;
1221 1234

  
1222 1235
create table expensesmaster (
1223 1236
  DivisionCode smallint(6) not null comment '?H?????R?[?h'
......
1231 1244
) comment '?o???}?X?^' ;
1232 1245

  
1233 1246
-- ???x???}?X?^
1234
drop table if exists holidaycalendermaster cascade;
1247
drop table holidaycalendermaster cascade;
1235 1248

  
1236 1249
create table holidaycalendermaster (
1237 1250
  Holiday date not null comment '?x??'
......
1251 1264
  on holidaycalendermaster(TargetDay);
1252 1265

  
1253 1266
-- ?????????????
1254
drop table if exists inputsearchlogdata cascade;
1267
drop table inputsearchlogdata cascade;
1255 1268

  
1256 1269
create table inputsearchlogdata (
1257 1270
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
......
1266 1279
  on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
1267 1280

  
1268 1281
-- ???????f?[?^
1269
drop table if exists invoicedata cascade;
1282
drop table invoicedata cascade;
1270 1283

  
1271 1284
create table invoicedata (
1272 1285
  INVOICENO decimal(9,0) not null comment '??????No'
......
1293 1306
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
1294 1307

  
1295 1308
-- ??????
1296
drop table if exists materialinfo cascade;
1309
drop table materialinfo cascade;
1297 1310

  
1298 1311
create table materialinfo (
1299 1312
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
......
1306 1319
) comment '??????' ;
1307 1320

  
1308 1321
-- ????i??}?X?^
1309
drop table if exists materialitemmaster cascade;
1322
drop table materialitemmaster cascade;
1310 1323

  
1311 1324
create table materialitemmaster (
1312 1325
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
......
1321 1334
) comment '????i??}?X?^' ;
1322 1335

  
1323 1336
-- ??????}?X?^
1324
drop table if exists materialkindmaster cascade;
1337
drop table materialkindmaster cascade;
1325 1338

  
1326 1339
create table materialkindmaster (
1327 1340
  MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
......
1334 1347
) comment '??????}?X?^' ;
1335 1348

  
1336 1349
-- ??????????
1337
drop table if exists materialrecordinfo cascade;
1350
drop table materialrecordinfo cascade;
1338 1351

  
1339 1352
create table materialrecordinfo (
1340 1353
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
......
1352 1365
) comment '??????????' ;
1353 1366

  
1354 1367
-- ?f??????b?Z?[?W
1355
drop table if exists messageboarddata cascade;
1368
drop table messageboarddata cascade;
1356 1369

  
1357 1370
create table messageboarddata (
1358 1371
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
......
1382 1395
  on messageboarddata(MessageFlag);
1383 1396

  
1384 1397
-- ?f???????e?[?u??
1385
drop table if exists messageboardterget cascade;
1398
drop table messageboardterget cascade;
1386 1399

  
1387 1400
create table messageboardterget (
1388 1401
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
......
1399 1412
  on messageboardterget(RecordNumber,BranchNumber);
1400 1413

  
1401 1414
-- ?f??????b?Z?[?W?{??????
1402
drop table if exists messagebrowsinghistory cascade;
1415
drop table messagebrowsinghistory cascade;
1403 1416

  
1404 1417
create table messagebrowsinghistory (
1405 1418
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
......
1413 1426
) comment '?f??????b?Z?[?W?{??????' ;
1414 1427

  
1415 1428
-- ???}?X?^
1416
drop table if exists monthmaster cascade;
1429
drop table monthmaster cascade;
1417 1430

  
1418 1431
create table monthmaster (
1419 1432
  month smallint(6) not null comment '??'
......
1423 1436
  on monthmaster(month);
1424 1437

  
1425 1438
-- ??????}?X?^
1426
drop table if exists orderersmaster cascade;
1439
drop table orderersmaster cascade;
1427 1440

  
1428 1441
create table orderersmaster (
1429 1442
  OrderCotegory decimal(5,0) unsigned not null comment '???????'
......
1451 1464
) comment '??????}?X?^' ;
1452 1465

  
1453 1466
-- ????z?f?[?^
1454
drop table if exists orderspricedata cascade;
1467
drop table orderspricedata cascade;
1455 1468

  
1456 1469
create table orderspricedata (
1457 1470
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1470 1483
) comment '????z?f?[?^' ;
1471 1484

  
1472 1485
-- ?x?????F???f?[?^
1473
drop table if exists paymentapprovalinfo cascade;
1486
drop table paymentapprovalinfo cascade;
1474 1487

  
1475 1488
create table paymentapprovalinfo (
1476 1489
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
......
1488 1501
) comment '?x?????F???f?[?^' ;
1489 1502

  
1490 1503
-- ?x??????f?[?^
1491
drop table if exists paymentdatadetail cascade;
1504
drop table paymentdatadetail cascade;
1492 1505

  
1493 1506
create table paymentdatadetail (
1494 1507
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
......
1519 1532
  on paymentdatadetail(APPROVALPERSONCODE);
1520 1533

  
1521 1534
-- ?H??????????f?[?^
1522
drop table if exists periodavoidance cascade;
1535
drop table periodavoidance cascade;
1523 1536

  
1524 1537
create table periodavoidance (
1525 1538
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1540 1553
  on periodavoidance(FieldNo);
1541 1554

  
1542 1555
-- ?S??????F?f?[?^
1543
drop table if exists personapproval cascade;
1556
drop table personapproval cascade;
1544 1557

  
1545 1558
create table personapproval (
1546 1559
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
1559 1572
) comment '?S??????F?f?[?^' ;
1560 1573

  
1561 1574
-- ?S??????F?R?????g?f?[?^
1562
drop table if exists personapprovalcomment cascade;
1575
drop table personapprovalcomment cascade;
1563 1576

  
1564 1577
create table personapprovalcomment (
1565 1578
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
1575 1588
) comment '?S??????F?R?????g?f?[?^' ;
1576 1589

  
1577 1590
-- ?S??????????}?X?^
1578
drop table if exists persondepartmentmaster cascade;
1591
drop table persondepartmentmaster cascade;
1579 1592

  
1580 1593
create table persondepartmentmaster (
1581 1594
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
1593 1606
  on persondepartmentmaster(DepartmentCode);
1594 1607

  
1595 1608
-- ?S????}?X?^
1596
drop table if exists personinchargemaster cascade;
1609
drop table personinchargemaster cascade;
1597 1610

  
1598 1611
create table personinchargemaster (
1599 1612
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
1628 1641
  on personinchargemaster(DepartmentCode);
1629 1642

  
1630 1643
-- ?S??????^?}?X?^
1631
drop table if exists personsalarymaster cascade;
1644
drop table personsalarymaster cascade;
1632 1645

  
1633 1646
create table personsalarymaster (
1634 1647
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
......
1647 1660
  on personsalarymaster(StartDate);
1648 1661

  
1649 1662
-- ?w???????f?[?^
1650
drop table if exists pointingoutcomment cascade;
1663
drop table pointingoutcomment cascade;
1651 1664

  
1652 1665
create table pointingoutcomment (
1653 1666
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
......
1669 1682
) comment '?w???????f?[?^' ;
1670 1683

  
1671 1684
-- ?????????????c???^?f?[?^
1672
drop table if exists proceedingsdata cascade;
1685
drop table proceedingsdata cascade;
1673 1686

  
1674 1687
create table proceedingsdata (
1675 1688
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1685 1698
) comment '?????????????c???^?f?[?^' ;
1686 1699

  
1687 1700
-- ?????????????c???^?f?[?^?i?o???j
1688
drop table if exists proceedingsdataattend cascade;
1701
drop table proceedingsdataattend cascade;
1689 1702

  
1690 1703
create table proceedingsdataattend (
1691 1704
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1700 1713
) comment '?????????????c???^?f?[?^?i?o???j' ;
1701 1714

  
1702 1715
-- ?????????????c???^?f?[?^?i????j
1703
drop table if exists proceedingsdatadetail cascade;
1716
drop table proceedingsdatadetail cascade;
1704 1717

  
1705 1718
create table proceedingsdatadetail (
1706 1719
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1716 1729
) comment '?????????????c???^?f?[?^?i????j' ;
1717 1730

  
1718 1731
-- ???F?f?[?^
1719
drop table if exists processapproval cascade;
1732
drop table processapproval cascade;
1720 1733

  
1721 1734
create table processapproval (
1722 1735
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1734 1747
) comment '???F?f?[?^' ;
1735 1748

  
1736 1749
-- ???F?R?????g?f?[?^
1737
drop table if exists processapprovalcomment cascade;
1750
drop table processapprovalcomment cascade;
1738 1751

  
1739 1752
create table processapprovalcomment (
1740 1753
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1749 1762
) comment '???F?R?????g?f?[?^' ;
1750 1763

  
1751 1764
-- ???F????f?[?^
1752
drop table if exists processapprovaldetail cascade;
1765
drop table processapprovaldetail cascade;
1753 1766

  
1754 1767
create table processapprovaldetail (
1755 1768
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1763 1776
) comment '???F????f?[?^' ;
1764 1777

  
1765 1778
-- ?N?????}?X?^
1766
drop table if exists processexcutemaster cascade;
1779
drop table processexcutemaster cascade;
1767 1780

  
1768 1781
create table processexcutemaster (
1769 1782
  SecCode decimal(2,0) unsigned not null comment '???????'
......
1781 1794
  on processexcutemaster(ExecCode);
1782 1795

  
1783 1796
-- ???????f?[?^
1784
drop table if exists purchaseorder cascade;
1797
drop table purchaseorder cascade;
1785 1798

  
1786 1799
create table purchaseorder (
1787 1800
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1817 1830
) comment '???????f?[?^' ;
1818 1831

  
1819 1832
-- ?????????t?f?[?^
1820
drop table if exists purchaseorderdate cascade;
1833
drop table purchaseorderdate cascade;
1821 1834

  
1822 1835
create table purchaseorderdate (
1823 1836
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1832 1845
) comment '?????????t?f?[?^' ;
1833 1846

  
1834 1847
-- ??????????f?[?^
1835
drop table if exists purchaseorderdetail cascade;
1848
drop table purchaseorderdetail cascade;
1836 1849

  
1837 1850
create table purchaseorderdetail (
1838 1851
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1859 1872
  on purchaseorderdetail(SourceCode);
1860 1873

  
1861 1874
-- ?????f?[?^
1862
drop table if exists requestdata cascade;
1875
drop table requestdata cascade;
1863 1876

  
1864 1877
create table requestdata (
1865 1878
  REQUESTNO decimal(9,0) not null comment '????No'
......
1884 1897
) comment '?????f?[?^' ;
1885 1898

  
1886 1899
-- ?????f?[?^????
1887
drop table if exists requestdatadetail cascade;
1900
drop table requestdatadetail cascade;
1888 1901

  
1889 1902
create table requestdatadetail (
1890 1903
  REQUESTNO decimal(9,0) not null comment '????No'
......
1899 1912
) comment '?????f?[?^????' ;
1900 1913

  
1901 1914
-- ?????w?b?_
1902
drop table if exists requesthead cascade;
1915
drop table requesthead cascade;
1903 1916

  
1904 1917
create table requesthead (
1905 1918
  REQUESTNO decimal(9,0) not null comment '????No'
......
1925 1938
alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
1926 1939

  
1927 1940
-- ?????????t?f?[?^
1928
drop table if exists requestorderdate cascade;
1941
drop table requestorderdate cascade;
1929 1942

  
1930 1943
create table requestorderdate (
1931 1944
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
1937 1950
) comment '?????????t?f?[?^' ;
1938 1951

  
1939 1952
-- ????O???t?f?[?^
1940
drop table if exists salesgraphdata cascade;
1953
drop table salesgraphdata cascade;
1941 1954

  
1942 1955
create table salesgraphdata (
1943 1956
  GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h'
......
1961 1974
  on salesgraphdata(ConstructionPeriod);
1962 1975

  
1963 1976
-- ?????}?X?^
1964
drop table if exists securitymaster cascade;
1977
drop table securitymaster cascade;
1965 1978

  
1966 1979
create table securitymaster (
1967 1980
  SecCode decimal(2,0) unsigned not null comment '???????'
......
1986 1999
  on securitymaster(SecRange);
1987 2000

  
1988 2001
-- ???S?p?g???[???f?[?^
1989
drop table if exists sfpdata cascade;
2002
drop table sfpdata cascade;
1990 2003

  
1991 2004
create table sfpdata (
1992 2005
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
2004 2017
  on sfpdata(RequestDate);
2005 2018

  
2006 2019
-- ???S?p?g???[??????f?[?^
2007
drop table if exists sfpdatadetail cascade;
2020
drop table sfpdatadetail cascade;
2008 2021

  
2009 2022
create table sfpdatadetail (
2010 2023
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
2017 2030
) comment '???S?p?g???[??????f?[?^' ;
2018 2031

  
2019 2032
-- ??????{?H?H??o?^?\???f?[?^
2020
drop table if exists subconstrjobitemregist cascade;
2033
drop table subconstrjobitemregist cascade;
2021 2034

  
2022 2035
create table subconstrjobitemregist (
2023 2036
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
......
2031 2044
) comment '??????{?H?H??o?^?\???f?[?^' ;
2032 2045

  
2033 2046
-- ??????E?????N?o?^?\???f?[?^
2034
drop table if exists subconstrjoblinkregist cascade;
2047
drop table subconstrjoblinkregist cascade;
2035 2048

  
2036 2049
create table subconstrjoblinkregist (
2037 2050
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
......
2045 2058
) comment '??????E?????N?o?^?\???f?[?^' ;
2046 2059

  
2047 2060
-- ??????o?^?\???f?[?^
2048
drop table if exists subconstrregist cascade;
2061
drop table subconstrregist cascade;
2049 2062

  
2050 2063
create table subconstrregist (
2051 2064
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
......
2080 2093
) comment '??????o?^?\???f?[?^' ;
2081 2094

  
2082 2095
-- ??????H??}?X?^
2083
drop table if exists subcontractoritemmaster cascade;
2096
drop table subcontractoritemmaster cascade;
2084 2097

  
2085 2098
create table subcontractoritemmaster (
2086 2099
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
2093 2106
) comment '??????H??}?X?^' ;
2094 2107

  
2095 2108
-- ??????E??}?X?^
2096
drop table if exists subcontractorjobcategory cascade;
2109
drop table subcontractorjobcategory cascade;
2097 2110

  
2098 2111
create table subcontractorjobcategory (
2099 2112
  JobCategoryCode decimal(5,0) not null comment '?E??L?['
......
2106 2119
) comment '??????E??}?X?^' ;
2107 2120

  
2108 2121
-- ??????{?H?H??f?[?^
2109
drop table if exists subcontractorjobitem cascade;
2122
drop table subcontractorjobitem cascade;
2110 2123

  
2111 2124
create table subcontractorjobitem (
2112 2125
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
......
2124 2137
  on subcontractorjobitem(ItemCode);
2125 2138

  
2126 2139
-- ??????E?????N?}?X?^
2127
drop table if exists subcontractorjoblink cascade;
2140
drop table subcontractorjoblink cascade;
2128 2141

  
2129 2142
create table subcontractorjoblink (
2130 2143
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
......
2142 2155
  on subcontractorjoblink(JobCategoryCode);
2143 2156

  
2144 2157
-- ??????}?X?^
2145
drop table if exists subcontractormaster cascade;
2158
drop table subcontractormaster cascade;
2146 2159

  
2147 2160
create table subcontractormaster (
2148 2161
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
......
2175 2188
  on subcontractormaster(JapaneseSyllabary);
2176 2189

  
2177 2190
-- ?d????}?X?^
2178
drop table if exists suppliersmaster cascade;
2191
drop table suppliersmaster cascade;
2179 2192

  
2180 2193
create table suppliersmaster (
2181 2194
  SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h'
......
2196 2209
) comment '?d????}?X?^' ;
2197 2210

  
2198 2211
-- ?V?X?e???N???m?F?f?[?^
2199
drop table if exists systemexecute cascade;
2212
drop table systemexecute cascade;
2200 2213

  
2201 2214
create table systemexecute (
2202 2215
  PrimaryCode tinyint(4) not null comment '?L?[????'
......
2209 2222
) comment '?V?X?e???N???m?F?f?[?^' ;
2210 2223

  
2211 2224
-- ????}?X?^
2212
drop table if exists systemmaster cascade;
2225
drop table systemmaster cascade;
2213 2226

  
2214 2227
create table systemmaster (
2215 2228
  SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
......
2224 2237
  , PhoneNumber varchar(13) not null comment '?d?b???'
2225 2238
  , FaxNumber varchar(13) comment 'FAX???'
2226 2239
  , HomePageURL varchar(120) comment '?z?[???y?[?WURL'
2227
  , ConstructionExpenses decimal(4,2) not null comment '?H?????o??'
2228
  , OfficeExpenses decimal(4,2) not null comment '???????o??'
2229
  , OperatingExpenses decimal(4,2) not null comment '?c??o??'
2230 2240
  , ConsumptionTax decimal(4,2) not null comment '?????'
2231 2241
  , CooperationRate decimal(4,2) not null comment '???????'
2232 2242
  , StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
......
2234 2244
  , AreaDistance decimal(5,2) not null comment '????u????????'
2235 2245
  , ExcelSavePath varchar(120) comment 'Excel????p?X'
2236 2246
  , BusinessPeriod smallint(6) not null comment '????c?????'
2237
  , ConstructionYear smallint(6) not null comment '????H???N?x'
2238
  , BusinessBeginningDate varchar(5) not null comment '?c????????'
2239
  , ConstructionBeginningDate varchar(5) not null comment '?H???N?x?????'
2247
  , ConstrYear smallint(6) not null comment '????H???N?x'
2248
  , BusinessBeginDate datetime not null comment '?c????????'
2249
  , ConstrBeginDate datetime not null comment '?H???N?x?????'
2250
  , BusinessCompDate datetime not null comment '?c?????????'
2251
  , ConstrCompDate datetime not null comment '?H???N?x??????'
2240 2252
  , ConstructionNoBase decimal(1,0) not null comment '?H????????l'
2241 2253
  , SloganString1 varchar(100) comment '?W??1'
2242 2254
  , SloganString2 varchar(100) comment '?W??2'
......
2247 2259
) comment '????}?X?^' ;
2248 2260

  
2249 2261
-- ?????}?X?^
2250
drop table if exists termmaster cascade;
2262
drop table termmaster cascade;
2251 2263

  
2252 2264
create table termmaster (
2253 2265
  ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
......
2269 2281
  on termmaster(DisplayOrder);
2270 2282

  
2271 2283
-- ?o?????f?[?^
2272
drop table if exists tranceportdailydata cascade;
2284
drop table tranceportdailydata cascade;
2273 2285

  
2274 2286
create table tranceportdailydata (
2275 2287
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
......
2291 2303
  on tranceportdailydata(AttendanceDate);
2292 2304

  
2293 2305
-- ?H?????o???}?X?^
2294
drop table if exists typeexpensesmaster cascade;
2306
drop table typeexpensesmaster cascade;
2295 2307

  
2296 2308
create table typeexpensesmaster (
2297 2309
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
......
2305 2317
) comment '?H?????o???}?X?^' ;
2306 2318

  
2307 2319
-- ?P??}?X?^
2308
drop table if exists unitmaster cascade;
2320
drop table unitmaster cascade;
2309 2321

  
2310 2322
create table unitmaster (
2311 2323
  UnitKey decimal(5,0) unsigned not null comment '?P??L?['
......
2320 2332
  on unitmaster(DisplayOrder);
2321 2333

  
2322 2334
-- ????}?X?^
2323
drop table if exists vehiclemaster cascade;
2335
drop table vehiclemaster cascade;
2324 2336

  
2325 2337
create table vehiclemaster (
2326 2338
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
......
2349 2361
) comment '????}?X?^' ;
2350 2362

  
2351 2363
-- ????L?^?f?[?^
2352
drop table if exists vehiclerecorddata cascade;
2364
drop table vehiclerecorddata cascade;
2353 2365

  
2354 2366
create table vehiclerecorddata (
2355 2367
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
......
2365 2377
) comment '????L?^?f?[?^' ;
2366 2378

  
2367 2379
-- ????\??f?[?^
2368
drop table if exists vehiclescheduledata cascade;
2380
drop table vehiclescheduledata cascade;
2369 2381

  
2370 2382
create table vehiclescheduledata (
2371 2383
  TargetDate date not null comment '????'
......
2390 2402
  on vehiclescheduledata(TargetDay);
2391 2403

  
2392 2404
-- ?N?}?X?^
2393
drop table if exists yearmaster cascade;
2405
drop table yearmaster cascade;
2394 2406

  
2395 2407
create table yearmaster (
2396 2408
  years smallint(6) not null comment '?N'

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