プロジェクト

全般

プロフィール

リビジョン 468

堀内約5年前に追加

一人親方版:最新対応

差分を表示:

trunk/ddl/ProcessManagement.sql
1 1
-- Project Name : noname
2
-- Date/Time    : 2019/11/21 17:23:43
2
-- Date/Time    : 2019/12/07 16:08:48
3 3
-- Author       : Horiuchi
4 4
-- RDBMS Type   : MySQL
5 5
-- Application  : A5:SQL Mk-2
......
11 11
*/
12 12

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

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

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

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

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

  
60
-- RestoreFromTempTable
60
--* RestoreFromTempTable
61 61
create table attendancedailydata (
62 62
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
63 63
  , AttendanceDate date not null comment '???????'
......
83 83
  on attendancedailydata(AttendanceDate);
84 84

  
85 85
-- ?o?????f?[?^
86
-- BackupToTempTable
86
--* BackupToTempTable
87 87
drop table if exists attendancedata cascade;
88 88

  
89
-- RestoreFromTempTable
89
--* RestoreFromTempTable
90 90
create table attendancedata (
91 91
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
92 92
  , AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??'
......
111 111
) comment '?o?????f?[?^' ;
112 112

  
113 113
-- ????o?f?[?^
114
-- BackupToTempTable
114
--* BackupToTempTable
115 115
drop table if exists attendancenotice cascade;
116 116

  
117
-- RestoreFromTempTable
117
--* RestoreFromTempTable
118 118
create table attendancenotice (
119 119
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
120 120
  , AttendanceNo decimal(2,0) unsigned not null comment '????'
......
137 137
) comment '????o?f?[?^' ;
138 138

  
139 139
-- ????o?R?t???f?[?^
140
-- BackupToTempTable
140
--* BackupToTempTable
141 141
drop table if exists attendancenoticelink cascade;
142 142

  
143
-- RestoreFromTempTable
143
--* RestoreFromTempTable
144 144
create table attendancenoticelink (
145 145
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
146 146
  , AttendanceNo decimal(2,0) unsigned not null comment '????'
......
172 172
  on attendancenoticelink(SeqNo);
173 173

  
174 174
-- ????o?H???f?[?^
175
-- BackupToTempTable
175
--* BackupToTempTable
176 176
drop table if exists attnoticeconstrction cascade;
177 177

  
178
-- RestoreFromTempTable
178
--* RestoreFromTempTable
179 179
create table attnoticeconstrction (
180 180
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
181 181
  , AttendanceNo decimal(2,0) unsigned not null comment '????'
......
189 189
) comment '????o?H???f?[?^' ;
190 190

  
191 191
-- ?L???x??????R?t?f?[?^
192
-- BackupToTempTable
192
--* BackupToTempTable
193 193
drop table if exists attnpaidholidyalink cascade;
194 194

  
195
-- RestoreFromTempTable
195
--* RestoreFromTempTable
196 196
create table attnpaidholidyalink (
197 197
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
198 198
  , AttendanceNo decimal(2,0) unsigned not null comment '????'
......
207 207
) comment '?L???x??????R?t?f?[?^' ;
208 208

  
209 209
-- ??s?c????}?X?^
210
-- BackupToTempTable
210
--* BackupToTempTable
211 211
drop table if exists bankbusinessdaymaster cascade;
212 212

  
213
-- RestoreFromTempTable
213
--* RestoreFromTempTable
214 214
create table bankbusinessdaymaster (
215 215
  YEARMONTH decimal(6,0) default '0' not null comment '?N??'
216 216
  , BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???'
......
222 222
) comment '??s?c????}?X?^' ;
223 223

  
224 224
-- ???????f?[?^
225
-- BackupToTempTable
225
--* BackupToTempTable
226 226
drop table if exists billingdata cascade;
227 227

  
228
-- RestoreFromTempTable
228
--* RestoreFromTempTable
229 229
create table billingdata (
230 230
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
231 231
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
237 237
) comment '???????f?[?^' ;
238 238

  
239 239
-- ??????????f?[?^
240
-- BackupToTempTable
240
--* BackupToTempTable
241 241
drop table if exists billingdatadetail cascade;
242 242

  
243
-- RestoreFromTempTable
243
--* RestoreFromTempTable
244 244
create table billingdatadetail (
245 245
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
246 246
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
289 289
  on billingdatadetail(CONSTRUCTIONCOLCNT);
290 290

  
291 291
-- ???????x???T?}???[?f?[?^
292
-- BackupToTempTable
292
--* BackupToTempTable
293 293
drop table if exists billingpaymentsummary cascade;
294 294

  
295
-- RestoreFromTempTable
295
--* RestoreFromTempTable
296 296
create table billingpaymentsummary (
297 297
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
298 298
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
313 313
) comment '???????x???T?}???[?f?[?^' ;
314 314

  
315 315
-- ?^?c?????????
316
-- BackupToTempTable
316
--* BackupToTempTable
317 317
drop table if exists bizperiodhistory cascade;
318 318

  
319
-- RestoreFromTempTable
319
--* RestoreFromTempTable
320 320
create table bizperiodhistory (
321 321
  PeriodYear smallint(6) not null comment '?c??????E?H???N?x'
322 322
  , PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O'
......
328 328
) comment '?^?c?????????' ;
329 329

  
330 330
-- ?H???????f?[?^?y???p?z
331
-- BackupToTempTable
331
--* BackupToTempTable
332 332
drop table if exists bk_constructionledger cascade;
333 333

  
334
-- RestoreFromTempTable
334
--* RestoreFromTempTable
335 335
create table bk_constructionledger (
336 336
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
337 337
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
......
357 357
) comment '?H???????f?[?^?y???p?z' ;
358 358

  
359 359
-- ?H??????????f?[?^?y???p?z
360
-- BackupToTempTable
360
--* BackupToTempTable
361 361
drop table if exists bk_constructionledgerdetail cascade;
362 362

  
363
-- RestoreFromTempTable
363
--* RestoreFromTempTable
364 364
create table bk_constructionledgerdetail (
365 365
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
366 366
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
394 394
) comment '?H??????????f?[?^?y???p?z' ;
395 395

  
396 396
-- ?H?????????s?f?[?^?y???p?z
397
-- BackupToTempTable
397
--* BackupToTempTable
398 398
drop table if exists bk_constructionledgerexcute cascade;
399 399

  
400
-- RestoreFromTempTable
400
--* RestoreFromTempTable
401 401
create table bk_constructionledgerexcute (
402 402
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
403 403
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
411 411
) comment '?H?????????s?f?[?^?y???p?z' ;
412 412

  
413 413
-- ??Z????f?[?^?y???p?z
414
-- BackupToTempTable
414
--* BackupToTempTable
415 415
drop table if exists bk_estimatedata cascade;
416 416

  
417
-- RestoreFromTempTable
417
--* RestoreFromTempTable
418 418
create table bk_estimatedata (
419 419
  SaveDate datetime not null comment '?????t'
420 420
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
433 433
) comment '??Z????f?[?^?y???p?z' ;
434 434

  
435 435
-- ??Z????y?[?W?f?[?^?y???p?z
436
-- BackupToTempTable
436
--* BackupToTempTable
437 437
drop table if exists bk_estimatedatabody cascade;
438 438

  
439
-- RestoreFromTempTable
439
--* RestoreFromTempTable
440 440
create table bk_estimatedatabody (
441 441
  SaveDate datetime not null comment '?????t'
442 442
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
454 454
) comment '??Z????y?[?W?f?[?^?y???p?z' ;
455 455

  
456 456
-- ??Z????f?[?^????y???p?z
457
-- BackupToTempTable
457
--* BackupToTempTable
458 458
drop table if exists bk_estimatedatadetail cascade;
459 459

  
460
-- RestoreFromTempTable
460
--* RestoreFromTempTable
461 461
create table bk_estimatedatadetail (
462 462
  SaveDate datetime not null comment '?????t'
463 463
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
......
483 483
) comment '??Z????f?[?^????y???p?z' ;
484 484

  
485 485
-- ?\?Z???W?v?R?[?h?}?X?^
486
-- BackupToTempTable
486
--* BackupToTempTable
487 487
drop table if exists budgetsumcode cascade;
488 488

  
489
-- RestoreFromTempTable
489
--* RestoreFromTempTable
490 490
create table budgetsumcode (
491 491
  BlockCode decimal(2,0) unsigned not null comment '?u???b?N???'
492 492
  , GroupCode decimal(2,0) unsigned not null comment '?O???[?v???'
......
499 499
) comment '?\?Z???W?v?R?[?h?}?X?^' ;
500 500

  
501 501
-- ?@?l?i?}?X?^
502
-- BackupToTempTable
502
--* BackupToTempTable
503 503
drop table if exists businesstypemaster cascade;
504 504

  
505
-- RestoreFromTempTable
505
--* RestoreFromTempTable
506 506
create table businesstypemaster (
507 507
  BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h'
508 508
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
516 516
  on businesstypemaster(DisplayOrder);
517 517

  
518 518
-- ?S????????????f?[?^
519
-- BackupToTempTable
519
--* BackupToTempTable
520 520
drop table if exists chgchargedep cascade;
521 521

  
522
-- RestoreFromTempTable
522
--* RestoreFromTempTable
523 523
create table chgchargedep (
524 524
  PersonCode decimal(8,0) not null comment '?S????R?[?h'
525 525
  , StartDate date not null comment '?J?n?N????'
......
532 532
) comment '?S????????????f?[?^' ;
533 533

  
534 534
-- ?H???S????X?????f?[?^
535
-- BackupToTempTable
535
--* BackupToTempTable
536 536
drop table if exists chgconstrcharge cascade;
537 537

  
538
-- RestoreFromTempTable
538
--* RestoreFromTempTable
539 539
create table chgconstrcharge (
540 540
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
541 541
  , Division decimal(1,0) not null comment '????'
......
552 552
) comment '?H???S????X?????f?[?^' ;
553 553

  
554 554
-- Web-EDI??????f?[?^
555
-- BackupToTempTable
555
--* BackupToTempTable
556 556
drop table if exists closingdateofmonth cascade;
557 557

  
558
-- RestoreFromTempTable
558
--* RestoreFromTempTable
559 559
create table closingdateofmonth (
560 560
  TARGETDATE decimal(6,0) unsigned default '0' not null comment '???N??'
561 561
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
......
568 568
) comment 'Web-EDI??????f?[?^' ;
569 569

  
570 570
-- ????????}?X?^
571
-- BackupToTempTable
571
--* BackupToTempTable
572 572
drop table if exists commoncostlarge cascade;
573 573

  
574
-- RestoreFromTempTable
574
--* RestoreFromTempTable
575 575
create table commoncostlarge (
576 576
  LargeCode decimal(5,0) unsigned not null comment '????L?['
577 577
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
584 584
) comment '????????}?X?^' ;
585 585

  
586 586
-- ?????H???A?}?X?^
587
-- BackupToTempTable
587
--* BackupToTempTable
588 588
drop table if exists commoncostlinkms cascade;
589 589

  
590
-- RestoreFromTempTable
590
--* RestoreFromTempTable
591 591
create table commoncostlinkms (
592 592
  LargeCode decimal(5,0) unsigned not null comment '????L?['
593 593
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
598 598
) comment '?????H???A?}?X?^' ;
599 599

  
600 600
-- ?????????}?X?^
601
-- BackupToTempTable
601
--* BackupToTempTable
602 602
drop table if exists commoncostmiddle cascade;
603 603

  
604
-- RestoreFromTempTable
604
--* RestoreFromTempTable
605 605
create table commoncostmiddle (
606 606
  LargeCode decimal(5,0) unsigned not null comment '????L?['
607 607
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
615 615
) comment '?????????}?X?^' ;
616 616

  
617 617
-- ?????????L?[?}?X?^
618
-- BackupToTempTable
618
--* BackupToTempTable
619 619
drop table if exists commoncostmiddlesearchword cascade;
620 620

  
621
-- RestoreFromTempTable
621
--* RestoreFromTempTable
622 622
create table commoncostmiddlesearchword (
623 623
  LargeCode decimal(5,0) unsigned not null comment '????L?['
624 624
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
......
630 630
) comment '?????????L?[?}?X?^' ;
631 631

  
632 632
-- ?\???H???A?}?X?^
633
-- BackupToTempTable
633
--* BackupToTempTable
634 634
drop table if exists componentlinkmaster cascade;
635 635

  
636
-- RestoreFromTempTable
636
--* RestoreFromTempTable
637 637
create table componentlinkmaster (
638 638
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
639 639
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
......
650 650
  on componentlinkmaster(ItemCode);
651 651

  
652 652
-- ?\???}?X?^
653
-- BackupToTempTable
653
--* BackupToTempTable
654 654
drop table if exists componentmaster cascade;
655 655

  
656
-- RestoreFromTempTable
656
--* RestoreFromTempTable
657 657
create table componentmaster (
658 658
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
659 659
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
671 671
  on componentmaster(DisplayOrder);
672 672

  
673 673
-- ?H?????E?\???????N?}?X?^
674
-- BackupToTempTable
674
--* BackupToTempTable
675 675
drop table if exists componenttotypemaster cascade;
676 676

  
677
-- RestoreFromTempTable
677
--* RestoreFromTempTable
678 678
create table componenttotypemaster (
679 679
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
680 680
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
691 691
  on componenttotypemaster(ComponentCode);
692 692

  
693 693
-- ?H???????o??f?[?^
694
-- BackupToTempTable
694
--* BackupToTempTable
695 695
drop table if exists constrledgerexpenses cascade;
696 696

  
697
-- RestoreFromTempTable
697
--* RestoreFromTempTable
698 698
create table constrledgerexpenses (
699 699
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
700 700
  , SeqNo decimal(5,0) not null comment '?}??'
......
716 716
  on constrledgerexpenses(NameCode);
717 717

  
718 718
-- ?H????{???
719
-- BackupToTempTable
719
--* BackupToTempTable
720 720
drop table if exists constructionbaseinfo cascade;
721 721

  
722
-- RestoreFromTempTable
722
--* RestoreFromTempTable
723 723
create table constructionbaseinfo (
724 724
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
725 725
  , TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O'
......
802 802
  on constructionbaseinfo(ConstructionPeriod);
803 803

  
804 804
-- ?H????{????
805
-- BackupToTempTable
805
--* BackupToTempTable
806 806
drop table if exists constructionbaseinfodetail cascade;
807 807

  
808
-- RestoreFromTempTable
808
--* RestoreFromTempTable
809 809
create table constructionbaseinfodetail (
810 810
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
811 811
  , DetailNo decimal(3,0) not null comment '??????'
......
822 822
  on constructionbaseinfodetail(DetailNo);
823 823

  
824 824
-- ?H???{?H?\?Z?f?[?^
825
-- BackupToTempTable
825
--* BackupToTempTable
826 826
drop table if exists constructionbudget cascade;
827 827

  
828
-- RestoreFromTempTable
828
--* RestoreFromTempTable
829 829
create table constructionbudget (
830 830
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
831 831
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
......
855 855
) comment '?H???{?H?\?Z?f?[?^' ;
856 856

  
857 857
-- ?H???{?H?\?Z?f?[?^????
858
-- BackupToTempTable
858
--* BackupToTempTable
859 859
drop table if exists constructionbudgetdetail cascade;
860 860

  
861
-- RestoreFromTempTable
861
--* RestoreFromTempTable
862 862
create table constructionbudgetdetail (
863 863
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
864 864
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
882 882
) comment '?H???{?H?\?Z?f?[?^????' ;
883 883

  
884 884
-- ?H??}?X?^
885
-- BackupToTempTable
885
--* BackupToTempTable
886 886
drop table if exists constructionitemmaster cascade;
887 887

  
888
-- RestoreFromTempTable
888
--* RestoreFromTempTable
889 889
create table constructionitemmaster (
890 890
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
891 891
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
899 899
) comment '?H??}?X?^' ;
900 900

  
901 901
-- ?H???????f?[?^
902
-- BackupToTempTable
902
--* BackupToTempTable
903 903
drop table if exists constructionledger cascade;
904 904

  
905
-- RestoreFromTempTable
905
--* RestoreFromTempTable
906 906
create table constructionledger (
907 907
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
908 908
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
......
934 934
  on constructionledger(ConstructionEnd);
935 935

  
936 936
-- ?H??????????f?[?^
937
-- BackupToTempTable
937
--* BackupToTempTable
938 938
drop table if exists constructionledgerdetail cascade;
939 939

  
940
-- RestoreFromTempTable
940
--* RestoreFromTempTable
941 941
create table constructionledgerdetail (
942 942
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
943 943
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
992 992
  on constructionledgerdetail(CompanyCode);
993 993

  
994 994
-- ?H?????????s?f?[?^
995
-- BackupToTempTable
995
--* BackupToTempTable
996 996
drop table if exists constructionledgerexcute cascade;
997 997

  
998
-- RestoreFromTempTable
998
--* RestoreFromTempTable
999 999
create table constructionledgerexcute (
1000 1000
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1001 1001
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
1012 1012
  on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
1013 1013

  
1014 1014
-- ?H???????N???
1015
-- BackupToTempTable
1015
--* BackupToTempTable
1016 1016
drop table if exists constructionlink cascade;
1017 1017

  
1018
-- RestoreFromTempTable
1018
--* RestoreFromTempTable
1019 1019
create table constructionlink (
1020 1020
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1021 1021
  , FluctuationCode decimal(10,0) not null comment '?q?H?????'
......
1035 1035
  on constructionlink(LinkType);
1036 1036

  
1037 1037
-- ?H????????
1038
-- BackupToTempTable
1038
--* BackupToTempTable
1039 1039
drop table if exists constructionmaterialinfo cascade;
1040 1040

  
1041
-- RestoreFromTempTable
1041
--* RestoreFromTempTable
1042 1042
create table constructionmaterialinfo (
1043 1043
  CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????'
1044 1044
  , MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
......
1053 1053
) comment '?H????????' ;
1054 1054

  
1055 1055
-- ????i?????t?f?[?^
1056
-- BackupToTempTable
1056
--* BackupToTempTable
1057 1057
drop table if exists constructionprogressdate cascade;
1058 1058

  
1059
-- RestoreFromTempTable
1059
--* RestoreFromTempTable
1060 1060
create table constructionprogressdate (
1061 1061
  ConstructionCode decimal(10,0) not null comment '?H?????'
1062 1062
  , ConstructionStatusFlg decimal(2,0) not null comment '???H?????'
......
1078 1078
  on constructionprogressdate(ChangeDate);
1079 1079

  
1080 1080
-- ???}?X?^
1081
-- BackupToTempTable
1081
--* BackupToTempTable
1082 1082
drop table if exists constructionspecmaster cascade;
1083 1083

  
1084
-- RestoreFromTempTable
1084
--* RestoreFromTempTable
1085 1085
create table constructionspecmaster (
1086 1086
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1087 1087
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
......
1100 1100
  on constructionspecmaster(DisplayOrder);
1101 1101

  
1102 1102
-- ???P???}?X?^
1103
-- BackupToTempTable
1103
--* BackupToTempTable
1104 1104
drop table if exists constructionspecunitprice cascade;
1105 1105

  
1106
-- RestoreFromTempTable
1106
--* RestoreFromTempTable
1107 1107
create table constructionspecunitprice (
1108 1108
  ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
1109 1109
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
......
1119 1119
  on constructionspecunitprice(ConstructionTypeCode,ComponentCode,ItemCode);
1120 1120

  
1121 1121
-- ?H?????}?X?^
1122
-- BackupToTempTable
1122
--* BackupToTempTable
1123 1123
drop table if exists constructiontypemaster cascade;
1124 1124

  
1125
-- RestoreFromTempTable
1125
--* RestoreFromTempTable
1126 1126
create table constructiontypemaster (
1127 1127
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
1128 1128
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
1131 1131
  , RepairFlg decimal(1,0) not null comment '?V?z?E???C?t???O'
1132 1132
  , SecRank decimal(1,0) not null comment '?????????N'
1133 1133
  , ExpensesLink decimal(1,0) not null comment '?o??g?p??'
1134
  , CompanyProp decimal(1,0) not null comment '????H????'
1134 1135
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1135 1136
  , EntryDate datetime not null comment '?o?^???t'
1136 1137
  , UpdateDate datetime not null comment '?X?V???t'
......
1138 1139
) comment '?H?????}?X?^' ;
1139 1140

  
1140 1141
-- ?????f?[?^
1141
-- BackupToTempTable
1142
--* BackupToTempTable
1142 1143
drop table if exists consumptiontax cascade;
1143 1144

  
1144
-- RestoreFromTempTable
1145
--* RestoreFromTempTable
1145 1146
create table consumptiontax (
1146 1147
  StartDate date not null comment '?g?p?J?n?N????'
1147 1148
  , ComplateDate date comment '?g?p?I???N????'
......
1153 1154
) comment '?????f?[?^' ;
1154 1155

  
1155 1156
-- ?????o?[?f?[?^
1156
-- BackupToTempTable
1157
--* BackupToTempTable
1157 1158
drop table if exists costdataofdepartment cascade;
1158 1159

  
1159
-- RestoreFromTempTable
1160
--* RestoreFromTempTable
1160 1161
create table costdataofdepartment (
1161 1162
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1162 1163
  , ConstrYear smallint(5) unsigned not null comment '?H???????E?N??'
......
1176 1177
) comment '?????o?[?f?[?^' ;
1177 1178

  
1178 1179
-- ?S??????o??f?[?^
1179
-- BackupToTempTable
1180
--* BackupToTempTable
1180 1181
drop table if exists costdataofperson cascade;
1181 1182

  
1182
-- RestoreFromTempTable
1183
--* RestoreFromTempTable
1183 1184
create table costdataofperson (
1184 1185
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1185 1186
  , ActionDate date not null comment '?????t'
......
1208 1209
  on costdataofperson(ConstructionCode);
1209 1210

  
1210 1211
-- ??????o?^?\???f?[?^
1211
-- BackupToTempTable
1212
--* BackupToTempTable
1212 1213
drop table if exists costomerregist cascade;
1213 1214

  
1214
-- RestoreFromTempTable
1215
--* RestoreFromTempTable
1215 1216
create table costomerregist (
1216 1217
  CreatePersonCode decimal(8,0) unsigned not null comment '?\??????'
1217 1218
  , CreateDate date not null comment '????'
......
1255 1256
  on costomerregist(CreateDepartmentCode);
1256 1257

  
1257 1258
-- ????f?[?^
1258
-- BackupToTempTable
1259
--* BackupToTempTable
1259 1260
drop table if exists dailydataconstruction cascade;
1260 1261

  
1261
-- RestoreFromTempTable
1262
--* RestoreFromTempTable
1262 1263
create table dailydataconstruction (
1263 1264
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1264 1265
  , DailyDataDate date not null comment '???????'
......
1279 1280
  on dailydataconstruction(ConstructionCode);
1280 1281

  
1281 1282
-- ????f?[?^ (????)
1282
-- BackupToTempTable
1283
--* BackupToTempTable
1283 1284
drop table if exists dailydatadetail cascade;
1284 1285

  
1285
-- RestoreFromTempTable
1286
--* RestoreFromTempTable
1286 1287
create table dailydatadetail (
1287 1288
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1288 1289
  , DailyDataDate date not null comment '???????'
......
1304 1305
  on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
1305 1306

  
1306 1307
-- ????f?[?^ (??????)
1307
-- BackupToTempTable
1308
--* BackupToTempTable
1308 1309
drop table if exists dailydatafield cascade;
1309 1310

  
1310
-- RestoreFromTempTable
1311
--* RestoreFromTempTable
1311 1312
create table dailydatafield (
1312 1313
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1313 1314
  , DailyDataDate date not null comment '???????'
......
1324 1325
  on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
1325 1326

  
1326 1327
-- ????f?[?^ (????)
1327
-- BackupToTempTable
1328
--* BackupToTempTable
1328 1329
drop table if exists dailydatamaterials cascade;
1329 1330

  
1330
-- RestoreFromTempTable
1331
--* RestoreFromTempTable
1331 1332
create table dailydatamaterials (
1332 1333
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1333 1334
  , DailyDataDate date not null comment '???????'
......
1347 1348
  on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
1348 1349

  
1349 1350
-- ????f?[?^ (??????w??)
1350
-- BackupToTempTable
1351
--* BackupToTempTable
1351 1352
drop table if exists dailydatasubcontractors cascade;
1352 1353

  
1353
-- RestoreFromTempTable
1354
--* RestoreFromTempTable
1354 1355
create table dailydatasubcontractors (
1355 1356
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1356 1357
  , DailyDataDate date not null comment '???????'
......
1367 1368
  on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
1368 1369

  
1369 1370
-- ????f?[?^ (???)
1370
-- BackupToTempTable
1371
--* BackupToTempTable
1371 1372
drop table if exists dailydatavehicles cascade;
1372 1373

  
1373
-- RestoreFromTempTable
1374
--* RestoreFromTempTable
1374 1375
create table dailydatavehicles (
1375 1376
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1376 1377
  , DailyDataDate date not null comment '???????'
......
1391 1392
  on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
1392 1393

  
1393 1394
-- ???}?X?^
1394
-- BackupToTempTable
1395
--* BackupToTempTable
1395 1396
drop table if exists daymaster cascade;
1396 1397

  
1397
-- RestoreFromTempTable
1398
--* RestoreFromTempTable
1398 1399
create table daymaster (
1399 1400
  days smallint(6) not null comment '??'
1400 1401
  , constraint daymaster_PKC primary key (days)
1401 1402
) comment '???}?X?^' ;
1402 1403

  
1403 1404
-- ?????}?X?^
1404
-- BackupToTempTable
1405
--* BackupToTempTable
1405 1406
drop table if exists deadlinemaster cascade;
1406 1407

  
1407
-- RestoreFromTempTable
1408
--* RestoreFromTempTable
1408 1409
create table deadlinemaster (
1409 1410
  LABOURKIND decimal(1,0) default '0' not null comment '??????'
1410 1411
  , DEADLINE decimal(2,0) comment '????'
......
1417 1418
) comment '?????}?X?^' ;
1418 1419

  
1419 1420
-- ?????o???}?X?^
1420
-- BackupToTempTable
1421
--* BackupToTempTable
1421 1422
drop table if exists departmentexpensesmaster cascade;
1422 1423

  
1423
-- RestoreFromTempTable
1424
--* RestoreFromTempTable
1424 1425
create table departmentexpensesmaster (
1425 1426
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1426 1427
  , ExpensesPeriod smallint(6) not null comment '?????'
......
1435 1436
) comment '?????o???}?X?^' ;
1436 1437

  
1437 1438
-- ?????}?X?^
1438
-- BackupToTempTable
1439
--* BackupToTempTable
1439 1440
drop table if exists departmentmaster cascade;
1440 1441

  
1441
-- RestoreFromTempTable
1442
--* RestoreFromTempTable
1442 1443
create table departmentmaster (
1443 1444
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1444 1445
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
......
1457 1458
  on departmentmaster(DisplayOrder);
1458 1459

  
1459 1460
-- ?????m?F???F?f?[?^
1460
-- BackupToTempTable
1461
--* BackupToTempTable
1461 1462
drop table if exists depositapprovalinfo cascade;
1462 1463

  
1463
-- RestoreFromTempTable
1464
--* RestoreFromTempTable
1464 1465
create table depositapprovalinfo (
1465 1466
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1466 1467
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1478 1479
) comment '?????m?F???F?f?[?^' ;
1479 1480

  
1480 1481
-- ?????f?[?^
1481
-- BackupToTempTable
1482
--* BackupToTempTable
1482 1483
drop table if exists depositdata cascade;
1483 1484

  
1484
-- RestoreFromTempTable
1485
--* RestoreFromTempTable
1485 1486
create table depositdata (
1486 1487
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1487 1488
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1504 1505
) comment '?????f?[?^' ;
1505 1506

  
1506 1507
-- ????????f?[?^
1507
-- BackupToTempTable
1508
--* BackupToTempTable
1508 1509
drop table if exists depositdatadetail cascade;
1509 1510

  
1510
-- RestoreFromTempTable
1511
--* RestoreFromTempTable
1511 1512
create table depositdatadetail (
1512 1513
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1513 1514
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
......
1539 1540
  on depositdatadetail(ORDERERSDIVISION,ORDERERSCODE,DEPOSITMONTH,SEQNO);
1540 1541

  
1541 1542
-- ???}?X?^
1542
-- BackupToTempTable
1543
--* BackupToTempTable
1543 1544
drop table if exists divisionmaster cascade;
1544 1545

  
1545
-- RestoreFromTempTable
1546
--* RestoreFromTempTable
1546 1547
create table divisionmaster (
1547 1548
  DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
1548 1549
  , NameCode decimal(5,0) unsigned not null comment '????R?[?h'
......
1555 1556
) comment '???}?X?^' ;
1556 1557

  
1557 1558
-- ??Z?\?Z???f?[?^
1558
-- BackupToTempTable
1559
--* BackupToTempTable
1559 1560
drop table if exists estimatebudget cascade;
1560 1561

  
1561
-- RestoreFromTempTable
1562
--* RestoreFromTempTable
1562 1563
create table estimatebudget (
1563 1564
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1564 1565
  , ConstructionTime decimal(5,2) unsigned not null comment '?H??'
......
1575 1576
) comment '??Z?\?Z???f?[?^' ;
1576 1577

  
1577 1578
-- ??Z?\?Z????f?[?^????
1578
-- BackupToTempTable
1579
--* BackupToTempTable
1579 1580
drop table if exists estimatebudgetdetail cascade;
1580 1581

  
1581
-- RestoreFromTempTable
1582
--* RestoreFromTempTable
1582 1583
create table estimatebudgetdetail (
1583 1584
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1584 1585
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
......
1598 1599
) comment '??Z?\?Z????f?[?^????' ;
1599 1600

  
1600 1601
-- ??Z????f?[?^
1601
-- BackupToTempTable
1602
--* BackupToTempTable
1602 1603
drop table if exists estimatedata cascade;
1603 1604

  
1604
-- RestoreFromTempTable
1605
--* RestoreFromTempTable
1605 1606
create table estimatedata (
1606 1607
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1607 1608
  , LineCount decimal(3,0) unsigned not null comment '?s???'
......
1622 1623
  on estimatedata(ConstructionCode,FixedItemCode);
1623 1624

  
1624 1625
-- ??Z????y?[?W?f?[?^
1625
-- BackupToTempTable
1626
--* BackupToTempTable
1626 1627
drop table if exists estimatedatabody cascade;
1627 1628

  
1628
-- RestoreFromTempTable
1629
--* RestoreFromTempTable
1629 1630
create table estimatedatabody (
1630 1631
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1631 1632
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
......
1645 1646
  on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
1646 1647

  
1647 1648
-- ??Z????f?[?^????
1648
-- BackupToTempTable
1649
--* BackupToTempTable
1649 1650
drop table if exists estimatedatadetail cascade;
1650 1651

  
1651
-- RestoreFromTempTable
1652
--* RestoreFromTempTable
1652 1653
create table estimatedatadetail (
1653 1654
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1654 1655
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
......
1676 1677
  on estimatedatadetail(ConstructionCode,PageCount);
1677 1678

  
1678 1679
-- ?o???}?X?^
1679
-- BackupToTempTable
1680
--* BackupToTempTable
1680 1681
drop table if exists expensesmaster cascade;
1681 1682

  
1682
-- RestoreFromTempTable
1683
--* RestoreFromTempTable
1683 1684
create table expensesmaster (
1684 1685
  DivisionCode smallint(6) not null comment '?H?????R?[?h'
1685 1686
  , NameCode smallint(6) not null comment '?o????R?[?h'
......
1692 1693
) comment '?o???}?X?^' ;
1693 1694

  
1694 1695
-- ???x???}?X?^
1695
-- BackupToTempTable
1696
--* BackupToTempTable
1696 1697
drop table if exists holidaycalendermaster cascade;
1697 1698

  
1698
-- RestoreFromTempTable
1699
--* RestoreFromTempTable
1699 1700
create table holidaycalendermaster (
1700 1701
  Holiday date not null comment '?x??'
1701 1702
  , BusinessYear smallint(5) unsigned not null comment '?c??N?x'
......
1714 1715
  on holidaycalendermaster(TargetDay);
1715 1716

  
1716 1717
-- ??????????f?[?^
1717
-- BackupToTempTable
1718
--* BackupToTempTable
1718 1719
drop table if exists inputbillingdata cascade;
1719 1720

  
1720
-- RestoreFromTempTable
1721
--* RestoreFromTempTable
1721 1722
create table inputbillingdata (
1722 1723
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1723 1724
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
1735 1736
) comment '??????????f?[?^' ;
1736 1737

  
1737 1738
-- ?????????????f?[?^
1738
-- BackupToTempTable
1739
--* BackupToTempTable
1739 1740
drop table if exists inputbillingdatadetail cascade;
1740 1741

  
1741
-- RestoreFromTempTable
1742
--* RestoreFromTempTable
1742 1743
create table inputbillingdatadetail (
1743 1744
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1744 1745
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
1762 1763
) comment '?????????????f?[?^' ;
1763 1764

  
1764 1765
-- ????????????
1765
-- BackupToTempTable
1766
--* BackupToTempTable
1766 1767
drop table if exists inputbillingstatus cascade;
1767 1768

  
1768
-- RestoreFromTempTable
1769
--* RestoreFromTempTable
1769 1770
create table inputbillingstatus (
1770 1771
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1771 1772
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
1777 1778
) comment '????????????' ;
1778 1779

  
1779 1780
-- ?????????????
1780
-- BackupToTempTable
1781
--* BackupToTempTable
1781 1782
drop table if exists inputsearchlogdata cascade;
1782 1783

  
1783
-- RestoreFromTempTable
1784
--* RestoreFromTempTable
1784 1785
create table inputsearchlogdata (
1785 1786
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1786 1787
  , UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
......
1794 1795
  on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
1795 1796

  
1796 1797
-- ???????f?[?^
1797
-- BackupToTempTable
1798
--* BackupToTempTable
1798 1799
drop table if exists invoicedata cascade;
1799 1800

  
1800
-- RestoreFromTempTable
1801
--* RestoreFromTempTable
1801 1802
create table invoicedata (
1802 1803
  INVOICENO decimal(9,0) not null comment '??????No'
1803 1804
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
......
1823 1824
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
1824 1825

  
1825 1826
-- ???[???R???e???c?}?X?^
1826
-- BackupToTempTable
1827
--* BackupToTempTable
1827 1828
drop table if exists mailcontentsmaster cascade;
1828 1829

  
1829
-- RestoreFromTempTable
1830
--* RestoreFromTempTable
1830 1831
create table mailcontentsmaster (
1831 1832
  MailDelivery decimal(3,0) not null comment '???M??????'
1832 1833
  , MailTitle varchar(30) comment '???[???^?C?g??'
1833 1834
  , MailContent varchar(400) comment '???[???{??'
1834
  , EntryDate datetime not null comment '?o?^???t'
1835
  , UpdateDate datetime not null comment '?X?V???t'
1836 1835
  , constraint mailcontentsmaster_PKC primary key (MailDelivery)
1837 1836
) comment '???[???R???e???c?}?X?^' ;
1838 1837

  
1839 1838
-- ??????
1840
-- BackupToTempTable
1839
--* BackupToTempTable
1841 1840
drop table if exists materialinfo cascade;
1842 1841

  
1843
-- RestoreFromTempTable
1842
--* RestoreFromTempTable
1844 1843
create table materialinfo (
1845 1844
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1846 1845
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
......
1852 1851
) comment '??????' ;
1853 1852

  
1854 1853
-- ????i??}?X?^
1855
-- BackupToTempTable
1854
--* BackupToTempTable
1856 1855
drop table if exists materialitemmaster cascade;
1857 1856

  
1858
-- RestoreFromTempTable
1857
--* RestoreFromTempTable
1859 1858
create table materialitemmaster (
1860 1859
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1861 1860
  , MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
......
1869 1868
) comment '????i??}?X?^' ;
1870 1869

  
1871 1870
-- ??????}?X?^
1872
-- BackupToTempTable
1871
--* BackupToTempTable
1873 1872
drop table if exists materialkindmaster cascade;
1874 1873

  
1875
-- RestoreFromTempTable
1874
--* RestoreFromTempTable
1876 1875
create table materialkindmaster (
1877 1876
  MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
1878 1877
  , MATERIALKINDNAME varchar(40) comment '?????????'
......
1884 1883
) comment '??????}?X?^' ;
1885 1884

  
1886 1885
-- ??????????
1887
-- BackupToTempTable
1886
--* BackupToTempTable
1888 1887
drop table if exists materialrecordinfo cascade;
1889 1888

  
1890
-- RestoreFromTempTable
1889
--* RestoreFromTempTable
1891 1890
create table materialrecordinfo (
1892 1891
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1893 1892
  , PROCESSDATE date default '0000-00-00' not null comment '?????N????'
......
1904 1903
) comment '??????????' ;
1905 1904

  
1906 1905
-- ?f??????b?Z?[?W
1907
-- BackupToTempTable
1906
--* BackupToTempTable
1908 1907
drop table if exists messageboarddata cascade;
1909 1908

  
1910
-- RestoreFromTempTable
1909
--* RestoreFromTempTable
1911 1910
create table messageboarddata (
1912 1911
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1913 1912
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1936 1935
  on messageboarddata(MessageFlag);
1937 1936

  
1938 1937
-- ?f???????e?[?u??
1939
-- BackupToTempTable
1938
--* BackupToTempTable
1940 1939
drop table if exists messageboardterget cascade;
1941 1940

  
1942
-- RestoreFromTempTable
1941
--* RestoreFromTempTable
1943 1942
create table messageboardterget (
1944 1943
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1945 1944
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1955 1954
  on messageboardterget(RecordNumber,BranchNumber);
1956 1955

  
1957 1956
-- ?f??????b?Z?[?W?{??????
1958
-- BackupToTempTable
1957
--* BackupToTempTable
1959 1958
drop table if exists messagebrowsinghistory cascade;
1960 1959

  
1961
-- RestoreFromTempTable
1960
--* RestoreFromTempTable
1962 1961
create table messagebrowsinghistory (
1963 1962
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1964 1963
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
......
1971 1970
) comment '?f??????b?Z?[?W?{??????' ;
1972 1971

  
1973 1972
-- ???}?X?^
1974
-- BackupToTempTable
1973
--* BackupToTempTable
1975 1974
drop table if exists monthmaster cascade;
1976 1975

  
1977
-- RestoreFromTempTable
1976
--* RestoreFromTempTable
1978 1977
create table monthmaster (
1979 1978
  month smallint(6) not null comment '??'
1980 1979
  , constraint monthmaster_PKC primary key (month)
1981 1980
) comment '???}?X?^' ;
1982 1981

  
1983 1982
-- ???m?????
1984
-- BackupToTempTable
1983
--* BackupToTempTable
1985 1984
drop table if exists notificationmessage cascade;
1986 1985

  
1987
-- RestoreFromTempTable
1986
--* RestoreFromTempTable
1988 1987
create table notificationmessage (
1989 1988
  MessageDate datetime not null comment '?\???N????'
1990 1989
  , SeqNo decimal(3,0) unsigned not null comment '?A??'
......
2001 2000
) comment '???m?????' ;
2002 2001

  
2003 2002
-- ???m???{?????
2004
-- BackupToTempTable
2003
--* BackupToTempTable
2005 2004
drop table if exists notificationmessagebrowsing cascade;
2006 2005

  
2007
-- RestoreFromTempTable
2006
--* RestoreFromTempTable
2008 2007
create table notificationmessagebrowsing (
2009 2008
  MessageDate datetime not null comment '?\???N????'
2010 2009
  , SeqNo decimal(4,0) unsigned not null comment '?A??'
......
2019 2018
  on notificationmessagebrowsing(CompanyCode);
2020 2019

  
2021 2020
-- ???m???????I?????
2022
-- BackupToTempTable
2021
--* BackupToTempTable
2023 2022
drop table if exists notificationmessageselect cascade;
2024 2023

  
2025
-- RestoreFromTempTable
2024
--* RestoreFromTempTable
2026 2025
create table notificationmessageselect (
2027 2026
  MessageDate datetime not null comment '?\???N????'
2028 2027
  , SeqNo decimal(4,0) unsigned not null comment '?A??'
......
2033 2032
) comment '???m???????I?????' ;
2034 2033

  
2035 2034
-- ??????}?X?^
2036
-- BackupToTempTable
2035
--* BackupToTempTable
2037 2036
drop table if exists orderersmaster cascade;
2038 2037

  
2039
-- RestoreFromTempTable
2038
--* RestoreFromTempTable
2040 2039
create table orderersmaster (
2041 2040
  OrderCotegory decimal(5,0) unsigned not null comment '???????'
2042 2041
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
......
2064 2063
) comment '??????}?X?^' ;
2065 2064

  
2066 2065
-- ????z?f?[?^
2067
-- BackupToTempTable
2066
--* BackupToTempTable
2068 2067
drop table if exists orderspricedata cascade;
2069 2068

  
2070
-- RestoreFromTempTable
2069
--* RestoreFromTempTable
2071 2070
create table orderspricedata (
2072 2071
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2073 2072
  , ChangeNo decimal(3,0) unsigned not null comment '??X???'
......
2085 2084
) comment '????z?f?[?^' ;
2086 2085

  
2087 2086
-- ?x?????F???f?[?^
2088
-- BackupToTempTable
2087
--* BackupToTempTable
2089 2088
drop table if exists paymentapprovalinfo cascade;
2090 2089

  
2091
-- RestoreFromTempTable
2090
--* RestoreFromTempTable
2092 2091
create table paymentapprovalinfo (
2093 2092
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
2094 2093
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
2105 2104
) comment '?x?????F???f?[?^' ;
2106 2105

  
2107 2106
-- ?x??????f?[?^
2108
-- BackupToTempTable
2107
--* BackupToTempTable
2109 2108
drop table if exists paymentdatadetail cascade;
2110 2109

  
2111
-- RestoreFromTempTable
2110
--* RestoreFromTempTable
2112 2111
create table paymentdatadetail (
2113 2112
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
2114 2113
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
......
2139 2138
  on paymentdatadetail(APPROVALPERSONCODE);
2140 2139

  
2141 2140
-- ?H??????????f?[?^
2142
-- BackupToTempTable
2141
--* BackupToTempTable
2143 2142
drop table if exists periodavoidance cascade;
2144 2143

  
2145
-- RestoreFromTempTable
2144
--* RestoreFromTempTable
2146 2145
create table periodavoidance (
2147 2146
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2148 2147
  , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
......
2162 2161
  on periodavoidance(FieldNo);
2163 2162

  
2164 2163
-- ?S??????F?f?[?^
2165
-- BackupToTempTable
2164
--* BackupToTempTable
2166 2165
drop table if exists personapproval cascade;
2167 2166

  
2168
-- RestoreFromTempTable
2167
--* RestoreFromTempTable
2169 2168
create table personapproval (
2170 2169
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2171 2170
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
2198 2197
  on personapproval(PersonCodeApproval);
2199 2198

  
2200 2199
-- ?S??????F?R?????g?f?[?^
2201
-- BackupToTempTable
2200
--* BackupToTempTable
2202 2201
drop table if exists personapprovalcomment cascade;
2203 2202

  
2204
-- RestoreFromTempTable
2203
--* RestoreFromTempTable
2205 2204
create table personapprovalcomment (
2206 2205
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2207 2206
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
2216 2215
) comment '?S??????F?R?????g?f?[?^' ;
2217 2216

  
2218 2217
-- ?S??????????}?X?^
2219
-- BackupToTempTable
2218
--* BackupToTempTable
2220 2219
drop table if exists persondepartmentmaster cascade;
2221 2220

  
2222
-- RestoreFromTempTable
2221
--* RestoreFromTempTable
2223 2222
create table persondepartmentmaster (
2224 2223
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2225 2224
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
......
2236 2235
  on persondepartmentmaster(DepartmentCode);
2237 2236

  
2238 2237
-- ?S????}?X?^
2239
-- BackupToTempTable
2238
--* BackupToTempTable
2240 2239
drop table if exists personinchargemaster cascade;
2241 2240

  
2242
-- RestoreFromTempTable
2241
--* RestoreFromTempTable
2243 2242
create table personinchargemaster (
2244 2243
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2245 2244
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
......
2288 2287
  on personinchargemaster(DepartmentCode);
2289 2288

  
2290 2289
-- ?S??????i?f?[?^
2291
-- BackupToTempTable
2290
--* BackupToTempTable
2292 2291
drop table if exists personqualification cascade;
2293 2292

  
2294
-- RestoreFromTempTable
2293
--* RestoreFromTempTable
2295 2294
create table personqualification (
2296 2295
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2297 2296
  , SeqNo decimal(3,0) unsigned not null comment '?f?[?^????'
......
2306 2305
) comment '?S??????i?f?[?^' ;
2307 2306

  
2308 2307
-- ?S??????^?}?X?^
2309
-- BackupToTempTable
2308
--* BackupToTempTable
2310 2309
drop table if exists personsalarymaster cascade;
2311 2310

  
2312
-- RestoreFromTempTable
2311
--* RestoreFromTempTable
2313 2312
create table personsalarymaster (
2314 2313
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2315 2314
  , StartDate date not null comment '?g?p?J?n?N????'
......
2330 2329
  on personsalarymaster(MonthlySalary);
2331 2330

  
2332 2331
-- ?w???????f?[?^
2333
-- BackupToTempTable
2332
--* BackupToTempTable
2334 2333
drop table if exists pointingoutcomment cascade;
2335 2334

  
2336
-- RestoreFromTempTable
2335
--* RestoreFromTempTable
2337 2336
create table pointingoutcomment (
2338 2337
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
2339 2338
  , ProcessNo smallint(6) not null comment '????????i??????j'
......
2354 2353
) comment '?w???????f?[?^' ;
2355 2354

  
2356 2355
-- ?????????????c???^?f?[?^
2357
-- BackupToTempTable
2356
--* BackupToTempTable
2358 2357
drop table if exists proceedingsdata cascade;
2359 2358

  
2360
-- RestoreFromTempTable
2359
--* RestoreFromTempTable
2361 2360
create table proceedingsdata (
2362 2361
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2363 2362
  , ProceedingsDataDate date not null comment '?c???^????'
......
2372 2371
) comment '?????????????c???^?f?[?^' ;
2373 2372

  
2374 2373
-- ?????????????c???^?f?[?^?i?o???j
2375
-- BackupToTempTable
2374
--* BackupToTempTable
2376 2375
drop table if exists proceedingsdataattend cascade;
2377 2376

  
2378
-- RestoreFromTempTable
2377
--* RestoreFromTempTable
2379 2378
create table proceedingsdataattend (
2380 2379
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2381 2380
  , ProceedingsDataDate date not null comment '?c???^????'
......
2389 2388
) comment '?????????????c???^?f?[?^?i?o???j' ;
2390 2389

  
2391 2390
-- ?????????????c???^?f?[?^?i????j
2392
-- BackupToTempTable
2391
--* BackupToTempTable
2393 2392
drop table if exists proceedingsdatadetail cascade;
2394 2393

  
2395
-- RestoreFromTempTable
2394
--* RestoreFromTempTable
2396 2395
create table proceedingsdatadetail (
2397 2396
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2398 2397
  , ProceedingsDataDate date not null comment '?c???^????'
......
2407 2406
) comment '?????????????c???^?f?[?^?i????j' ;
2408 2407

  
2409 2408
-- ???F?f?[?^
2410
-- BackupToTempTable
2409
--* BackupToTempTable
2411 2410
drop table if exists processapproval cascade;
2412 2411

  
2413
-- RestoreFromTempTable
2412
--* RestoreFromTempTable
2414 2413
create table processapproval (
2415 2414
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2416 2415
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
2427 2426
) comment '???F?f?[?^' ;
2428 2427

  
2429 2428
-- ???F?R?????g?f?[?^
2430
-- BackupToTempTable
2429
--* BackupToTempTable
2431 2430
drop table if exists processapprovalcomment cascade;
2432 2431

  
2433
-- RestoreFromTempTable
2432
--* RestoreFromTempTable
2434 2433
create table processapprovalcomment (
2435 2434
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2436 2435
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
2444 2443
) comment '???F?R?????g?f?[?^' ;
2445 2444

  
2446 2445
-- ???F????f?[?^
2447
-- BackupToTempTable
2446
--* BackupToTempTable
2448 2447
drop table if exists processapprovaldetail cascade;
2449 2448

  
2450
-- RestoreFromTempTable
2449
--* RestoreFromTempTable
2451 2450
create table processapprovaldetail (
2452 2451
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2453 2452
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
......
2460 2459
) comment '???F????f?[?^' ;
2461 2460

  
2462 2461
-- ?N?????}?X?^
2463
-- BackupToTempTable
2462
--* BackupToTempTable
2464 2463
drop table if exists processexcutemaster cascade;
2465 2464

  
2466
-- RestoreFromTempTable
2465
--* RestoreFromTempTable
2467 2466
create table processexcutemaster (
2468 2467
  SecCode decimal(2,0) unsigned not null comment '???????'
2469 2468
  , ExecCode decimal(4,0) unsigned not null comment '?N?????????'
......
2480 2479
  on processexcutemaster(ExecCode);
2481 2480

  
2482 2481
-- ???????f?[?^
2483
-- BackupToTempTable
2482
--* BackupToTempTable
2484 2483
drop table if exists purchaseorder cascade;
2485 2484

  
2486
-- RestoreFromTempTable
2485
--* RestoreFromTempTable
2487 2486
create table purchaseorder (
2488 2487
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2489 2488
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
2515 2514
  , RePrintFlag decimal(1,0) default '0' not null comment '??????\?t???O?i???g?p?j'
2516 2515
  , OrderDate date not null comment '??E?L?????Z???N????'
2517 2516
  , OrderStatus decimal(1,0) default '0' not null comment '????'
2517
  , OrderStDate date not null comment '???H??'
2518
  , OrderEdDate date not null comment '??????'
2518 2519
  , EntryDate datetime not null comment '?o?^???t'
2519 2520
  , UpdateDate datetime not null comment '?X?V???t'
2520 2521
  , constraint purchaseorder_PKC primary key (ConstructionCode,SeqNo)
2521 2522
) comment '???????f?[?^' ;
2522 2523

  
2523 2524
-- ?????????t?f?[?^
2524
-- BackupToTempTable
2525
--* BackupToTempTable
2525 2526
drop table if exists purchaseorderdate cascade;
2526 2527

  
2527
-- RestoreFromTempTable
2528
--* RestoreFromTempTable
2528 2529
create table purchaseorderdate (
2529 2530
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2530 2531
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
2538 2539
) comment '?????????t?f?[?^' ;
2539 2540

  
2540 2541
-- ??????????f?[?^
2541
-- BackupToTempTable
2542
--* BackupToTempTable
2542 2543
drop table if exists purchaseorderdetail cascade;
2543 2544

  
2544
-- RestoreFromTempTable
2545
--* RestoreFromTempTable
2545 2546
create table purchaseorderdetail (
2546 2547
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2547 2548
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
......
2568 2569
  on purchaseorderdetail(SourceCode);
2569 2570

  
2570 2571
-- ???i?}?X?^
2571
-- BackupToTempTable
2572
--* BackupToTempTable
2572 2573
drop table if exists qualificationmaster cascade;
2573 2574

  
2574
-- RestoreFromTempTable
2575
--* RestoreFromTempTable
2575 2576
create table qualificationmaster (
2576 2577
  DCode decimal(5,0) unsigned not null comment '?????'
2577 2578
  , Qcode decimal(5,0) unsigned not null comment '???i?R?[?h'
......
2593 2594
  on qualificationmaster(DisplayOrder);
2594 2595

  
2595 2596
-- ???R?[?h??????
2596
-- BackupToTempTable
2597
--* BackupToTempTable
2597 2598
drop table if exists recordkey cascade;
2598 2599

  
2599
-- RestoreFromTempTable
2600
--* RestoreFromTempTable
2600 2601
create table recordkey (
2601 2602
  KeyNo decimal(2,0) unsigned not null comment '?L?[?R?[?h'
2602 2603
  , RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
......
2606 2607
) comment '???R?[?h??????' ;
2607 2608

  
2608 2609
-- ?????????f?[?^
2609
-- BackupToTempTable
2610
--* BackupToTempTable
2610 2611
drop table if exists reminvoicedata cascade;
2611 2612

  
2612
-- RestoreFromTempTable
2613
--* RestoreFromTempTable
2613 2614
create table reminvoicedata (
2614 2615
  InvoiceNo decimal(9,0) not null comment '??????No'
2615 2616
  , RemPerson decimal(8,0) not null comment '???S????R?[?h'
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

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