h-you / trunk / ddl / ProcessManagement.sql @ 468
履歴 | 表示 | アノテート | ダウンロード (146 KB)
| 1 |
-- Project Name : noname
|
|---|---|
| 2 |
-- Date/Time : 2019/12/07 16:08:48
|
| 3 |
-- Author : Horiuchi
|
| 4 |
-- RDBMS Type : MySQL
|
| 5 |
-- Application : A5:SQL Mk-2
|
| 6 |
|
| 7 |
/*
|
| 8 |
BackupToTempTable, RestoreFromTempTable?^????????t????????????B
|
| 9 |
???????Adrop table, create table ????f?[?^???c?????B
|
| 10 |
????@?\????I?? $$TableName ???????e?[?u????????????B
|
| 11 |
*/
|
| 12 |
|
| 13 |
-- ?S????s???\??f?[?^
|
| 14 |
--* BackupToTempTable
|
| 15 |
drop table if exists actionscheduledata cascade; |
| 16 |
|
| 17 |
--* RestoreFromTempTable
|
| 18 |
create table actionscheduledata ( |
| 19 |
TargetDate date not null comment '????' |
| 20 |
, PersonCode decimal(8,0) not null comment '?S????R?[?h' |
| 21 |
, ActionSchedule varchar(30) comment '?s???\??' |
| 22 |
, TargetYear year(4) not null comment '?Y???N' |
| 23 |
, TargetMonth year(4) not null comment '?Y????' |
| 24 |
, TargetDay year(4) not null comment '?Y????' |
| 25 |
, EntryDate datetime not null comment '?o?^???t' |
| 26 |
, UpdateDate datetime not null comment '?X?V???t' |
| 27 |
, constraint actionscheduledata_PKC primary key (TargetDate,PersonCode) |
| 28 |
) comment '?S????s???\??f?[?^' ; |
| 29 |
|
| 30 |
create index ActionScheduleData_Index1 |
| 31 |
on actionscheduledata(TargetYear);
|
| 32 |
|
| 33 |
create index ActionScheduleData_Index2 |
| 34 |
on actionscheduledata(TargetMonth);
|
| 35 |
|
| 36 |
create index ActionScheduleData_Index3 |
| 37 |
on actionscheduledata(TargetDay);
|
| 38 |
|
| 39 |
-- ???F?o?H?}?X?^
|
| 40 |
--* BackupToTempTable
|
| 41 |
drop table if exists approvalmaster cascade; |
| 42 |
|
| 43 |
--* RestoreFromTempTable
|
| 44 |
create table approvalmaster ( |
| 45 |
ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
| 46 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 47 |
, SeqNo decimal(2,0) not null comment '?}??' |
| 48 |
, DisplayOrder decimal(2,0) not null comment '?\????' |
| 49 |
, ApprovalPerson decimal(8,0) unsigned not null comment '???F??R?[?h' |
| 50 |
, ApprovalAuthority decimal(1,0) not null comment '???F??????' |
| 51 |
, EntryDate datetime not null comment '?o?^???t' |
| 52 |
, UpdateDate datetime not null comment '?X?V???t' |
| 53 |
, constraint approvalmaster_PKC primary key (ApprovalCode,DepartmentCode,SeqNo) |
| 54 |
) comment '???F?o?H?}?X?^' ; |
| 55 |
|
| 56 |
-- ?o?????f?[?^
|
| 57 |
--* BackupToTempTable
|
| 58 |
drop table if exists attendancedailydata cascade; |
| 59 |
|
| 60 |
--* RestoreFromTempTable
|
| 61 |
create table attendancedailydata ( |
| 62 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 63 |
, AttendanceDate date not null comment '???????' |
| 64 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 65 |
, ConstructionCode decimal(10,0) not null comment '?H???R?[?h' |
| 66 |
, ActionResult varchar(100) not null comment '?s??????' |
| 67 |
, StartTime datetime comment '?J?n????' |
| 68 |
, CompTime datetime comment '?I??????' |
| 69 |
, DayTimes decimal(5,2) not null comment '???????' |
| 70 |
, Overtime decimal(5,2) not null comment '????O?A??' |
| 71 |
, OvertimeWA decimal(5,2) not null comment '?c??F?????' |
| 72 |
, WorkingComment varchar(120) comment '?R?????g' |
| 73 |
, WorkKindFlg decimal(2,0) not null comment '?????t???O' |
| 74 |
, EntryDate datetime not null comment '?o?^???t' |
| 75 |
, UpdateDate datetime not null comment '?X?V???t' |
| 76 |
, constraint attendancedailydata_PKC primary key (PersonCode,AttendanceDate,SeqNo) |
| 77 |
) comment '?o?????f?[?^' ; |
| 78 |
|
| 79 |
create index AttendDaily_Index1 |
| 80 |
on attendancedailydata(ConstructionCode);
|
| 81 |
|
| 82 |
create index AttendDaily_Index2 |
| 83 |
on attendancedailydata(AttendanceDate);
|
| 84 |
|
| 85 |
-- ?o?????f?[?^
|
| 86 |
--* BackupToTempTable
|
| 87 |
drop table if exists attendancedata cascade; |
| 88 |
|
| 89 |
--* RestoreFromTempTable
|
| 90 |
create table attendancedata ( |
| 91 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 92 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??' |
| 93 |
, LastDays decimal(2,0) unsigned not null comment '??????I??' |
| 94 |
, AttendDayCount decimal(2,0) unsigned not null comment '?o?????' |
| 95 |
, NormalTimes decimal(5,2) not null comment '??????????' |
| 96 |
, OutEarlyTimes decimal(5,2) not null comment '???o?????' |
| 97 |
, OverTimes decimal(5,2) not null comment '?c??????' |
| 98 |
, HolidayWorkTimes decimal(5,2) not null comment '?x???o??????' |
| 99 |
, TransferHolidayTimes decimal(5,2) not null comment '?U??x????' |
| 100 |
, CompensatoryHolidayTimes decimal(5,2) not null comment '??x??' |
| 101 |
, PaidHolidaysTimes decimal(5,2) not null comment '?L???x???' |
| 102 |
, AbsenceTimes decimal(5,2) not null comment '????????' |
| 103 |
, LateTimes decimal(5,2) not null comment '?x???????' |
| 104 |
, LeaveEarlyTimes decimal(5,2) not null comment '????????' |
| 105 |
, GoOutTimes decimal(5,2) not null comment '?O?o?????' |
| 106 |
, OrderDate decimal(6,0) unsigned not null comment '?\????' |
| 107 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 108 |
, EntryDate datetime not null comment '?o?^???t' |
| 109 |
, UpdateDate datetime not null comment '?X?V???t' |
| 110 |
, constraint attendancedata_PKC primary key (PersonCode,AttendanceMonth) |
| 111 |
) comment '?o?????f?[?^' ; |
| 112 |
|
| 113 |
-- ????o?f?[?^
|
| 114 |
--* BackupToTempTable
|
| 115 |
drop table if exists attendancenotice cascade; |
| 116 |
|
| 117 |
--* RestoreFromTempTable
|
| 118 |
create table attendancenotice ( |
| 119 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 120 |
, AttendanceNo decimal(2,0) unsigned not null comment '????' |
| 121 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??' |
| 122 |
, OrderNo decimal(3,0) unsigned not null comment '????' |
| 123 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 124 |
, HolidayReason decimal(1,0) unsigned not null comment '?x???' |
| 125 |
, FromDate datetime not null comment '?J?n????' |
| 126 |
, ToDate datetime not null comment '?I??????' |
| 127 |
, NoticePeriod decimal(5,2) unsigned not null comment '???????' |
| 128 |
, TransferDay datetime not null comment '?U???' |
| 129 |
, Reason varchar(300) comment '???R' |
| 130 |
, Note varchar(300) comment '???l' |
| 131 |
, ApprovalDate decimal(6,0) unsigned not null comment '???F??' |
| 132 |
, ApprovalNo decimal(2,0) unsigned not null comment '???F??t???' |
| 133 |
, DeleteFlg decimal(1,0) unsigned not null comment '???t???O' |
| 134 |
, EntryDate datetime not null comment '?o?^???t' |
| 135 |
, UpdateDate datetime not null comment '?X?V???t' |
| 136 |
, constraint attendancenotice_PKC primary key (PersonCode,AttendanceNo,AttendanceMonth,OrderNo) |
| 137 |
) comment '????o?f?[?^' ; |
| 138 |
|
| 139 |
-- ????o?R?t???f?[?^
|
| 140 |
--* BackupToTempTable
|
| 141 |
drop table if exists attendancenoticelink cascade; |
| 142 |
|
| 143 |
--* RestoreFromTempTable
|
| 144 |
create table attendancenoticelink ( |
| 145 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 146 |
, AttendanceNo decimal(2,0) unsigned not null comment '????' |
| 147 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??' |
| 148 |
, OrderNo decimal(3,0) unsigned not null comment '????' |
| 149 |
, DailyDate date not null comment '???????' |
| 150 |
, SeqNo decimal(3,0) unsigned not null comment '?????s???' |
| 151 |
, EntryDate datetime not null comment '?o?^???t' |
| 152 |
, UpdateDate datetime not null comment '?X?V???t' |
| 153 |
, constraint attendancenoticelink_PKC primary key (PersonCode,AttendanceNo,AttendanceMonth,OrderNo,DailyDate,SeqNo) |
| 154 |
) comment '????o?R?t???f?[?^' ; |
| 155 |
|
| 156 |
create index AttendanceNoticeLink_Index1 |
| 157 |
on attendancenoticelink(PersonCode);
|
| 158 |
|
| 159 |
create index AttendanceNoticeLink_Index2 |
| 160 |
on attendancenoticelink(AttendanceNo);
|
| 161 |
|
| 162 |
create index AttendanceNoticeLink_Index3 |
| 163 |
on attendancenoticelink(AttendanceMonth);
|
| 164 |
|
| 165 |
create index AttendanceNoticeLink_Index4 |
| 166 |
on attendancenoticelink(OrderNo);
|
| 167 |
|
| 168 |
create index AttendanceNoticeLink_Index5 |
| 169 |
on attendancenoticelink(DailyDate);
|
| 170 |
|
| 171 |
create index AttendanceNoticeLink_Index6 |
| 172 |
on attendancenoticelink(SeqNo);
|
| 173 |
|
| 174 |
-- ????o?H???f?[?^
|
| 175 |
--* BackupToTempTable
|
| 176 |
drop table if exists attnoticeconstrction cascade; |
| 177 |
|
| 178 |
--* RestoreFromTempTable
|
| 179 |
create table attnoticeconstrction ( |
| 180 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 181 |
, AttendanceNo decimal(2,0) unsigned not null comment '????' |
| 182 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??' |
| 183 |
, OrderNo decimal(3,0) unsigned not null comment '????' |
| 184 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 185 |
, ConstructionName varchar(300) comment '?H??????' |
| 186 |
, EntryDate datetime not null comment '?o?^???t' |
| 187 |
, UpdateDate datetime not null comment '?X?V???t' |
| 188 |
, constraint attnoticeconstrction_PKC primary key (PersonCode,AttendanceNo,AttendanceMonth,OrderNo) |
| 189 |
) comment '????o?H???f?[?^' ; |
| 190 |
|
| 191 |
-- ?L???x??????R?t?f?[?^
|
| 192 |
--* BackupToTempTable
|
| 193 |
drop table if exists attnpaidholidyalink cascade; |
| 194 |
|
| 195 |
--* RestoreFromTempTable
|
| 196 |
create table attnpaidholidyalink ( |
| 197 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 198 |
, AttendanceNo decimal(2,0) unsigned not null comment '????' |
| 199 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??' |
| 200 |
, OrderNo decimal(3,0) unsigned not null comment '????' |
| 201 |
, PreviousYear decimal(3,1) not null comment '?O?N?x?L??????' |
| 202 |
, CurrentYear decimal(3,1) not null comment '???N?x?L??????' |
| 203 |
, Completed decimal(1,0) unsigned not null comment '?????????t???O' |
| 204 |
, EntryDate datetime not null comment '?o?^???t' |
| 205 |
, UpdateDate datetime not null comment '?X?V???t' |
| 206 |
, constraint attnpaidholidyalink_PKC primary key (PersonCode,AttendanceNo,AttendanceMonth,OrderNo) |
| 207 |
) comment '?L???x??????R?t?f?[?^' ; |
| 208 |
|
| 209 |
-- ??s?c????}?X?^
|
| 210 |
--* BackupToTempTable
|
| 211 |
drop table if exists bankbusinessdaymaster cascade; |
| 212 |
|
| 213 |
--* RestoreFromTempTable
|
| 214 |
create table bankbusinessdaymaster ( |
| 215 |
YEARMONTH decimal(6,0) default '0' not null comment '?N??' |
| 216 |
, BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???' |
| 217 |
, NOTE varchar(120) comment '???l' |
| 218 |
, DELETEFLG decimal(1,0) comment '???t???O' |
| 219 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 220 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 221 |
, constraint bankbusinessdaymaster_PKC primary key (YEARMONTH,BANKBUSINESSDAY) |
| 222 |
) comment '??s?c????}?X?^' ; |
| 223 |
|
| 224 |
-- ???????f?[?^
|
| 225 |
--* BackupToTempTable
|
| 226 |
drop table if exists billingdata cascade; |
| 227 |
|
| 228 |
--* RestoreFromTempTable
|
| 229 |
create table billingdata ( |
| 230 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 231 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| 232 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
| 233 |
, BILLPRICE decimal(10,0) comment '???????z' |
| 234 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 235 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 236 |
, constraint billingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO) |
| 237 |
) comment '???????f?[?^' ; |
| 238 |
|
| 239 |
-- ??????????f?[?^
|
| 240 |
--* BackupToTempTable
|
| 241 |
drop table if exists billingdatadetail cascade; |
| 242 |
|
| 243 |
--* RestoreFromTempTable
|
| 244 |
create table billingdatadetail ( |
| 245 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 246 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| 247 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
| 248 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???' |
| 249 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????' |
| 250 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????' |
| 251 |
, CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '????????' |
| 252 |
, CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '??????' |
| 253 |
, LinkDataType decimal(1,0) not null comment '??A?t???f?[?^?^?C?v' |
| 254 |
, FIELDNAME varchar(120) comment '????' |
| 255 |
, BILLPRICE decimal(10,0) comment '???????z' |
| 256 |
, HIGHWPRICE decimal(10,0) comment '??????' |
| 257 |
, HARDWPRICE decimal(10,0) comment '??????' |
| 258 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??' |
| 259 |
, OverFlg decimal(1,0) comment '?x??????t???O' |
| 260 |
, NOTE varchar(120) comment '???l' |
| 261 |
, DELETEFLG decimal(1,0) comment '???t???O' |
| 262 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 263 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 264 |
, constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,LABOURKIND) |
| 265 |
) comment '??????????f?[?^' ; |
| 266 |
|
| 267 |
create index billingdatadetail_Index1 |
| 268 |
on billingdatadetail(COMPANYCODE);
|
| 269 |
|
| 270 |
create index billingdatadetail_Index2 |
| 271 |
on billingdatadetail(TARGETDATE);
|
| 272 |
|
| 273 |
create index billingdatadetail_Index3 |
| 274 |
on billingdatadetail(SEQNO);
|
| 275 |
|
| 276 |
create index billingdatadetail_Index4 |
| 277 |
on billingdatadetail(LINECOUNT);
|
| 278 |
|
| 279 |
create index billingdatadetail_Index5 |
| 280 |
on billingdatadetail(LABOURKIND);
|
| 281 |
|
| 282 |
create index billingdatadetail_Index6 |
| 283 |
on billingdatadetail(CONSTRUCTIONCODE);
|
| 284 |
|
| 285 |
create index billingdatadetail_Index7 |
| 286 |
on billingdatadetail(CONSTRUCTIONROWCNT);
|
| 287 |
|
| 288 |
create index billingdatadetail_Index8 |
| 289 |
on billingdatadetail(CONSTRUCTIONCOLCNT);
|
| 290 |
|
| 291 |
-- ???????x???T?}???[?f?[?^
|
| 292 |
--* BackupToTempTable
|
| 293 |
drop table if exists billingpaymentsummary cascade; |
| 294 |
|
| 295 |
--* RestoreFromTempTable
|
| 296 |
create table billingpaymentsummary ( |
| 297 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 298 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| 299 |
, CHARGEPAYMENTKIND decimal(1,0) default '0' not null comment '?????x????' |
| 300 |
, PAYDAY date comment '?x????' |
| 301 |
, BILLPRICESTOTAL decimal(10,0) comment '???????z???v' |
| 302 |
, CONSUMPTIONTAXRATE decimal(6,3) comment '??????' |
| 303 |
, CONSUMPTIONTAXPRICE decimal(10,0) comment '?????z' |
| 304 |
, HIGHWPRICESTOTAL decimal(10,0) comment '???????v' |
| 305 |
, HARDWPRICESTOTAL decimal(10,0) comment '???????v' |
| 306 |
, INDSWASTETAXSTOTAL decimal(10,0) comment '?Y?p????v' |
| 307 |
, CNSTRPRICERATE decimal(6,3) comment '???????' |
| 308 |
, CNSTRPRICESTOTAL decimal(10,0) comment '????????v' |
| 309 |
, BILLINGPRICETOTAL decimal(10,0) comment '???????z???v' |
| 310 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 311 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 312 |
, constraint billingpaymentsummary_PKC primary key (COMPANYCODE,TARGETDATE,CHARGEPAYMENTKIND) |
| 313 |
) comment '???????x???T?}???[?f?[?^' ; |
| 314 |
|
| 315 |
-- ?^?c?????????
|
| 316 |
--* BackupToTempTable
|
| 317 |
drop table if exists bizperiodhistory cascade; |
| 318 |
|
| 319 |
--* RestoreFromTempTable
|
| 320 |
create table bizperiodhistory ( |
| 321 |
PeriodYear smallint(6) not null comment '?c??????E?H???N?x' |
| 322 |
, PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O' |
| 323 |
, BeginDate datetime not null comment '?????' |
| 324 |
, CompleteDate datetime not null comment '??????' |
| 325 |
, EntryDate datetime not null comment '?o?^???t' |
| 326 |
, UpdateDate datetime not null comment '?X?V???t' |
| 327 |
, constraint bizperiodhistory_PKC primary key (PeriodYear,PeriodFlag) |
| 328 |
) comment '?^?c?????????' ; |
| 329 |
|
| 330 |
-- ?H???????f?[?^?y???p?z
|
| 331 |
--* BackupToTempTable
|
| 332 |
drop table if exists bk_constructionledger cascade; |
| 333 |
|
| 334 |
--* RestoreFromTempTable
|
| 335 |
create table bk_constructionledger ( |
| 336 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 337 |
, ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
| 338 |
, CreatorCode decimal(8,0) comment '????R?[?h' |
| 339 |
, CreatorName varchar(60) comment '?????' |
| 340 |
, CreateDate date not null comment '????' |
| 341 |
, ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
| 342 |
, ConstructionStart date not null comment '?_??H???J?n' |
| 343 |
, ConstructionEnd date not null comment '?_??H??????' |
| 344 |
, OrdersDecisionPrice decimal(14,0) not null comment '??????????z' |
| 345 |
, CompanyExpenses decimal(10,0) not null comment '???o???v' |
| 346 |
, DepartmentExpenses decimal(10,0) not null comment '?????o???v' |
| 347 |
, SalesExpenses decimal(10,0) not null comment '?c??o???v' |
| 348 |
, TotalPayment decimal(10,0) not null comment '???x???z' |
| 349 |
, GrossProfit decimal(10,0) not null comment '?e??' |
| 350 |
, Allowance decimal(10,0) not null comment '???^' |
| 351 |
, NetProfit decimal(10,0) not null comment '?????v' |
| 352 |
, ComplateFlg decimal(1,0) not null comment '????????t???O' |
| 353 |
, IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O' |
| 354 |
, EntryDate datetime not null comment '?o?^???t' |
| 355 |
, UpdateDate datetime not null comment '?X?V???t' |
| 356 |
, constraint bk_constructionledger_PKC primary key (ConstructionCode) |
| 357 |
) comment '?H???????f?[?^?y???p?z' ; |
| 358 |
|
| 359 |
-- ?H??????????f?[?^?y???p?z
|
| 360 |
--* BackupToTempTable
|
| 361 |
drop table if exists bk_constructionledgerdetail cascade; |
| 362 |
|
| 363 |
--* RestoreFromTempTable
|
| 364 |
create table bk_constructionledgerdetail ( |
| 365 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 366 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 367 |
, LineCount decimal(4,0) unsigned not null comment '?s???' |
| 368 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 369 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 370 |
, FirstString varchar(120) comment '???????' |
| 371 |
, SecondString varchar(120) comment '?H?????e' |
| 372 |
, CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
| 373 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 374 |
, CompanyName varchar(120) comment '?????????' |
| 375 |
, EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z' |
| 376 |
, ExecutionAmount decimal(12,0) not null comment '???s???z' |
| 377 |
, AmountConfigRate decimal(5,2) not null comment '???z?\????' |
| 378 |
, PaymentBurden decimal(12,0) not null comment '?x????U?z' |
| 379 |
, FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O' |
| 380 |
, IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O' |
| 381 |
, FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O' |
| 382 |
, SalaryFlg decimal(1,0) not null comment '???^?U????' |
| 383 |
, SalaryDays decimal(4,0) not null comment '???^?U??????' |
| 384 |
, OperatingFlg decimal(1,0) not null comment '?S?????t???O' |
| 385 |
, SourceCode decimal(10,0) unsigned not null comment '???H?????' |
| 386 |
, JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??' |
| 387 |
, SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
| 388 |
, PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O' |
| 389 |
, DetailCount decimal(4,0) unsigned not null comment '??????' |
| 390 |
, InvalidLine decimal(1,0) not null comment '?????s' |
| 391 |
, EntryDate datetime not null comment '?o?^???t' |
| 392 |
, UpdateDate datetime not null comment '?X?V???t' |
| 393 |
, constraint bk_constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 394 |
) comment '?H??????????f?[?^?y???p?z' ; |
| 395 |
|
| 396 |
-- ?H?????????s?f?[?^?y???p?z
|
| 397 |
--* BackupToTempTable
|
| 398 |
drop table if exists bk_constructionledgerexcute cascade; |
| 399 |
|
| 400 |
--* RestoreFromTempTable
|
| 401 |
create table bk_constructionledgerexcute ( |
| 402 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 403 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 404 |
, LineCount decimal(5,0) unsigned not null comment '?s???' |
| 405 |
, ColumnCount decimal(3,0) not null comment '????' |
| 406 |
, PaymentAmount decimal(12,0) not null comment '?x?????z' |
| 407 |
, TargetMonth date not null comment '???N??' |
| 408 |
, EntryDate datetime not null comment '?o?^???t' |
| 409 |
, UpdateDate datetime not null comment '?X?V???t' |
| 410 |
, constraint bk_constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount) |
| 411 |
) comment '?H?????????s?f?[?^?y???p?z' ; |
| 412 |
|
| 413 |
-- ??Z????f?[?^?y???p?z
|
| 414 |
--* BackupToTempTable
|
| 415 |
drop table if exists bk_estimatedata cascade; |
| 416 |
|
| 417 |
--* RestoreFromTempTable
|
| 418 |
create table bk_estimatedata ( |
| 419 |
SaveDate datetime not null comment '?????t' |
| 420 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 421 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| 422 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 423 |
, FixedItemCode varchar(1) comment '?????L?[' |
| 424 |
, ItemName varchar(120) comment '??????' |
| 425 |
, SpecName varchar(120) comment '???^?i???E?`??E???@' |
| 426 |
, PriceValue decimal(14,0) not null comment '???z' |
| 427 |
, note varchar(60) comment '???l' |
| 428 |
, MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
| 429 |
, InputFlg decimal(1,0) not null comment '????t???O' |
| 430 |
, EntryDate datetime not null comment '?o?^???t' |
| 431 |
, UpdateDate datetime not null comment '?X?V???t' |
| 432 |
, constraint bk_estimatedata_PKC primary key (SaveDate,ConstructionCode,LineCount) |
| 433 |
) comment '??Z????f?[?^?y???p?z' ; |
| 434 |
|
| 435 |
-- ??Z????y?[?W?f?[?^?y???p?z
|
| 436 |
--* BackupToTempTable
|
| 437 |
drop table if exists bk_estimatedatabody cascade; |
| 438 |
|
| 439 |
--* RestoreFromTempTable
|
| 440 |
create table bk_estimatedatabody ( |
| 441 |
SaveDate datetime not null comment '?????t' |
| 442 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 443 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| 444 |
, Category decimal(1,0) not null comment '?y?[?W??' |
| 445 |
, UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?[' |
| 446 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 447 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 448 |
, SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?[' |
| 449 |
, PageTitle varchar(120) not null comment '?y?[?W?\????' |
| 450 |
, DetailLineCount decimal(3,0) unsigned not null comment '????s???' |
| 451 |
, EntryDate datetime not null comment '?o?^???t' |
| 452 |
, UpdateDate datetime not null comment '?X?V???t' |
| 453 |
, constraint bk_estimatedatabody_PKC primary key (SaveDate,ConstructionCode,PageCount) |
| 454 |
) comment '??Z????y?[?W?f?[?^?y???p?z' ; |
| 455 |
|
| 456 |
-- ??Z????f?[?^????y???p?z
|
| 457 |
--* BackupToTempTable
|
| 458 |
drop table if exists bk_estimatedatadetail cascade; |
| 459 |
|
| 460 |
--* RestoreFromTempTable
|
| 461 |
create table bk_estimatedatadetail ( |
| 462 |
SaveDate datetime not null comment '?????t' |
| 463 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 464 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| 465 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| 466 |
, DataType decimal(1,0) not null comment '?f?[?^???' |
| 467 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 468 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 469 |
, SpecCode decimal(5,0) unsigned not null comment '???L?[' |
| 470 |
, ItemName varchar(120) comment '??????' |
| 471 |
, SpecName varchar(120) comment '???^?i???E?`??E???@' |
| 472 |
, Unitcount decimal(8,2) not null comment '????' |
| 473 |
, UnitName varchar(30) comment '?P?????' |
| 474 |
, UnitPrice decimal(9,2) not null comment '?P??' |
| 475 |
, LineTotal decimal(12,0) not null comment '???z' |
| 476 |
, note varchar(60) comment '???l' |
| 477 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 478 |
, MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
| 479 |
, InputFlg decimal(1,0) comment '????t???O' |
| 480 |
, EntryDate datetime not null comment '?o?^???t' |
| 481 |
, UpdateDate datetime not null comment '?X?V???t' |
| 482 |
, constraint bk_estimatedatadetail_PKC primary key (SaveDate,ConstructionCode,PageCount,LineCount) |
| 483 |
) comment '??Z????f?[?^????y???p?z' ; |
| 484 |
|
| 485 |
-- ?\?Z???W?v?R?[?h?}?X?^
|
| 486 |
--* BackupToTempTable
|
| 487 |
drop table if exists budgetsumcode cascade; |
| 488 |
|
| 489 |
--* RestoreFromTempTable
|
| 490 |
create table budgetsumcode ( |
| 491 |
BlockCode decimal(2,0) unsigned not null comment '?u???b?N???' |
| 492 |
, GroupCode decimal(2,0) unsigned not null comment '?O???[?v???' |
| 493 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 494 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 495 |
, ElementsName varchar(100) not null comment '?v?f????' |
| 496 |
, EntryDate datetime not null comment '?o?^???t' |
| 497 |
, UpdateDate datetime not null comment '?X?V???t' |
| 498 |
, constraint budgetsumcode_PKC primary key (BlockCode,GroupCode,ComponentCode,ItemCode) |
| 499 |
) comment '?\?Z???W?v?R?[?h?}?X?^' ; |
| 500 |
|
| 501 |
-- ?@?l?i?}?X?^
|
| 502 |
--* BackupToTempTable
|
| 503 |
drop table if exists businesstypemaster cascade; |
| 504 |
|
| 505 |
--* RestoreFromTempTable
|
| 506 |
create table businesstypemaster ( |
| 507 |
BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h' |
| 508 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 509 |
, BusinessTypeName varchar(100) not null comment '???' |
| 510 |
, EntryDate datetime not null comment '?o?^???t' |
| 511 |
, UpdateDate datetime not null comment '?X?V???t' |
| 512 |
, constraint businesstypemaster_PKC primary key (BusinessTypeCode) |
| 513 |
) comment '?@?l?i?}?X?^' ; |
| 514 |
|
| 515 |
create index BusinessTypeMaster_Index1 |
| 516 |
on businesstypemaster(DisplayOrder);
|
| 517 |
|
| 518 |
-- ?S????????????f?[?^
|
| 519 |
--* BackupToTempTable
|
| 520 |
drop table if exists chgchargedep cascade; |
| 521 |
|
| 522 |
--* RestoreFromTempTable
|
| 523 |
create table chgchargedep ( |
| 524 |
PersonCode decimal(8,0) not null comment '?S????R?[?h' |
| 525 |
, StartDate date not null comment '?J?n?N????' |
| 526 |
, CompDate date not null comment '?I???N????' |
| 527 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 528 |
, DepartmentName varchar(60) comment '??????' |
| 529 |
, EntryDate datetime not null comment '?o?^???t' |
| 530 |
, UpdateDate datetime not null comment '?X?V???t' |
| 531 |
, constraint chgchargedep_PKC primary key (PersonCode,StartDate) |
| 532 |
) comment '?S????????????f?[?^' ; |
| 533 |
|
| 534 |
-- ?H???S????X?????f?[?^
|
| 535 |
--* BackupToTempTable
|
| 536 |
drop table if exists chgconstrcharge cascade; |
| 537 |
|
| 538 |
--* RestoreFromTempTable
|
| 539 |
create table chgconstrcharge ( |
| 540 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 541 |
, Division decimal(1,0) not null comment '????' |
| 542 |
, SeqNo smallint(5) unsigned not null comment '?A??' |
| 543 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 544 |
, PersonCode decimal(8,0) not null comment '?S????R?[?h' |
| 545 |
, StartDate date comment '?S???J?n?N????' |
| 546 |
, CompDate date comment '?S???I???N????' |
| 547 |
, SourceCode decimal(10,0) unsigned not null comment '???H???R?[?h' |
| 548 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 549 |
, EntryDate datetime not null comment '?o?^???t' |
| 550 |
, UpdateDate datetime not null comment '?X?V???t' |
| 551 |
, constraint chgconstrcharge_PKC primary key (ConstructionCode,Division,SeqNo) |
| 552 |
) comment '?H???S????X?????f?[?^' ; |
| 553 |
|
| 554 |
-- Web-EDI??????f?[?^
|
| 555 |
--* BackupToTempTable
|
| 556 |
drop table if exists closingdateofmonth cascade; |
| 557 |
|
| 558 |
--* RestoreFromTempTable
|
| 559 |
create table closingdateofmonth ( |
| 560 |
TARGETDATE decimal(6,0) unsigned default '0' not null comment '???N??' |
| 561 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
| 562 |
, StartDate date comment '????J?n??' |
| 563 |
, CompDate date comment '?????????' |
| 564 |
, PayPlansDate date comment '?x???\???' |
| 565 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 566 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 567 |
, constraint closingdateofmonth_PKC primary key (TARGETDATE,SEQNO) |
| 568 |
) comment 'Web-EDI??????f?[?^' ; |
| 569 |
|
| 570 |
-- ????????}?X?^
|
| 571 |
--* BackupToTempTable
|
| 572 |
drop table if exists commoncostlarge cascade; |
| 573 |
|
| 574 |
--* RestoreFromTempTable
|
| 575 |
create table commoncostlarge ( |
| 576 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 577 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 578 |
, LargeName varchar(50) not null comment '???????' |
| 579 |
, CommentText varchar(120) comment '????????' |
| 580 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 581 |
, EntryDate datetime not null comment '?o?^???t' |
| 582 |
, UpdateDate datetime not null comment '?X?V???t' |
| 583 |
, constraint commoncostlarge_PKC primary key (LargeCode) |
| 584 |
) comment '????????}?X?^' ; |
| 585 |
|
| 586 |
-- ?????H???A?}?X?^
|
| 587 |
--* BackupToTempTable
|
| 588 |
drop table if exists commoncostlinkms cascade; |
| 589 |
|
| 590 |
--* RestoreFromTempTable
|
| 591 |
create table commoncostlinkms ( |
| 592 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 593 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| 594 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 595 |
, EntryDate datetime comment '?o?^???t' |
| 596 |
, UpdateDate datetime comment '?X?V???t' |
| 597 |
, constraint commoncostlinkms_PKC primary key (LargeCode,MiddleCode,ItemCode) |
| 598 |
) comment '?????H???A?}?X?^' ; |
| 599 |
|
| 600 |
-- ?????????}?X?^
|
| 601 |
--* BackupToTempTable
|
| 602 |
drop table if exists commoncostmiddle cascade; |
| 603 |
|
| 604 |
--* RestoreFromTempTable
|
| 605 |
create table commoncostmiddle ( |
| 606 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 607 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| 608 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 609 |
, MiddleName varchar(50) not null comment '?????????' |
| 610 |
, CommentText varchar(120) comment '????????' |
| 611 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 612 |
, EntryDate datetime not null comment '?o?^???t' |
| 613 |
, UpdateDate datetime not null comment '?X?V???t' |
| 614 |
, constraint commoncostmiddle_PKC primary key (LargeCode,MiddleCode) |
| 615 |
) comment '?????????}?X?^' ; |
| 616 |
|
| 617 |
-- ?????????L?[?}?X?^
|
| 618 |
--* BackupToTempTable
|
| 619 |
drop table if exists commoncostmiddlesearchword cascade; |
| 620 |
|
| 621 |
--* RestoreFromTempTable
|
| 622 |
create table commoncostmiddlesearchword ( |
| 623 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 624 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| 625 |
, SeqNo decimal(5,0) unsigned not null comment '????' |
| 626 |
, SearchWord varchar(50) not null comment '????????' |
| 627 |
, EntryDate datetime not null comment '?o?^???t' |
| 628 |
, UpdateDate datetime not null comment '?X?V???t' |
| 629 |
, constraint commoncostmiddlesearchword_PKC primary key (LargeCode,MiddleCode,SeqNo) |
| 630 |
) comment '?????????L?[?}?X?^' ; |
| 631 |
|
| 632 |
-- ?\???H???A?}?X?^
|
| 633 |
--* BackupToTempTable
|
| 634 |
drop table if exists componentlinkmaster cascade; |
| 635 |
|
| 636 |
--* RestoreFromTempTable
|
| 637 |
create table componentlinkmaster ( |
| 638 |
ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 639 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 640 |
, DisplayOrder decimal(5,0) unsigned comment '?\????' |
| 641 |
, EntryDate datetime not null comment '?o?^???t' |
| 642 |
, UpdateDate datetime not null comment '?X?V???t' |
| 643 |
, constraint componentlinkmaster_PKC primary key (ComponentCode,ItemCode) |
| 644 |
) comment '?\???H???A?}?X?^' ; |
| 645 |
|
| 646 |
create index ComponentLinkMaster_Index1 |
| 647 |
on componentlinkmaster(ComponentCode);
|
| 648 |
|
| 649 |
create index ComponentLinkMaster_Index2 |
| 650 |
on componentlinkmaster(ItemCode);
|
| 651 |
|
| 652 |
-- ?\???}?X?^
|
| 653 |
--* BackupToTempTable
|
| 654 |
drop table if exists componentmaster cascade; |
| 655 |
|
| 656 |
--* RestoreFromTempTable
|
| 657 |
create table componentmaster ( |
| 658 |
ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 659 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 660 |
, ComponentName varchar(120) not null comment '?\??????' |
| 661 |
, SubItemsFlg decimal(1,0) comment '???????t???O' |
| 662 |
, DirectInputFlg decimal(1,0) comment '???????t???O' |
| 663 |
, MyExpensesFlg decimal(1,0) comment '????o??t???O' |
| 664 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 665 |
, EntryDate datetime not null comment '?o?^???t' |
| 666 |
, UpdateDate datetime not null comment '?X?V???t' |
| 667 |
, constraint componentmaster_PKC primary key (ComponentCode) |
| 668 |
) comment '?\???}?X?^' ; |
| 669 |
|
| 670 |
create index ComponentMaster_Index1 |
| 671 |
on componentmaster(DisplayOrder);
|
| 672 |
|
| 673 |
-- ?H?????E?\???????N?}?X?^
|
| 674 |
--* BackupToTempTable
|
| 675 |
drop table if exists componenttotypemaster cascade; |
| 676 |
|
| 677 |
--* RestoreFromTempTable
|
| 678 |
create table componenttotypemaster ( |
| 679 |
TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 680 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 681 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 682 |
, EntryDate datetime not null comment '?o?^???t' |
| 683 |
, UpdateDate datetime not null comment '?X?V???t' |
| 684 |
, constraint componenttotypemaster_PKC primary key (TypeCode,ComponentCode) |
| 685 |
) comment '?H?????E?\???????N?}?X?^' ; |
| 686 |
|
| 687 |
create index ComponentToTypeMaster_Index1 |
| 688 |
on componenttotypemaster(TypeCode);
|
| 689 |
|
| 690 |
create index ComponentToTypeMaster_Index2 |
| 691 |
on componenttotypemaster(ComponentCode);
|
| 692 |
|
| 693 |
-- ?H???????o??f?[?^
|
| 694 |
--* BackupToTempTable
|
| 695 |
drop table if exists constrledgerexpenses cascade; |
| 696 |
|
| 697 |
--* RestoreFromTempTable
|
| 698 |
create table constrledgerexpenses ( |
| 699 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 700 |
, SeqNo decimal(5,0) not null comment '?}??' |
| 701 |
, NameCode decimal(5,0) unsigned not null comment '?o??R?[?h' |
| 702 |
, ExpensesRaito decimal(4,2) not null comment '?o??' |
| 703 |
, ExpensesValue decimal(10,0) not null comment '?o????z' |
| 704 |
, EntryDate datetime not null comment '?o?^???t' |
| 705 |
, UpdateDate datetime not null comment '?X?V???t' |
| 706 |
, constraint constrledgerexpenses_PKC primary key (ConstructionCode,SeqNo,NameCode) |
| 707 |
) comment '?H???????o??f?[?^' ; |
| 708 |
|
| 709 |
create index ConstrLedgerExpenses_Index1 |
| 710 |
on constrledgerexpenses(ConstructionCode);
|
| 711 |
|
| 712 |
create index ConstrLedgerExpenses_Index2 |
| 713 |
on constrledgerexpenses(SeqNo);
|
| 714 |
|
| 715 |
create index ConstrLedgerExpenses_Index3 |
| 716 |
on constrledgerexpenses(NameCode);
|
| 717 |
|
| 718 |
-- ?H????{???
|
| 719 |
--* BackupToTempTable
|
| 720 |
drop table if exists constructionbaseinfo cascade; |
| 721 |
|
| 722 |
--* RestoreFromTempTable
|
| 723 |
create table constructionbaseinfo ( |
| 724 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 725 |
, TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O' |
| 726 |
, JoinFlg decimal(1,0) not null comment '?????_??H???t???O' |
| 727 |
, ConstructionYear smallint(5) unsigned not null comment '?H???N?x' |
| 728 |
, ConstructionPeriod smallint(5) unsigned not null comment '?H??????' |
| 729 |
, RequestedDate date comment '??????' |
| 730 |
, EstimatesSubmitDeadline date comment '?????o????' |
| 731 |
, EstimatesSubmittedDate date comment '?????o??' |
| 732 |
, ProvisionalOrderDate date comment '?????' |
| 733 |
, OrderDate date comment '???' |
| 734 |
, OrderStartingDate date comment '?J?n?\???' |
| 735 |
, OrderCompletionDate date comment '?????\???' |
| 736 |
, PreparationStartDate date comment '?{?H?????J?n??' |
| 737 |
, ConstructionStartingDate date comment '?{?H?J?n??' |
| 738 |
, ConstructionCompletionDate date comment '?{?H??????' |
| 739 |
, NonOrderDate date comment '????' |
| 740 |
, OrdersDecisionPrice decimal(12,0) not null comment '??????????z' |
| 741 |
, OrdersDecisionPriceInTax decimal(12,0) not null comment '??????????z' |
| 742 |
, SalesDepCode decimal(5,0) unsigned not null comment '?c??S????????R?[?h' |
| 743 |
, SalesPersonCode decimal(8,0) unsigned not null comment '?c??S????R?[?h' |
| 744 |
, SalesSubDepCode decimal(5,0) unsigned not null comment '?c????S????????R?[?h' |
| 745 |
, SalesSubPersonCode decimal(8,0) unsigned not null comment '?c????S????R?[?h' |
| 746 |
, ConstrDepCode decimal(5,0) unsigned not null comment '?H???S????????R?[?h' |
| 747 |
, ConstructionPersonCode decimal(8,0) not null comment '?H???S????R?[?h' |
| 748 |
, ConstrSubDepCode decimal(5,0) unsigned not null comment '?H?????S????????R?[?h' |
| 749 |
, ConstrSubPersonCode decimal(8,0) not null comment '?H?????S????R?[?h' |
| 750 |
, ConstrInstrDepCode decimal(5,0) unsigned not null comment '?H???w?????????R?[?h' |
| 751 |
, ConstructionInstructor decimal(8,0) not null comment '?H???w?????R?[?h' |
| 752 |
, TransferConstruction decimal(8,0) not null comment '?H??????R?[?h' |
| 753 |
, TransferConstructionDate date comment '?H??????' |
| 754 |
, OrderersDivision decimal(5,0) not null comment '????????R?[?h' |
| 755 |
, OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h' |
| 756 |
, EstimatesExpirationDate date comment '????L??????' |
| 757 |
, ConstructionPeriodStart date comment '?_??H???J?n??' |
| 758 |
, ConstructionPeriodEnd date comment '?_??H??????' |
| 759 |
, ConstructionPeriodStart2 date comment '?_??H???J?n?i???????j' |
| 760 |
, ConstructionPeriodEnd2 date comment '?_??H???????i???????j' |
| 761 |
, StartDate date comment '?H???J?n??' |
| 762 |
, EndDate date comment '?H???I????' |
| 763 |
, PurchaseOrderMailingDate date comment '???????X????' |
| 764 |
, PurchaseOrderReturnDate date comment '???????????' |
| 765 |
, PurchaseOrderReturnCheckDate date comment '??????????m?F??' |
| 766 |
, ConsumptionTaxFlg decimal(1,0) not null comment '?????t???O' |
| 767 |
, PrimeContractorFlg decimal(1,0) not null comment '?????t???O' |
| 768 |
, SalesCostFlg decimal(1,0) not null comment '?c??o?????t???O' |
| 769 |
, ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O' |
| 770 |
, ConstructionType decimal(5,0) not null comment '?H?????R?[?h' |
| 771 |
, EstimateType decimal(1,0) not null comment '??????' |
| 772 |
, BillingStartDate date not null comment '?????????J?n??' |
| 773 |
, BillingDate date not null comment '??????' |
| 774 |
, BillingSplitFlg decimal(1,0) not null comment '??????t???O' |
| 775 |
, BillingSendDate date comment '???????X??/??n????' |
| 776 |
, LedgerComplateDate date not null comment '?H????????????????t' |
| 777 |
, InspectPlanningDate date not null comment '?????\???' |
| 778 |
, InspectExecuteDate date not null comment '???????s??' |
| 779 |
, RevCompleteDate date not null comment '??????????????' |
| 780 |
, ExpectedOrder decimal(3,0) not null comment '?????x' |
| 781 |
, EntryDate datetime not null comment '?o?^???t' |
| 782 |
, UpdateDate datetime not null comment '?X?V???t' |
| 783 |
, constraint constructionbaseinfo_PKC primary key (ConstructionCode) |
| 784 |
) comment '?H????{???' ; |
| 785 |
|
| 786 |
create index BaseInfo_Index1 |
| 787 |
on constructionbaseinfo(ConstructionStatusFlg);
|
| 788 |
|
| 789 |
create index BaseInfo_Index2 |
| 790 |
on constructionbaseinfo(EstimateType);
|
| 791 |
|
| 792 |
create index BaseInfo_Index3 |
| 793 |
on constructionbaseinfo(SalesPersonCode);
|
| 794 |
|
| 795 |
create index BaseInfo_Index4 |
| 796 |
on constructionbaseinfo(ConstructionPersonCode);
|
| 797 |
|
| 798 |
create index BaseInfo_Index5 |
| 799 |
on constructionbaseinfo(ConstructionInstructor);
|
| 800 |
|
| 801 |
create index BaseInfo_Index6 |
| 802 |
on constructionbaseinfo(ConstructionPeriod);
|
| 803 |
|
| 804 |
-- ?H????{????
|
| 805 |
--* BackupToTempTable
|
| 806 |
drop table if exists constructionbaseinfodetail cascade; |
| 807 |
|
| 808 |
--* RestoreFromTempTable
|
| 809 |
create table constructionbaseinfodetail ( |
| 810 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 811 |
, DetailNo decimal(3,0) not null comment '??????' |
| 812 |
, DetailString varchar(300) comment '??????e' |
| 813 |
, EntryDate datetime not null comment '?o?^???t' |
| 814 |
, UpdateDate datetime not null comment '?X?V???t' |
| 815 |
, constraint constructionbaseinfodetail_PKC primary key (ConstructionCode,DetailNo) |
| 816 |
) comment '?H????{????' ; |
| 817 |
|
| 818 |
create index BaseInfoDetail_Idx1 |
| 819 |
on constructionbaseinfodetail(ConstructionCode);
|
| 820 |
|
| 821 |
create index BaseInfoDetail_Idx2 |
| 822 |
on constructionbaseinfodetail(DetailNo);
|
| 823 |
|
| 824 |
-- ?H???{?H?\?Z?f?[?^
|
| 825 |
--* BackupToTempTable
|
| 826 |
drop table if exists constructionbudget cascade; |
| 827 |
|
| 828 |
--* RestoreFromTempTable
|
| 829 |
create table constructionbudget ( |
| 830 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 831 |
, CreatorCode decimal(8,0) not null comment '????R?[?h' |
| 832 |
, CreatorName varchar(60) comment '?????' |
| 833 |
, CreatorCosts decimal(11,0) not null comment '??????^' |
| 834 |
, AssistantCode decimal(8,0) not null comment '???S????R?[?h' |
| 835 |
, AssistantName varchar(60) comment '???S?????' |
| 836 |
, AssistantCosts decimal(11,0) not null comment '???S??????^' |
| 837 |
, InstructorCode decimal(8,0) not null comment '?H???w?????R?[?h' |
| 838 |
, InstructorName varchar(60) comment '?H???w??????' |
| 839 |
, InstructorCosts decimal(11,0) not null comment '?H???w???????^' |
| 840 |
, CreateDate date not null comment '????' |
| 841 |
, ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
| 842 |
, ConstructionStart date not null comment '?_??H???J?n' |
| 843 |
, ConstructionEnd date not null comment '?_??H??????' |
| 844 |
, InstructorTimes decimal(5,2) not null comment '?w???????????' |
| 845 |
, SalaryFlg decimal(1,0) not null comment '???^?U????' |
| 846 |
, SalaryDays decimal(4,0) not null comment '?U??????' |
| 847 |
, A_SalaryFlg decimal(1,0) not null comment '???S??????^?U????' |
| 848 |
, A_SalaryDays decimal(4,0) not null comment '???S????U??????' |
| 849 |
, I_SalaryFlg decimal(1,0) not null comment '?w???????^?U????' |
| 850 |
, I_SalaryDays decimal(4,0) not null comment '?w?????U??????' |
| 851 |
, OrdersDecisionPrice decimal(12,0) not null comment '??????????z' |
| 852 |
, EntryDate datetime not null comment '?o?^???t' |
| 853 |
, UpdateDate datetime not null comment '?X?V???t' |
| 854 |
, constraint constructionbudget_PKC primary key (ConstructionCode) |
| 855 |
) comment '?H???{?H?\?Z?f?[?^' ; |
| 856 |
|
| 857 |
-- ?H???{?H?\?Z?f?[?^????
|
| 858 |
--* BackupToTempTable
|
| 859 |
drop table if exists constructionbudgetdetail cascade; |
| 860 |
|
| 861 |
--* RestoreFromTempTable
|
| 862 |
create table constructionbudgetdetail ( |
| 863 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 864 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 865 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| 866 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 867 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 868 |
, FirstString varchar(120) comment '???????' |
| 869 |
, SecondString varchar(120) comment '?H?????e' |
| 870 |
, CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
| 871 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 872 |
, CompanyName varchar(120) comment '?????????' |
| 873 |
, EstimatePrice decimal(12,0) not null comment '??Z????????z' |
| 874 |
, NegotiationPrice decimal(12,0) not null comment '??Z????????z' |
| 875 |
, OrderDesiredAmount decimal(12,0) not null comment '??????]???z' |
| 876 |
, ExecutionAmount decimal(12,0) not null comment '???s???z' |
| 877 |
, AmountConfigRate decimal(5,2) not null comment '???z?\????' |
| 878 |
, NegotiateFlg decimal(1,0) not null comment '?????????t???O' |
| 879 |
, EntryDate datetime not null comment '?o?^???t' |
| 880 |
, UpdateDate datetime not null comment '?X?V???t' |
| 881 |
, constraint constructionbudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 882 |
) comment '?H???{?H?\?Z?f?[?^????' ; |
| 883 |
|
| 884 |
-- ?H??}?X?^
|
| 885 |
--* BackupToTempTable
|
| 886 |
drop table if exists constructionitemmaster cascade; |
| 887 |
|
| 888 |
--* RestoreFromTempTable
|
| 889 |
create table constructionitemmaster ( |
| 890 |
ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 891 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 892 |
, ItemName varchar(120) not null comment '?H????' |
| 893 |
, SubItemsFlg decimal(1,0) comment '???????t???O' |
| 894 |
, MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
| 895 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 896 |
, EntryDate datetime not null comment '?o?^???t' |
| 897 |
, UpdateDate datetime not null comment '?X?V???t' |
| 898 |
, constraint constructionitemmaster_PKC primary key (ItemCode) |
| 899 |
) comment '?H??}?X?^' ; |
| 900 |
|
| 901 |
-- ?H???????f?[?^
|
| 902 |
--* BackupToTempTable
|
| 903 |
drop table if exists constructionledger cascade; |
| 904 |
|
| 905 |
--* RestoreFromTempTable
|
| 906 |
create table constructionledger ( |
| 907 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 908 |
, ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
| 909 |
, CreatorCode decimal(8,0) comment '????R?[?h' |
| 910 |
, CreatorName varchar(60) comment '?????' |
| 911 |
, CreateDate date not null comment '????' |
| 912 |
, ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
| 913 |
, ConstructionStart date not null comment '?_??H???J?n' |
| 914 |
, ConstructionEnd date not null comment '?_??H??????' |
| 915 |
, OrdersDecisionPrice decimal(14,0) not null comment '??????????z' |
| 916 |
, CompanyExpenses decimal(10,0) not null comment '???o???v' |
| 917 |
, DepartmentExpenses decimal(10,0) not null comment '?????o???v' |
| 918 |
, SalesExpenses decimal(10,0) not null comment '?c??o???v' |
| 919 |
, TotalPayment decimal(10,0) not null comment '???x???z' |
| 920 |
, GrossProfit decimal(10,0) not null comment '?e??' |
| 921 |
, Allowance decimal(10,0) not null comment '???^' |
| 922 |
, NetProfit decimal(10,0) not null comment '?????v' |
| 923 |
, ComplateFlg decimal(1,0) not null comment '????????t???O' |
| 924 |
, IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O' |
| 925 |
, EntryDate datetime not null comment '?o?^???t' |
| 926 |
, UpdateDate datetime not null comment '?X?V???t' |
| 927 |
, constraint constructionledger_PKC primary key (ConstructionCode) |
| 928 |
) comment '?H???????f?[?^' ; |
| 929 |
|
| 930 |
create index constructionledger_Index1 |
| 931 |
on constructionledger(ConstructionStart);
|
| 932 |
|
| 933 |
create index constructionledger_Index2 |
| 934 |
on constructionledger(ConstructionEnd);
|
| 935 |
|
| 936 |
-- ?H??????????f?[?^
|
| 937 |
--* BackupToTempTable
|
| 938 |
drop table if exists constructionledgerdetail cascade; |
| 939 |
|
| 940 |
--* RestoreFromTempTable
|
| 941 |
create table constructionledgerdetail ( |
| 942 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 943 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 944 |
, LineCount decimal(4,0) unsigned not null comment '?s???' |
| 945 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 946 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 947 |
, FirstString varchar(120) comment '???????' |
| 948 |
, SecondString varchar(120) comment '?H?????e' |
| 949 |
, CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
| 950 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 951 |
, CompanyName varchar(120) comment '?????????' |
| 952 |
, EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z' |
| 953 |
, ExecutionAmount decimal(12,0) not null comment '???s???z' |
| 954 |
, AmountConfigRate decimal(5,2) not null comment '???z?\????' |
| 955 |
, PaymentBurden decimal(12,0) not null comment '?x????U?z' |
| 956 |
, FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O' |
| 957 |
, IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O' |
| 958 |
, FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O' |
| 959 |
, SalaryFlg decimal(1,0) not null comment '???^?U????' |
| 960 |
, SalaryDays decimal(4,0) not null comment '???^?U??????' |
| 961 |
, OperatingFlg decimal(1,0) not null comment '?S?????t???O' |
| 962 |
, SourceCode decimal(10,0) unsigned not null comment '???H?????' |
| 963 |
, JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??' |
| 964 |
, SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
| 965 |
, PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O' |
| 966 |
, DetailCount decimal(4,0) unsigned not null comment '??????' |
| 967 |
, InvalidLine decimal(1,0) not null comment '?????s' |
| 968 |
, EntryDate datetime not null comment '?o?^???t' |
| 969 |
, UpdateDate datetime not null comment '?X?V???t' |
| 970 |
, constraint constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 971 |
) comment '?H??????????f?[?^' ; |
| 972 |
|
| 973 |
create index LedgerDetail_Index01 |
| 974 |
on constructionledgerdetail(ConstructionCode);
|
| 975 |
|
| 976 |
create index LedgerDetail_Index02 |
| 977 |
on constructionledgerdetail(GroupCount);
|
| 978 |
|
| 979 |
create index LedgerDetail_Index03 |
| 980 |
on constructionledgerdetail(LineCount);
|
| 981 |
|
| 982 |
create index LedgerDetail_Index04 |
| 983 |
on constructionledgerdetail(SourceCode);
|
| 984 |
|
| 985 |
create index LedgerDetail_Index05 |
| 986 |
on constructionledgerdetail(DetailCount);
|
| 987 |
|
| 988 |
create index LedgerDetail_Index06 |
| 989 |
on constructionledgerdetail(SalaryFlg);
|
| 990 |
|
| 991 |
create index LedgerDetail_Index07 |
| 992 |
on constructionledgerdetail(CompanyCode);
|
| 993 |
|
| 994 |
-- ?H?????????s?f?[?^
|
| 995 |
--* BackupToTempTable
|
| 996 |
drop table if exists constructionledgerexcute cascade; |
| 997 |
|
| 998 |
--* RestoreFromTempTable
|
| 999 |
create table constructionledgerexcute ( |
| 1000 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1001 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 1002 |
, LineCount decimal(4,0) unsigned not null comment '?s???' |
| 1003 |
, ColumnCount decimal(3,0) not null comment '????' |
| 1004 |
, PaymentAmount decimal(12,0) not null comment '?x?????z' |
| 1005 |
, TargetMonth date not null comment '???N??' |
| 1006 |
, EntryDate datetime not null comment '?o?^???t' |
| 1007 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1008 |
, constraint constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount) |
| 1009 |
) comment '?H?????????s?f?[?^' ; |
| 1010 |
|
| 1011 |
create index LedgerExcute_Index1 |
| 1012 |
on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
|
| 1013 |
|
| 1014 |
-- ?H???????N???
|
| 1015 |
--* BackupToTempTable
|
| 1016 |
drop table if exists constructionlink cascade; |
| 1017 |
|
| 1018 |
--* RestoreFromTempTable
|
| 1019 |
create table constructionlink ( |
| 1020 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1021 |
, FluctuationCode decimal(10,0) not null comment '?q?H?????' |
| 1022 |
, LinkType decimal(1,0) not null comment '?????N???' |
| 1023 |
, EntryDate datetime not null comment '?o?^???t' |
| 1024 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1025 |
, constraint constructionlink_PKC primary key (ConstructionCode,FluctuationCode) |
| 1026 |
) comment '?H???????N???' ; |
| 1027 |
|
| 1028 |
create index ConstructionLink_Index1 |
| 1029 |
on constructionlink(ConstructionCode);
|
| 1030 |
|
| 1031 |
create index ConstructionLink_Index2 |
| 1032 |
on constructionlink(FluctuationCode);
|
| 1033 |
|
| 1034 |
create index ConstructionLink_Index3 |
| 1035 |
on constructionlink(LinkType);
|
| 1036 |
|
| 1037 |
-- ?H????????
|
| 1038 |
--* BackupToTempTable
|
| 1039 |
drop table if exists constructionmaterialinfo cascade; |
| 1040 |
|
| 1041 |
--* RestoreFromTempTable
|
| 1042 |
create table constructionmaterialinfo ( |
| 1043 |
CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????' |
| 1044 |
, MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
| 1045 |
, PROCESSDATE datetime default '0000-00-00 00:00:00' not null comment '?????N????' |
| 1046 |
, RENTCOUNT smallint(5) unsigned comment '??o??' |
| 1047 |
, REPAYCOUNT smallint(5) unsigned comment '??p??' |
| 1048 |
, JUNKCOUNT smallint(5) unsigned comment '?j????' |
| 1049 |
, COMPLETEFLG tinyint(3) unsigned comment '?????t???O' |
| 1050 |
, ENTRYDATE datetime comment '?o?^???t' |
| 1051 |
, UPDATEDATE datetime comment '?X?V???t' |
| 1052 |
, constraint constructionmaterialinfo_PKC primary key (CONSTRUCTIONCODE,MATERIALITEMCODE,PROCESSDATE) |
| 1053 |
) comment '?H????????' ; |
| 1054 |
|
| 1055 |
-- ????i?????t?f?[?^
|
| 1056 |
--* BackupToTempTable
|
| 1057 |
drop table if exists constructionprogressdate cascade; |
| 1058 |
|
| 1059 |
--* RestoreFromTempTable
|
| 1060 |
create table constructionprogressdate ( |
| 1061 |
ConstructionCode decimal(10,0) not null comment '?H?????' |
| 1062 |
, ConstructionStatusFlg decimal(2,0) not null comment '???H?????' |
| 1063 |
, PreviousStatusFlg decimal(2,0) comment '??X?O???' |
| 1064 |
, ChangeDate datetime not null comment '?????t' |
| 1065 |
, ChangePersonCode decimal(8,0) not null comment '???S????' |
| 1066 |
, EntryDate datetime not null comment '?o?^???t' |
| 1067 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1068 |
, constraint constructionprogressdate_PKC primary key (ConstructionCode,ChangeDate) |
| 1069 |
) comment '????i?????t?f?[?^' ; |
| 1070 |
|
| 1071 |
create index ConstrProg_Index1 |
| 1072 |
on constructionprogressdate(ConstructionCode);
|
| 1073 |
|
| 1074 |
create index ConstrProg_Index2 |
| 1075 |
on constructionprogressdate(ConstructionStatusFlg);
|
| 1076 |
|
| 1077 |
create index ConstrProg_Index3 |
| 1078 |
on constructionprogressdate(ChangeDate);
|
| 1079 |
|
| 1080 |
-- ???}?X?^
|
| 1081 |
--* BackupToTempTable
|
| 1082 |
drop table if exists constructionspecmaster cascade; |
| 1083 |
|
| 1084 |
--* RestoreFromTempTable
|
| 1085 |
create table constructionspecmaster ( |
| 1086 |
ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 1087 |
, SpecCode decimal(5,0) unsigned not null comment '???L?[' |
| 1088 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 1089 |
, ItemName varchar(120) comment '??????' |
| 1090 |
, SpecName varchar(120) comment '??????' |
| 1091 |
, UnitName varchar(30) comment '?P?????' |
| 1092 |
, UnitPrice decimal(9,2) not null comment '?P??' |
| 1093 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1094 |
, EntryDate datetime not null comment '?o?^???t' |
| 1095 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1096 |
, constraint constructionspecmaster_PKC primary key (ItemCode,SpecCode) |
| 1097 |
) comment '???}?X?^' ; |
| 1098 |
|
| 1099 |
create index ConstructionSpecMaster_Index1 |
| 1100 |
on constructionspecmaster(DisplayOrder);
|
| 1101 |
|
| 1102 |
-- ???P???}?X?^
|
| 1103 |
--* BackupToTempTable
|
| 1104 |
drop table if exists constructionspecunitprice cascade; |
| 1105 |
|
| 1106 |
--* RestoreFromTempTable
|
| 1107 |
create table constructionspecunitprice ( |
| 1108 |
ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h' |
| 1109 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 1110 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 1111 |
, SpecCode decimal(5,0) unsigned not null comment '???L?[' |
| 1112 |
, UnitPrice decimal(9,2) not null comment '?P??' |
| 1113 |
, EntryDate datetime not null comment '?o?^???t' |
| 1114 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1115 |
, constraint constructionspecunitprice_PKC primary key (ConstructionTypeCode,ComponentCode,ItemCode,SpecCode) |
| 1116 |
) comment '???P???}?X?^' ; |
| 1117 |
|
| 1118 |
create index constructionspecunitprice_Index1 |
| 1119 |
on constructionspecunitprice(ConstructionTypeCode,ComponentCode,ItemCode);
|
| 1120 |
|
| 1121 |
-- ?H?????}?X?^
|
| 1122 |
--* BackupToTempTable
|
| 1123 |
drop table if exists constructiontypemaster cascade; |
| 1124 |
|
| 1125 |
--* RestoreFromTempTable
|
| 1126 |
create table constructiontypemaster ( |
| 1127 |
TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 1128 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 1129 |
, NameString varchar(100) not null comment '????' |
| 1130 |
, PublicFlg decimal(1,0) not null comment '?????t???O' |
| 1131 |
, RepairFlg decimal(1,0) not null comment '?V?z?E???C?t???O' |
| 1132 |
, SecRank decimal(1,0) not null comment '?????????N' |
| 1133 |
, ExpensesLink decimal(1,0) not null comment '?o??g?p??' |
| 1134 |
, CompanyProp decimal(1,0) not null comment '????H????' |
| 1135 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1136 |
, EntryDate datetime not null comment '?o?^???t' |
| 1137 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1138 |
, constraint constructiontypemaster_PKC primary key (TypeCode) |
| 1139 |
) comment '?H?????}?X?^' ; |
| 1140 |
|
| 1141 |
-- ?????f?[?^
|
| 1142 |
--* BackupToTempTable
|
| 1143 |
drop table if exists consumptiontax cascade; |
| 1144 |
|
| 1145 |
--* RestoreFromTempTable
|
| 1146 |
create table consumptiontax ( |
| 1147 |
StartDate date not null comment '?g?p?J?n?N????' |
| 1148 |
, ComplateDate date comment '?g?p?I???N????' |
| 1149 |
, TaxRate decimal(4,2) default '0.00' not null comment '??????' |
| 1150 |
, DeleteFlg decimal(1,0) comment '???t???O' |
| 1151 |
, EntryDate datetime comment '?o?^?N????' |
| 1152 |
, UpdateDate datetime comment '?X?V?N????' |
| 1153 |
, constraint consumptiontax_PKC primary key (StartDate) |
| 1154 |
) comment '?????f?[?^' ; |
| 1155 |
|
| 1156 |
-- ?????o?[?f?[?^
|
| 1157 |
--* BackupToTempTable
|
| 1158 |
drop table if exists costdataofdepartment cascade; |
| 1159 |
|
| 1160 |
--* RestoreFromTempTable
|
| 1161 |
create table costdataofdepartment ( |
| 1162 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1163 |
, ConstrYear smallint(5) unsigned not null comment '?H???????E?N??' |
| 1164 |
, SeqNo decimal(5,0) unsigned not null comment '?f?[?^???' |
| 1165 |
, CostDate date not null comment '?????t' |
| 1166 |
, DepartmentName varchar(100) not null comment '??????' |
| 1167 |
, SuppliersCode decimal(8,0) unsigned not null comment '?o?[??R?[?h' |
| 1168 |
, SuppliersName varchar(120) comment '?o?[??' |
| 1169 |
, PaymentContent varchar(100) comment '?o?[???e' |
| 1170 |
, SendReceiveFlg decimal(1,0) not null comment '?o?[?t???O' |
| 1171 |
, EntryPrice decimal(12,0) not null comment '???z?i????j' |
| 1172 |
, EntryTax decimal(12,0) not null comment '???z?i????j' |
| 1173 |
, Coment varchar(100) comment '???l' |
| 1174 |
, EntryDate datetime not null comment '?o?^???t' |
| 1175 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1176 |
, constraint costdataofdepartment_PKC primary key (DepartmentCode,ConstrYear,SeqNo) |
| 1177 |
) comment '?????o?[?f?[?^' ; |
| 1178 |
|
| 1179 |
-- ?S??????o??f?[?^
|
| 1180 |
--* BackupToTempTable
|
| 1181 |
drop table if exists costdataofperson cascade; |
| 1182 |
|
| 1183 |
--* RestoreFromTempTable
|
| 1184 |
create table costdataofperson ( |
| 1185 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1186 |
, ActionDate date not null comment '?????t' |
| 1187 |
, DataType decimal(1,0) not null comment '?f?[?^??' |
| 1188 |
, DataAddCount decimal(5,0) unsigned not null comment '?f?[?^??????' |
| 1189 |
, TargetMonth varchar(7) not null comment '???N??' |
| 1190 |
, ConstructionCode decimal(10,0) unsigned comment '?H???R?[?h' |
| 1191 |
, SuppliersCode decimal(5,0) unsigned not null comment '?x????R?[?h' |
| 1192 |
, SuppliersName varchar(120) comment '?x??????' |
| 1193 |
, PaymentContent varchar(60) comment '?x?????e' |
| 1194 |
, PaymentType decimal(1,0) not null comment '?x?????@?t???O' |
| 1195 |
, EntryPrice decimal(12,0) not null comment '???z?i????j' |
| 1196 |
, EntryPriceInTax decimal(12,0) not null comment '???z?i????j' |
| 1197 |
, SlipNumber varchar(12) comment '?`?[???' |
| 1198 |
, ComplateFlg decimal(1,0) not null comment '???????t???O' |
| 1199 |
, ApprovalFlg decimal(1,0) not null comment '???F?t???O' |
| 1200 |
, EntryDate datetime not null comment '?o?^???t' |
| 1201 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1202 |
, constraint costdataofperson_PKC primary key (PersonCode,ActionDate,DataType,DataAddCount) |
| 1203 |
) comment '?S??????o??f?[?^' ; |
| 1204 |
|
| 1205 |
create index CostDataOfPerson_Index1 |
| 1206 |
on costdataofperson(TargetMonth);
|
| 1207 |
|
| 1208 |
create index CostDataOfPerson_Index2 |
| 1209 |
on costdataofperson(ConstructionCode);
|
| 1210 |
|
| 1211 |
-- ??????o?^?\???f?[?^
|
| 1212 |
--* BackupToTempTable
|
| 1213 |
drop table if exists costomerregist cascade; |
| 1214 |
|
| 1215 |
--* RestoreFromTempTable
|
| 1216 |
create table costomerregist ( |
| 1217 |
CreatePersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 1218 |
, CreateDate date not null comment '????' |
| 1219 |
, SeqNo decimal(2,0) not null comment '?L?[?A??' |
| 1220 |
, DataMode decimal(1,0) not null comment '?f?[?^??' |
| 1221 |
, SourceCotegory decimal(5,0) unsigned not null comment '???????' |
| 1222 |
, SourceCode decimal(5,0) unsigned not null comment '??????R?[?h' |
| 1223 |
, PetitionPeriod decimal(4,0) unsigned not null comment '?????' |
| 1224 |
, OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O' |
| 1225 |
, CorporateStatusName varchar(100) comment '?@?l?i????' |
| 1226 |
, CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u' |
| 1227 |
, OrderersName1 varchar(60) not null comment '???????1' |
| 1228 |
, OrderersName2 varchar(60) comment '????????Q' |
| 1229 |
, DepartmentName varchar(60) comment '??????' |
| 1230 |
, PersonName varchar(60) comment '?S?????' |
| 1231 |
, ZipCode varchar(8) comment '?X????' |
| 1232 |
, Address1 varchar(60) comment '?Z???P' |
| 1233 |
, Address2 varchar(60) comment '?Z??2' |
| 1234 |
, Address3 varchar(60) comment '?Z??3' |
| 1235 |
, PhoneNumber varchar(13) comment '?d?b???' |
| 1236 |
, FaxNumber varchar(13) comment 'FAX???' |
| 1237 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 1238 |
, Note varchar(300) comment '???l' |
| 1239 |
, OrderCotegory decimal(5,0) unsigned not null comment '???????' |
| 1240 |
, OrderDate decimal(6,0) unsigned not null comment '?\????' |
| 1241 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 1242 |
, CreateDepartmentCode decimal(5,0) unsigned not null comment '?\???????R?[?h' |
| 1243 |
, CreateDepartmentName varchar(60) comment '?\????????' |
| 1244 |
, EntryDate datetime not null comment '?o?^???t' |
| 1245 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1246 |
, constraint costomerregist_PKC primary key (CreatePersonCode,CreateDate,SeqNo) |
| 1247 |
) comment '??????o?^?\???f?[?^' ; |
| 1248 |
|
| 1249 |
create index CostomerRegist_Index1 |
| 1250 |
on costomerregist(PetitionPeriod);
|
| 1251 |
|
| 1252 |
create index CostomerRegist_Index2 |
| 1253 |
on costomerregist(CreatePersonCode);
|
| 1254 |
|
| 1255 |
create index CostomerRegist_Index3 |
| 1256 |
on costomerregist(CreateDepartmentCode);
|
| 1257 |
|
| 1258 |
-- ????f?[?^
|
| 1259 |
--* BackupToTempTable
|
| 1260 |
drop table if exists dailydataconstruction cascade; |
| 1261 |
|
| 1262 |
--* RestoreFromTempTable
|
| 1263 |
create table dailydataconstruction ( |
| 1264 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1265 |
, DailyDataDate date not null comment '???????' |
| 1266 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1267 |
, Weather varchar(60) comment '?V?C' |
| 1268 |
, EntryDate datetime not null comment '?o?^???t' |
| 1269 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1270 |
, constraint dailydataconstruction_PKC primary key (PersonCode,DailyDataDate,ConstructionCode) |
| 1271 |
) comment '????f?[?^' ; |
| 1272 |
|
| 1273 |
create index DailyDataConstruction_Index1 |
| 1274 |
on dailydataconstruction(PersonCode);
|
| 1275 |
|
| 1276 |
create index DailyDataConstruction_Index2 |
| 1277 |
on dailydataconstruction(DailyDataDate);
|
| 1278 |
|
| 1279 |
create index DailyDataConstruction_Index3 |
| 1280 |
on dailydataconstruction(ConstructionCode);
|
| 1281 |
|
| 1282 |
-- ????f?[?^ (????)
|
| 1283 |
--* BackupToTempTable
|
| 1284 |
drop table if exists dailydatadetail cascade; |
| 1285 |
|
| 1286 |
--* RestoreFromTempTable
|
| 1287 |
create table dailydatadetail ( |
| 1288 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1289 |
, DailyDataDate date not null comment '???????' |
| 1290 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1291 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 1292 |
, JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
| 1293 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 1294 |
, TodayHeadCount decimal(4,1) not null comment '?????l????' |
| 1295 |
, TotalHeadCount decimal(5,1) not null comment '??v?l????' |
| 1296 |
, TodayWork varchar(100) comment '?????????e' |
| 1297 |
, NextdayWork varchar(100) comment '?????????e' |
| 1298 |
, NextdayHeadCount decimal(4,1) not null comment '?????l????' |
| 1299 |
, EntryDate datetime not null comment '?o?^???t' |
| 1300 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1301 |
, constraint dailydatadetail_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1302 |
) comment '????f?[?^ (????)' ; |
| 1303 |
|
| 1304 |
create index DailyDataDetail_Index |
| 1305 |
on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
|
| 1306 |
|
| 1307 |
-- ????f?[?^ (??????)
|
| 1308 |
--* BackupToTempTable
|
| 1309 |
drop table if exists dailydatafield cascade; |
| 1310 |
|
| 1311 |
--* RestoreFromTempTable
|
| 1312 |
create table dailydatafield ( |
| 1313 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1314 |
, DailyDataDate date not null comment '???????' |
| 1315 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1316 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 1317 |
, PatrolTime datetime not null comment '?????' |
| 1318 |
, ContentsText varchar(200) comment '???e' |
| 1319 |
, EntryDate datetime not null comment '?o?^???t' |
| 1320 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1321 |
, constraint dailydatafield_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1322 |
) comment '????f?[?^ (??????)' ; |
| 1323 |
|
| 1324 |
create index DailyDataField_Index |
| 1325 |
on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
|
| 1326 |
|
| 1327 |
-- ????f?[?^ (????)
|
| 1328 |
--* BackupToTempTable
|
| 1329 |
drop table if exists dailydatamaterials cascade; |
| 1330 |
|
| 1331 |
--* RestoreFromTempTable
|
| 1332 |
create table dailydatamaterials ( |
| 1333 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1334 |
, DailyDataDate date not null comment '???????' |
| 1335 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1336 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 1337 |
, Materials varchar(100) comment '?????' |
| 1338 |
, Quantity varchar(100) comment '????' |
| 1339 |
, Production varchar(100) comment '??????' |
| 1340 |
, Delivery varchar(100) comment '?[?????' |
| 1341 |
, QualityControl varchar(100) comment '?i?????????' |
| 1342 |
, EntryDate datetime not null comment '?o?^???t' |
| 1343 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1344 |
, constraint dailydatamaterials_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1345 |
) comment '????f?[?^ (????)' ; |
| 1346 |
|
| 1347 |
create index DailyDataMaterials_Index |
| 1348 |
on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
|
| 1349 |
|
| 1350 |
-- ????f?[?^ (??????w??)
|
| 1351 |
--* BackupToTempTable
|
| 1352 |
drop table if exists dailydatasubcontractors cascade; |
| 1353 |
|
| 1354 |
--* RestoreFromTempTable
|
| 1355 |
create table dailydatasubcontractors ( |
| 1356 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1357 |
, DailyDataDate date not null comment '???????' |
| 1358 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1359 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 1360 |
, Attendee varchar(100) comment '?o???' |
| 1361 |
, ContentsText varchar(200) comment '???e' |
| 1362 |
, EntryDate datetime not null comment '?o?^???t' |
| 1363 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1364 |
, constraint dailydatasubcontractors_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1365 |
) comment '????f?[?^ (??????w??)' ; |
| 1366 |
|
| 1367 |
create index DailyDataSubcontractors_Index |
| 1368 |
on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
|
| 1369 |
|
| 1370 |
-- ????f?[?^ (???)
|
| 1371 |
--* BackupToTempTable
|
| 1372 |
drop table if exists dailydatavehicles cascade; |
| 1373 |
|
| 1374 |
--* RestoreFromTempTable
|
| 1375 |
create table dailydatavehicles ( |
| 1376 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1377 |
, DailyDataDate date not null comment '???????' |
| 1378 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1379 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 1380 |
, Model varchar(100) comment '?@??' |
| 1381 |
, Performance varchar(100) comment '???\' |
| 1382 |
, Owner varchar(100) comment '???L???' |
| 1383 |
, Driver varchar(100) comment '?????^?]??' |
| 1384 |
, StartWorkingTime datetime not null comment '??????J?n' |
| 1385 |
, EndWorkingTime datetime not null comment '??????I??' |
| 1386 |
, EntryDate datetime not null comment '?o?^???t' |
| 1387 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1388 |
, constraint dailydatavehicles_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
|
| 1389 |
) comment '????f?[?^ (???)' ; |
| 1390 |
|
| 1391 |
create index DailyDataVehicles_Index
|
| 1392 |
on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
|
| 1393 |
|
| 1394 |
-- ???}?X?^
|
| 1395 |
--* BackupToTempTable
|
| 1396 |
drop table if exists daymaster cascade;
|
| 1397 |
|
| 1398 |
--* RestoreFromTempTable
|
| 1399 |
create table daymaster (
|
| 1400 |
days smallint(6) not null comment '??' |
| 1401 |
, constraint daymaster_PKC primary key (days)
|
| 1402 |
) comment '???}?X?^' ; |
| 1403 |
|
| 1404 |
-- ?????}?X?^
|
| 1405 |
--* BackupToTempTable
|
| 1406 |
drop table if exists deadlinemaster cascade;
|
| 1407 |
|
| 1408 |
--* RestoreFromTempTable
|
| 1409 |
create table deadlinemaster (
|
| 1410 |
LABOURKIND decimal(1,0) default '0' not null comment '??????' |
| 1411 |
, DEADLINE decimal(2,0) comment '????' |
| 1412 |
, PAYDAY decimal(2,0) comment '?x????' |
| 1413 |
, NOTE varchar(120) comment '???l' |
| 1414 |
, DELETEFLG decimal(1,0) comment '???t???O' |
| 1415 |
, ENTRYDATE datetime comment '?o?^???t' |
| 1416 |
, UPDATEDATE datetime comment '?X?V???t' |
| 1417 |
, constraint deadlinemaster_PKC primary key (LABOURKIND)
|
| 1418 |
) comment '?????}?X?^' ; |
| 1419 |
|
| 1420 |
-- ?????o???}?X?^
|
| 1421 |
--* BackupToTempTable
|
| 1422 |
drop table if exists departmentexpensesmaster cascade;
|
| 1423 |
|
| 1424 |
--* RestoreFromTempTable
|
| 1425 |
create table departmentexpensesmaster (
|
| 1426 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1427 |
, ExpensesPeriod smallint(6) not null comment '?????' |
| 1428 |
, NameCode decimal(5,0) unsigned not null comment '?o??R?[?h' |
| 1429 |
, NameString varchar(100) not null comment '????' |
| 1430 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 1431 |
, ExpensesRaito decimal(4,2) not null comment '?o??' |
| 1432 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1433 |
, EntryDate datetime not null comment '?o?^???t' |
| 1434 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1435 |
, constraint departmentexpensesmaster_PKC primary key (DepartmentCode,ExpensesPeriod,NameCode)
|
| 1436 |
) comment '?????o???}?X?^' ; |
| 1437 |
|
| 1438 |
-- ?????}?X?^
|
| 1439 |
--* BackupToTempTable
|
| 1440 |
drop table if exists departmentmaster cascade;
|
| 1441 |
|
| 1442 |
--* RestoreFromTempTable
|
| 1443 |
create table departmentmaster (
|
| 1444 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1445 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 1446 |
, DepartmentString varchar(100) not null comment '??????' |
| 1447 |
, ActionScheduleFlg decimal(1,0) not null comment '?s???\??\???t???O' |
| 1448 |
, StaffAssignFlg decimal(1,0) not null comment '?l???z?u?\???t???O' |
| 1449 |
, StartDate datetime not null comment '?J?n???t' |
| 1450 |
, CompDate datetime not null comment '?I?????t' |
| 1451 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1452 |
, EntryDate datetime not null comment '?o?^???t' |
| 1453 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1454 |
, constraint departmentmaster_PKC primary key (DepartmentCode)
|
| 1455 |
) comment '?????}?X?^' ; |
| 1456 |
|
| 1457 |
create index DepartmentMaster_index1
|
| 1458 |
on departmentmaster(DisplayOrder);
|
| 1459 |
|
| 1460 |
-- ?????m?F???F?f?[?^
|
| 1461 |
--* BackupToTempTable
|
| 1462 |
drop table if exists depositapprovalinfo cascade;
|
| 1463 |
|
| 1464 |
--* RestoreFromTempTable
|
| 1465 |
create table depositapprovalinfo (
|
| 1466 |
ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1467 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| 1468 |
, TARGETDATE decimal(6,0) not null comment '???N??' |
| 1469 |
, SEQNO decimal(3,0) not null comment '?A??' |
| 1470 |
, LINECOUNT decimal(3,0) not null comment '?s???' |
| 1471 |
, APPROVALNO decimal(3,0) not null comment '???F????' |
| 1472 |
, APPROVALPERSON decimal(8,0) comment '???F??R?[?h' |
| 1473 |
, APPROVALPERSONNAME varchar(20) comment '???F???' |
| 1474 |
, APPROVALAUTHORITY decimal(1,0) comment '???F??????' |
| 1475 |
, APPROVALDATE date comment '???F???t' |
| 1476 |
, ENTRYDATE datetime comment '?o?^???t' |
| 1477 |
, UPDATEDATE datetime comment '?X?V???t' |
| 1478 |
, constraint depositapprovalinfo_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
|
| 1479 |
) comment '?????m?F???F?f?[?^' ; |
| 1480 |
|
| 1481 |
-- ?????f?[?^
|
| 1482 |
--* BackupToTempTable
|
| 1483 |
drop table if exists depositdata cascade;
|
| 1484 |
|
| 1485 |
--* RestoreFromTempTable
|
| 1486 |
create table depositdata (
|
| 1487 |
ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1488 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| 1489 |
, TARGETDATE decimal(6,0) not null comment '???N??' |
| 1490 |
, SEQNO decimal(3,0) not null comment '?A??' |
| 1491 |
, BUSINESSPERIOD decimal(4,0) comment '?c???' |
| 1492 |
, DEPOSITDATE date comment '??????' |
| 1493 |
, DEPOSITAMOUNT decimal(12,0) comment '???????z' |
| 1494 |
, DEPOSITAMOUNTCASH decimal(10,0) comment '???????z?i?????j' |
| 1495 |
, DEPOSITAMOUNTBILL decimal(10,0) comment '???????z?i??`?j' |
| 1496 |
, FEES decimal(10,0) comment '????'
|
| 1497 |
, OTHERADJUSTMENTS decimal(10,0) comment '????'
|
| 1498 |
, CNSTRPRICE decimal(10,0) comment '?????'
|
| 1499 |
, REMAININGCLEARING decimal(10,0) comment '?????c???z'
|
| 1500 |
, DEPOSITPERSONCODE decimal(8,0) not null comment '?????S????R?[?h'
|
| 1501 |
, NOTE varchar(120) comment '???l'
|
| 1502 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1503 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1504 |
, constraint depositdata_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO)
|
| 1505 |
) comment '?????f?[?^' ;
|
| 1506 |
|
| 1507 |
-- ????????f?[?^
|
| 1508 |
--* BackupToTempTable
|
| 1509 |
drop table if exists depositdatadetail cascade;
|
| 1510 |
|
| 1511 |
--* RestoreFromTempTable
|
| 1512 |
create table depositdatadetail (
|
| 1513 |
ORDERERSDIVISION decimal(5,0) not null comment '???????'
|
| 1514 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
|
| 1515 |
, TARGETDATE decimal(6,0) not null comment '???N??'
|
| 1516 |
, REQUESTNO decimal(10,0) not null comment '????No'
|
| 1517 |
, ORDERNO decimal(2,0) not null comment '??t???'
|
| 1518 |
, DEPOSITMONTH decimal(6,0) not null comment '?????N??'
|
| 1519 |
, SEQNO decimal(3,0) not null comment '?????A??'
|
| 1520 |
, DEPOSITAMOUNT decimal(10,0) comment '???????z?i??????j'
|
| 1521 |
, TAXAMOUNT decimal(10,0) comment '?????'
|
| 1522 |
, DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'
|
| 1523 |
, CNSTRPRICE decimal(10,0) comment '?????'
|
| 1524 |
, FEES decimal(10,0) comment '????'
|
| 1525 |
, OTHERADJUSTMENTS decimal(10,0) comment '?????'
|
| 1526 |
, DIFFERENCEAMOUNT decimal(10,0) comment '????'
|
| 1527 |
, CONFIRMATIONPERSONCODE decimal(8,0) comment '?m?F?S????R?[?h'
|
| 1528 |
, CONFIRMATIONDATE date comment '?S????m?F???t'
|
| 1529 |
, CONFIRMATIONENDFLG decimal(1,0) comment '?m?F?????t???O'
|
| 1530 |
, NOTE varchar(120) comment '???l'
|
| 1531 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1532 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1533 |
, constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO,ORDERNO)
|
| 1534 |
) comment '????????f?[?^' ;
|
| 1535 |
|
| 1536 |
create index depositdatadetail_Index1
|
| 1537 |
on depositdatadetail(TARGETDATE);
|
| 1538 |
|
| 1539 |
create index depositdatadetail_Index2
|
| 1540 |
on depositdatadetail(ORDERERSDIVISION,ORDERERSCODE,DEPOSITMONTH,SEQNO);
|
| 1541 |
|
| 1542 |
-- ???}?X?^
|
| 1543 |
--* BackupToTempTable
|
| 1544 |
drop table if exists divisionmaster cascade;
|
| 1545 |
|
| 1546 |
--* RestoreFromTempTable
|
| 1547 |
create table divisionmaster (
|
| 1548 |
DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
|
| 1549 |
, NameCode decimal(5,0) unsigned not null comment '????R?[?h'
|
| 1550 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 1551 |
, NameString varchar(100) not null comment '????'
|
| 1552 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 1553 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1554 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1555 |
, constraint divisionmaster_PKC primary key (DivisionCode,NameCode)
|
| 1556 |
) comment '???}?X?^' ;
|
| 1557 |
|
| 1558 |
-- ??Z?\?Z???f?[?^
|
| 1559 |
--* BackupToTempTable
|
| 1560 |
drop table if exists estimatebudget cascade;
|
| 1561 |
|
| 1562 |
--* RestoreFromTempTable
|
| 1563 |
create table estimatebudget (
|
| 1564 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1565 |
, ConstructionTime decimal(5,2) unsigned not null comment '?H??'
|
| 1566 |
, IntegratedCode decimal(8,0) not null comment '??Z??'
|
| 1567 |
, DataCreateDate datetime not null comment '?f?[?^??????'
|
| 1568 |
, RetValue1 decimal(12,0) not null comment '?\???i'
|
| 1569 |
, RetValue2 decimal(12,0) not null comment '????H????'
|
| 1570 |
, RetValue3 decimal(12,0) not null comment '????????????'
|
| 1571 |
, RetValue4 decimal(12,0) not null comment '????????????'
|
| 1572 |
, RetPercent decimal(5,2) not null comment '???????'
|
| 1573 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1574 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1575 |
, constraint estimatebudget_PKC primary key (ConstructionCode)
|
| 1576 |
) comment '??Z?\?Z???f?[?^' ;
|
| 1577 |
|
| 1578 |
-- ??Z?\?Z????f?[?^????
|
| 1579 |
--* BackupToTempTable
|
| 1580 |
drop table if exists estimatebudgetdetail cascade;
|
| 1581 |
|
| 1582 |
--* RestoreFromTempTable
|
| 1583 |
create table estimatebudgetdetail (
|
| 1584 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1585 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
|
| 1586 |
, LineCount decimal(3,0) unsigned not null comment '?s???'
|
| 1587 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
|
| 1588 |
, ItemCode decimal(5,0) unsigned comment '?H??L?['
|
| 1589 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
| 1590 |
, FirstString varchar(120) comment '???????'
|
| 1591 |
, SecondString varchar(120) comment '?H????E???????'
|
| 1592 |
, Content varchar(120) comment '???e'
|
| 1593 |
, EstimatePrice decimal(12,0) not null comment '????????z'
|
| 1594 |
, NegotiationPrice decimal(12,0) not null comment '????????z'
|
| 1595 |
, Notes varchar(120) comment '???????'
|
| 1596 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1597 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1598 |
, constraint estimatebudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
|
| 1599 |
) comment '??Z?\?Z????f?[?^????' ;
|
| 1600 |
|
| 1601 |
-- ??Z????f?[?^
|
| 1602 |
--* BackupToTempTable
|
| 1603 |
drop table if exists estimatedata cascade;
|
| 1604 |
|
| 1605 |
--* RestoreFromTempTable
|
| 1606 |
create table estimatedata (
|
| 1607 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1608 |
, LineCount decimal(3,0) unsigned not null comment '?s???'
|
| 1609 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
|
| 1610 |
, FixedItemCode varchar(1) comment '?????L?['
|
| 1611 |
, ItemName varchar(120) comment '??????'
|
| 1612 |
, SpecName varchar(120) comment '???^?i???E?`??E???@' |
| 1613 |
, PriceValue decimal(14,0) not null comment '???z' |
| 1614 |
, note varchar(60) comment '???l' |
| 1615 |
, MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
| 1616 |
, InputFlg decimal(1,0) not null comment '????t???O' |
| 1617 |
, EntryDate datetime not null comment '?o?^???t' |
| 1618 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1619 |
, constraint estimatedata_PKC primary key (ConstructionCode,LineCount)
|
| 1620 |
) comment '??Z????f?[?^' ; |
| 1621 |
|
| 1622 |
create index EstimateData_Index1
|
| 1623 |
on estimatedata(ConstructionCode,FixedItemCode);
|
| 1624 |
|
| 1625 |
-- ??Z????y?[?W?f?[?^
|
| 1626 |
--* BackupToTempTable
|
| 1627 |
drop table if exists estimatedatabody cascade;
|
| 1628 |
|
| 1629 |
--* RestoreFromTempTable
|
| 1630 |
create table estimatedatabody (
|
| 1631 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1632 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| 1633 |
, Category decimal(1,0) not null comment '?y?[?W??' |
| 1634 |
, UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?[' |
| 1635 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 1636 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 1637 |
, SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?[' |
| 1638 |
, PageTitle varchar(120) not null comment '?y?[?W?\????' |
| 1639 |
, DetailLineCount decimal(3,0) unsigned not null comment '????s???' |
| 1640 |
, EntryDate datetime not null comment '?o?^???t' |
| 1641 |
, UpdateDate datetime not null comment '?X?V???t' |
| 1642 |
, constraint estimatedatabody_PKC primary key (ConstructionCode,PageCount)
|
| 1643 |
) comment '??Z????y?[?W?f?[?^' ; |
| 1644 |
|
| 1645 |
create index EstimateDataBody_Index1
|
| 1646 |
on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
|
| 1647 |
|
| 1648 |
-- ??Z????f?[?^????
|
| 1649 |
--* BackupToTempTable
|
| 1650 |
drop table if exists estimatedatadetail cascade;
|
| 1651 |
|
| 1652 |
--* RestoreFromTempTable
|
| 1653 |
create table estimatedatadetail (
|
| 1654 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1655 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| 1656 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| 1657 |
, DataType decimal(1,0) not null comment '?f?[?^???' |
| 1658 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 1659 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 1660 |
, SpecCode decimal(5,0) unsigned not null comment '???L?[' |
| 1661 |
, ItemName varchar(120) comment '??????' |
| 1662 |
, SpecName varchar(120) comment '???^?i???E?`??E???@' |
| 1663 |
, Unitcount decimal(8,2) not null comment '????'
|
| 1664 |
, UnitName varchar(30) comment '?P?????'
|
| 1665 |
, UnitPrice decimal(9,2) not null comment '?P??'
|
| 1666 |
, LineTotal decimal(12,0) not null comment '???z'
|
| 1667 |
, note varchar(60) comment '???l'
|
| 1668 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
| 1669 |
, MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
|
| 1670 |
, InputFlg decimal(1,0) comment '????t???O'
|
| 1671 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1672 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1673 |
, constraint estimatedatadetail_PKC primary key (ConstructionCode,PageCount,LineCount)
|
| 1674 |
) comment '??Z????f?[?^????' ;
|
| 1675 |
|
| 1676 |
create index EstimateDataDetail_Index1
|
| 1677 |
on estimatedatadetail(ConstructionCode,PageCount);
|
| 1678 |
|
| 1679 |
-- ?o???}?X?^
|
| 1680 |
--* BackupToTempTable
|
| 1681 |
drop table if exists expensesmaster cascade;
|
| 1682 |
|
| 1683 |
--* RestoreFromTempTable
|
| 1684 |
create table expensesmaster (
|
| 1685 |
DivisionCode smallint(6) not null comment '?H?????R?[?h'
|
| 1686 |
, NameCode smallint(6) not null comment '?o????R?[?h'
|
| 1687 |
, DisplayOrder smallint(6) not null comment '?\????'
|
| 1688 |
, ExpensesRatio decimal(4,2) not null comment '?o??'
|
| 1689 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 1690 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1691 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1692 |
, constraint expensesmaster_PKC primary key (DivisionCode,NameCode)
|
| 1693 |
) comment '?o???}?X?^' ;
|
| 1694 |
|
| 1695 |
-- ???x???}?X?^
|
| 1696 |
--* BackupToTempTable
|
| 1697 |
drop table if exists holidaycalendermaster cascade;
|
| 1698 |
|
| 1699 |
--* RestoreFromTempTable
|
| 1700 |
create table holidaycalendermaster (
|
| 1701 |
Holiday date not null comment '?x??'
|
| 1702 |
, BusinessYear smallint(5) unsigned not null comment '?c??N?x'
|
| 1703 |
, TargetMonth tinyint(3) unsigned not null comment '?Y????'
|
| 1704 |
, TargetDay tinyint(3) unsigned not null comment '?Y????'
|
| 1705 |
, constraint holidaycalendermaster_PKC primary key (Holiday)
|
| 1706 |
) comment '???x???}?X?^' ;
|
| 1707 |
|
| 1708 |
create index HolidayCalender_Index1
|
| 1709 |
on holidaycalendermaster(BusinessYear);
|
| 1710 |
|
| 1711 |
create index HolidayCalenderMaster_Index2
|
| 1712 |
on holidaycalendermaster(TargetMonth);
|
| 1713 |
|
| 1714 |
create index HolidayCalenderMaster_Index3
|
| 1715 |
on holidaycalendermaster(TargetDay);
|
| 1716 |
|
| 1717 |
-- ??????????f?[?^
|
| 1718 |
--* BackupToTempTable
|
| 1719 |
drop table if exists inputbillingdata cascade;
|
| 1720 |
|
| 1721 |
--* RestoreFromTempTable
|
| 1722 |
create table inputbillingdata (
|
| 1723 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 1724 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
| 1725 |
, SEQNO decimal(3,0) default '0' not null comment '?A??'
|
| 1726 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????'
|
| 1727 |
, FIELDNAME varchar(120) comment '????'
|
| 1728 |
, PERSONNAME varchar(60) comment '?S?????'
|
| 1729 |
, BILLPRICE decimal(10,0) comment '???????z'
|
| 1730 |
, CONSUMPTIONTAX decimal(10,0) comment '?????'
|
| 1731 |
, OTHERPRICE decimal(10,0) comment '??????'
|
| 1732 |
, DELETEFLG decimal(1,0) comment '???t???O'
|
| 1733 |
, ENTRYDATE datetime comment '?o?^?N????'
|
| 1734 |
, UPDATEDATE datetime comment '?X?V?N????'
|
| 1735 |
, constraint inputbillingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO)
|
| 1736 |
) comment '??????????f?[?^' ;
|
| 1737 |
|
| 1738 |
-- ?????????????f?[?^
|
| 1739 |
--* BackupToTempTable
|
| 1740 |
drop table if exists inputbillingdatadetail cascade;
|
| 1741 |
|
| 1742 |
--* RestoreFromTempTable
|
| 1743 |
create table inputbillingdatadetail (
|
| 1744 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 1745 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
| 1746 |
, SEQNO decimal(3,0) default '0' not null comment '?A??'
|
| 1747 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???'
|
| 1748 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????'
|
| 1749 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????'
|
| 1750 |
, CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '????????'
|
| 1751 |
, CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '??????'
|
| 1752 |
, FIELDNAME varchar(120) comment '????'
|
| 1753 |
, SECONDSTRING varchar(120) comment '?H?????e'
|
| 1754 |
, BILLPRICE decimal(10,0) comment '???????z'
|
| 1755 |
, HIGHWPRICE decimal(10,0) comment '??????'
|
| 1756 |
, HARDWPRICE decimal(10,0) comment '??????'
|
| 1757 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??'
|
| 1758 |
, NOTE varchar(120) comment '???l'
|
| 1759 |
, DELETEFLG decimal(1,0) comment '???t???O'
|
| 1760 |
, ENTRYDATE datetime comment '?o?^?N????'
|
| 1761 |
, UPDATEDATE datetime comment '?X?V?N????'
|
| 1762 |
, constraint inputbillingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
|
| 1763 |
) comment '?????????????f?[?^' ;
|
| 1764 |
|
| 1765 |
-- ????????????
|
| 1766 |
--* BackupToTempTable
|
| 1767 |
drop table if exists inputbillingstatus cascade;
|
| 1768 |
|
| 1769 |
--* RestoreFromTempTable
|
| 1770 |
create table inputbillingstatus (
|
| 1771 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 1772 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
| 1773 |
, SEQNO decimal(3,0) default '0' not null comment '?A??'
|
| 1774 |
, STATUS decimal(1,0) default '0' comment '???????'
|
| 1775 |
, ENTRYDATE datetime comment '?o?^?N????'
|
| 1776 |
, UPDATEDATE datetime comment '?X?V?N????'
|
| 1777 |
, constraint inputbillingstatus_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO)
|
| 1778 |
) comment '????????????' ;
|
| 1779 |
|
| 1780 |
-- ?????????????
|
| 1781 |
--* BackupToTempTable
|
| 1782 |
drop table if exists inputsearchlogdata cascade;
|
| 1783 |
|
| 1784 |
--* RestoreFromTempTable
|
| 1785 |
create table inputsearchlogdata (
|
| 1786 |
ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
|
| 1787 |
, UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
|
| 1788 |
, DisplayOrder decimal(4,0) unsigned not null comment '?\????'
|
| 1789 |
, DataType decimal(1,0) not null comment '?f?[?^???'
|
| 1790 |
, InputCode decimal(10,0) comment '????R?[?h'
|
| 1791 |
, constraint inputsearchlogdata_PKC primary key (ConstructionCode,UsedProcessNo,DisplayOrder)
|
| 1792 |
) comment '?????????????' ;
|
| 1793 |
|
| 1794 |
create index InputSearchLogData_Index1
|
| 1795 |
on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
|
| 1796 |
|
| 1797 |
-- ???????f?[?^
|
| 1798 |
--* BackupToTempTable
|
| 1799 |
drop table if exists invoicedata cascade;
|
| 1800 |
|
| 1801 |
--* RestoreFromTempTable
|
| 1802 |
create table invoicedata (
|
| 1803 |
INVOICENO decimal(9,0) not null comment '??????No'
|
| 1804 |
, ORDERERSDIVISION decimal(5,0) not null comment '???????'
|
| 1805 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
|
| 1806 |
, REQUESTMONTH decimal(6,0) not null comment '??????'
|
| 1807 |
, SEQNO decimal(2,0) not null comment '?A??'
|
| 1808 |
, CRETATEDATE date not null comment '????'
|
| 1809 |
, REQUESTDATE date not null comment '??????'
|
| 1810 |
, REQUESTNAME varchar(120) comment '??????'
|
| 1811 |
, TOTALAMOUNT decimal(10,0) comment '???????v???z'
|
| 1812 |
, TAXAMOUNT decimal(10,0) comment '???????z'
|
| 1813 |
, COMMENT1 varchar(60) comment '?R?????g1'
|
| 1814 |
, COMMENT2 varchar(60) comment '?R?????g2'
|
| 1815 |
, COMMENT3 varchar(60) not null comment '?R?????g3'
|
| 1816 |
, COMMENT4 varchar(60) not null comment '?R?????g4'
|
| 1817 |
, COMMENT5 varchar(60) not null comment '?R?????g5'
|
| 1818 |
, COMPLETEFLG decimal(1,0) default '0' not null comment '?????t???O'
|
| 1819 |
, ENTRYDATE datetime not null comment '?o?^?N????'
|
| 1820 |
, UPDATEDATE datetime not null comment '?X?V?N????'
|
| 1821 |
, constraint invoicedata_PKC primary key (INVOICENO)
|
| 1822 |
) comment '???????f?[?^' ;
|
| 1823 |
|
| 1824 |
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
|
| 1825 |
|
| 1826 |
-- ???[???R???e???c?}?X?^
|
| 1827 |
--* BackupToTempTable
|
| 1828 |
drop table if exists mailcontentsmaster cascade;
|
| 1829 |
|
| 1830 |
--* RestoreFromTempTable
|
| 1831 |
create table mailcontentsmaster (
|
| 1832 |
MailDelivery decimal(3,0) not null comment '???M??????'
|
| 1833 |
, MailTitle varchar(30) comment '???[???^?C?g??'
|
| 1834 |
, MailContent varchar(400) comment '???[???{??'
|
| 1835 |
, constraint mailcontentsmaster_PKC primary key (MailDelivery)
|
| 1836 |
) comment '???[???R???e???c?}?X?^' ;
|
| 1837 |
|
| 1838 |
-- ??????
|
| 1839 |
--* BackupToTempTable
|
| 1840 |
drop table if exists materialinfo cascade;
|
| 1841 |
|
| 1842 |
--* RestoreFromTempTable
|
| 1843 |
create table materialinfo (
|
| 1844 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1845 |
, MATERIALCOUNT smallint(5) unsigned comment '?????'
|
| 1846 |
, RENTCOUNT smallint(5) unsigned comment '??o??\??'
|
| 1847 |
, DELETEFLG smallint(5) unsigned comment '???t???O'
|
| 1848 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1849 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1850 |
, constraint materialinfo_PKC primary key (MATERIALITEMCODE)
|
| 1851 |
) comment '??????' ;
|
| 1852 |
|
| 1853 |
-- ????i??}?X?^
|
| 1854 |
--* BackupToTempTable
|
| 1855 |
drop table if exists materialitemmaster cascade;
|
| 1856 |
|
| 1857 |
--* RestoreFromTempTable
|
| 1858 |
create table materialitemmaster (
|
| 1859 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1860 |
, MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
|
| 1861 |
, MATERIALITEMNAME varchar(40) comment '????i?????'
|
| 1862 |
, DISPLAYORDER smallint(5) unsigned comment '?\????'
|
| 1863 |
, DELETEFLG tinyint(3) unsigned comment '???t???O'
|
| 1864 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1865 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1866 |
, VERSIONNO decimal(8,0) default '0' not null comment '?o?[?W???????'
|
| 1867 |
, constraint materialitemmaster_PKC primary key (MATERIALITEMCODE)
|
| 1868 |
) comment '????i??}?X?^' ;
|
| 1869 |
|
| 1870 |
-- ??????}?X?^
|
| 1871 |
--* BackupToTempTable
|
| 1872 |
drop table if exists materialkindmaster cascade;
|
| 1873 |
|
| 1874 |
--* RestoreFromTempTable
|
| 1875 |
create table materialkindmaster (
|
| 1876 |
MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
|
| 1877 |
, MATERIALKINDNAME varchar(40) comment '?????????'
|
| 1878 |
, DISPLAYORDER smallint(5) unsigned comment '?\????'
|
| 1879 |
, DELETEFLG tinyint(3) unsigned comment '???t???O'
|
| 1880 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1881 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1882 |
, constraint materialkindmaster_PKC primary key (MATERIALKINDCODE)
|
| 1883 |
) comment '??????}?X?^' ;
|
| 1884 |
|
| 1885 |
-- ??????????
|
| 1886 |
--* BackupToTempTable
|
| 1887 |
drop table if exists materialrecordinfo cascade;
|
| 1888 |
|
| 1889 |
--* RestoreFromTempTable
|
| 1890 |
create table materialrecordinfo (
|
| 1891 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1892 |
, PROCESSDATE date default '0000-00-00' not null comment '?????N????'
|
| 1893 |
, SEQNO smallint(5) unsigned default 0 not null comment '?A??'
|
| 1894 |
, RECKIND tinyint(3) unsigned comment '???R?[?h??'
|
| 1895 |
, CONSTRUCTIONCODE int(10) unsigned comment '?H?????'
|
| 1896 |
, PERSONCODE int(10) unsigned comment '?S????R?[?h'
|
| 1897 |
, MATERIALCOUNT smallint(5) unsigned comment '?????'
|
| 1898 |
, REPAYPLANDATE date comment '??p?\??N????'
|
| 1899 |
, COMMENTTEXT varchar(80) comment '?R?????g'
|
| 1900 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 1901 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 1902 |
, constraint materialrecordinfo_PKC primary key (MATERIALITEMCODE,PROCESSDATE,SEQNO)
|
| 1903 |
) comment '??????????' ;
|
| 1904 |
|
| 1905 |
-- ?f??????b?Z?[?W
|
| 1906 |
--* BackupToTempTable
|
| 1907 |
drop table if exists messageboarddata cascade;
|
| 1908 |
|
| 1909 |
--* RestoreFromTempTable
|
| 1910 |
create table messageboarddata (
|
| 1911 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1912 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
| 1913 |
, FromCode decimal(8,0) unsigned not null comment '???????R?[?h'
|
| 1914 |
, FromName varchar(60) not null comment '???????'
|
| 1915 |
, MessageTitile varchar(100) comment '?`???^?C?g??' |
| 1916 |
, MessageContent varchar(1333) not null comment '?`?????e' |
| 1917 |
, LinkType decimal(2,0) not null comment '?????N????^?C?v'
|
| 1918 |
, LinkMessage varchar(200) comment '?????N??????'
|
| 1919 |
, LinkCode varchar(30) comment '?????N?L?['
|
| 1920 |
, WritingDate datetime not null comment '?????????'
|
| 1921 |
, PersonCode decimal(8,0) not null comment '??????S????R?[?h'
|
| 1922 |
, ShareFlag decimal(2,0) not null comment '???????t???O'
|
| 1923 |
, MessageColor varchar(8) comment '?????F'
|
| 1924 |
, BackColor varchar(8) comment '?o?b?N?J???['
|
| 1925 |
, MessageFlag decimal(1,0) not null comment '???b?Z?[?W?t???O'
|
| 1926 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1927 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1928 |
, constraint messageboarddata_PKC primary key (RecordNumber,BranchNumber)
|
| 1929 |
) comment '?f??????b?Z?[?W' ;
|
| 1930 |
|
| 1931 |
create index MessageBoardData_Index1
|
| 1932 |
on messageboarddata(WritingDate);
|
| 1933 |
|
| 1934 |
create index MessageBoardData_Index2
|
| 1935 |
on messageboarddata(MessageFlag);
|
| 1936 |
|
| 1937 |
-- ?f???????e?[?u??
|
| 1938 |
--* BackupToTempTable
|
| 1939 |
drop table if exists messageboardterget cascade;
|
| 1940 |
|
| 1941 |
--* RestoreFromTempTable
|
| 1942 |
create table messageboardterget (
|
| 1943 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1944 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
| 1945 |
, SeqNum decimal(3,0) unsigned not null comment '????'
|
| 1946 |
, ToCode decimal(8,0) not null comment '????R?[?h'
|
| 1947 |
, ToName varchar(60) not null comment '????'
|
| 1948 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1949 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1950 |
, constraint messageboardterget_PKC primary key (RecordNumber,BranchNumber,SeqNum)
|
| 1951 |
) comment '?f???????e?[?u??' ;
|
| 1952 |
|
| 1953 |
create index MessageBoardTerget_Index1
|
| 1954 |
on messageboardterget(RecordNumber,BranchNumber);
|
| 1955 |
|
| 1956 |
-- ?f??????b?Z?[?W?{??????
|
| 1957 |
--* BackupToTempTable
|
| 1958 |
drop table if exists messagebrowsinghistory cascade;
|
| 1959 |
|
| 1960 |
--* RestoreFromTempTable
|
| 1961 |
create table messagebrowsinghistory (
|
| 1962 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1963 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
| 1964 |
, SeqNum decimal(3,0) unsigned not null comment '????'
|
| 1965 |
, BrowsingCode decimal(8,0) not null comment '?{????R?[?h'
|
| 1966 |
, BrowsingDate datetime not null comment '?{?????t'
|
| 1967 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1968 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1969 |
, constraint messagebrowsinghistory_PKC primary key (RecordNumber,BranchNumber,SeqNum)
|
| 1970 |
) comment '?f??????b?Z?[?W?{??????' ;
|
| 1971 |
|
| 1972 |
-- ???}?X?^
|
| 1973 |
--* BackupToTempTable
|
| 1974 |
drop table if exists monthmaster cascade;
|
| 1975 |
|
| 1976 |
--* RestoreFromTempTable
|
| 1977 |
create table monthmaster (
|
| 1978 |
month smallint(6) not null comment '??'
|
| 1979 |
, constraint monthmaster_PKC primary key (month)
|
| 1980 |
) comment '???}?X?^' ;
|
| 1981 |
|
| 1982 |
-- ???m?????
|
| 1983 |
--* BackupToTempTable
|
| 1984 |
drop table if exists notificationmessage cascade;
|
| 1985 |
|
| 1986 |
--* RestoreFromTempTable
|
| 1987 |
create table notificationmessage (
|
| 1988 |
MessageDate datetime not null comment '?\???N????'
|
| 1989 |
, SeqNo decimal(3,0) unsigned not null comment '?A??'
|
| 1990 |
, MessageTitle varchar(100) comment '???m???^?C?g??'
|
| 1991 |
, MessageContent varchar(1333) not null comment '???m?????e'
|
| 1992 |
, PersonCode decimal(8,0) not null comment '??????S????R?[?h'
|
| 1993 |
, ShareFlag decimal(2,0) not null comment '???????t???O'
|
| 1994 |
, MessageColor varchar(8) comment '?????F'
|
| 1995 |
, BackColor varchar(8) comment '?o?b?N?J???['
|
| 1996 |
, QueSeqNo decimal(8,0) default '0' not null comment '???M?L???[?A??'
|
| 1997 |
, EntryDate datetime not null comment '?o?^???t'
|
| 1998 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 1999 |
, constraint notificationmessage_PKC primary key (MessageDate,SeqNo)
|
| 2000 |
) comment '???m?????' ;
|
| 2001 |
|
| 2002 |
-- ???m???{?????
|
| 2003 |
--* BackupToTempTable
|
| 2004 |
drop table if exists notificationmessagebrowsing cascade;
|
| 2005 |
|
| 2006 |
--* RestoreFromTempTable
|
| 2007 |
create table notificationmessagebrowsing (
|
| 2008 |
MessageDate datetime not null comment '?\???N????'
|
| 2009 |
, SeqNo decimal(4,0) unsigned not null comment '?A??'
|
| 2010 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
| 2011 |
, BrowsingFlag decimal(1,0) unsigned default '0' not null comment '?{???t???O'
|
| 2012 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2013 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2014 |
, constraint notificationmessagebrowsing_PKC primary key (MessageDate,SeqNo,CompanyCode)
|
| 2015 |
) comment '???m???{?????' ;
|
| 2016 |
|
| 2017 |
create index NotificationMessageBrowsing_Index1
|
| 2018 |
on notificationmessagebrowsing(CompanyCode);
|
| 2019 |
|
| 2020 |
-- ???m???????I?????
|
| 2021 |
--* BackupToTempTable
|
| 2022 |
drop table if exists notificationmessageselect cascade;
|
| 2023 |
|
| 2024 |
--* RestoreFromTempTable
|
| 2025 |
create table notificationmessageselect (
|
| 2026 |
MessageDate datetime not null comment '?\???N????'
|
| 2027 |
, SeqNo decimal(4,0) unsigned not null comment '?A??'
|
| 2028 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
| 2029 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2030 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2031 |
, constraint notificationmessageselect_PKC primary key (MessageDate,SeqNo,CompanyCode)
|
| 2032 |
) comment '???m???????I?????' ;
|
| 2033 |
|
| 2034 |
-- ??????}?X?^
|
| 2035 |
--* BackupToTempTable
|
| 2036 |
drop table if exists orderersmaster cascade;
|
| 2037 |
|
| 2038 |
--* RestoreFromTempTable
|
| 2039 |
create table orderersmaster (
|
| 2040 |
OrderCotegory decimal(5,0) unsigned not null comment '???????'
|
| 2041 |
, OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
|
| 2042 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 2043 |
, OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
|
| 2044 |
, CorporateStatusName varchar(100) comment '?@?l?i????'
|
| 2045 |
, CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
|
| 2046 |
, OrderersName1 varchar(60) not null comment '???????1'
|
| 2047 |
, OrderersName2 varchar(60) comment '????????Q'
|
| 2048 |
, DepartmentName varchar(60) comment '??????'
|
| 2049 |
, ChargePersonName varchar(60) comment '?S?????'
|
| 2050 |
, ZipCode varchar(8) comment '?X????'
|
| 2051 |
, Address1 varchar(60) comment '?Z???P'
|
| 2052 |
, Address2 varchar(60) comment '?Z??2'
|
| 2053 |
, Address3 varchar(60) comment '?Z??3'
|
| 2054 |
, PhoneNumber varchar(13) comment '?d?b???'
|
| 2055 |
, FaxNumber varchar(13) comment 'FAX???'
|
| 2056 |
, MailAddress varchar(257) comment '???[???A?h???X'
|
| 2057 |
, Note varchar(300) comment '???l'
|
| 2058 |
, PersonCode decimal(8,0) not null comment '?o?^?S????R?[?h'
|
| 2059 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 2060 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2061 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2062 |
, constraint orderersmaster_PKC primary key (OrderCotegory,OrderersCode)
|
| 2063 |
) comment '??????}?X?^' ;
|
| 2064 |
|
| 2065 |
-- ????z?f?[?^
|
| 2066 |
--* BackupToTempTable
|
| 2067 |
drop table if exists orderspricedata cascade;
|
| 2068 |
|
| 2069 |
--* RestoreFromTempTable
|
| 2070 |
create table orderspricedata (
|
| 2071 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2072 |
, ChangeNo decimal(3,0) unsigned not null comment '??X???'
|
| 2073 |
, ChangeDate date not null comment '??X??'
|
| 2074 |
, ChangePersonCode decimal(8,0) unsigned not null comment '??X??R?[?h'
|
| 2075 |
, ChangePersonName varchar(60) comment '??X???'
|
| 2076 |
, BeforeValue decimal(14,0) not null comment '??X?O???????z'
|
| 2077 |
, BeforeValueInTax decimal(14,0) not null comment '??X?O???????z'
|
| 2078 |
, AfterValue decimal(14,0) not null comment '??X????????z'
|
| 2079 |
, AfterValueInTax decimal(14,0) not null comment '??X????????z'
|
| 2080 |
, ChangeComment varchar(200) comment '??X???R'
|
| 2081 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2082 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2083 |
, constraint orderspricedata_PKC primary key (ConstructionCode,ChangeNo)
|
| 2084 |
) comment '????z?f?[?^' ;
|
| 2085 |
|
| 2086 |
-- ?x?????F???f?[?^
|
| 2087 |
--* BackupToTempTable
|
| 2088 |
drop table if exists paymentapprovalinfo cascade;
|
| 2089 |
|
| 2090 |
--* RestoreFromTempTable
|
| 2091 |
create table paymentapprovalinfo (
|
| 2092 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 2093 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
| 2094 |
, SEQNO decimal(3,0) default '0' not null comment '?A??'
|
| 2095 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???'
|
| 2096 |
, APPROVALNO decimal(3,0) default '0' not null comment '???F????'
|
| 2097 |
, APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
|
| 2098 |
, APPROVALPERSONNAME varchar(20) comment '???F???'
|
| 2099 |
, APPROVALAUTHORITY decimal(1,0) comment '???F??????'
|
| 2100 |
, APPROVALDATE date comment '???F???t'
|
| 2101 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 2102 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 2103 |
, constraint paymentapprovalinfo_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
|
| 2104 |
) comment '?x?????F???f?[?^' ;
|
| 2105 |
|
| 2106 |
-- ?x??????f?[?^
|
| 2107 |
--* BackupToTempTable
|
| 2108 |
drop table if exists paymentdatadetail cascade;
|
| 2109 |
|
| 2110 |
--* RestoreFromTempTable
|
| 2111 |
create table paymentdatadetail (
|
| 2112 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 2113 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
| 2114 |
, SEQNO decimal(3,0) default '0' not null comment '?A??'
|
| 2115 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???'
|
| 2116 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????'
|
| 2117 |
, BILLPRICE decimal(10,0) comment '???????z'
|
| 2118 |
, DISCOUNTPRICE decimal(10,0) comment '?l???????z'
|
| 2119 |
, OFFSETPRICE decimal(10,0) comment '???E???z'
|
| 2120 |
, NEXTCOPRICE decimal(10,0) comment '????J?z'
|
| 2121 |
, HIGHWPRICE decimal(10,0) comment '??????'
|
| 2122 |
, HARDWPRICE decimal(10,0) comment '??????'
|
| 2123 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??'
|
| 2124 |
, CNSTRPRICE decimal(10,0) comment '?????'
|
| 2125 |
, CNSTRPRICEEXIST decimal(1,0) comment '??????L??'
|
| 2126 |
, APPROVALPERSONCODE decimal(8,0) comment '?\???S????R?[?h'
|
| 2127 |
, APPROVALDATE date comment '?S????\?????t'
|
| 2128 |
, APPROVALENDFLG decimal(1,0) comment '???F?????t???O'
|
| 2129 |
, ENTRYDATE datetime comment '?o?^???t'
|
| 2130 |
, UPDATEDATE datetime comment '?X?V???t'
|
| 2131 |
, constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,LABOURKIND)
|
| 2132 |
) comment '?x??????f?[?^' ;
|
| 2133 |
|
| 2134 |
create index PayDataDetail_Index1
|
| 2135 |
on paymentdatadetail(TARGETDATE);
|
| 2136 |
|
| 2137 |
create index PayDataDetail_Index2
|
| 2138 |
on paymentdatadetail(APPROVALPERSONCODE);
|
| 2139 |
|
| 2140 |
-- ?H??????????f?[?^
|
| 2141 |
--* BackupToTempTable
|
| 2142 |
drop table if exists periodavoidance cascade;
|
| 2143 |
|
| 2144 |
--* RestoreFromTempTable
|
| 2145 |
create table periodavoidance (
|
| 2146 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2147 |
, ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
|
| 2148 |
, FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???' |
| 2149 |
, EntryDate datetime not null comment '?o?^???t' |
| 2150 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2151 |
, constraint periodavoidance_PKC primary key (ConstructionCode,ConstructionStatusFlg,FieldNo)
|
| 2152 |
) comment '?H??????????f?[?^' ; |
| 2153 |
|
| 2154 |
create index PeriodAvoidance_Index1
|
| 2155 |
on periodavoidance(ConstructionCode);
|
| 2156 |
|
| 2157 |
create index PeriodAvoidance_Index2
|
| 2158 |
on periodavoidance(ConstructionStatusFlg);
|
| 2159 |
|
| 2160 |
create index PeriodAvoidance_Index3
|
| 2161 |
on periodavoidance(FieldNo);
|
| 2162 |
|
| 2163 |
-- ?S??????F?f?[?^
|
| 2164 |
--* BackupToTempTable
|
| 2165 |
drop table if exists personapproval cascade;
|
| 2166 |
|
| 2167 |
--* RestoreFromTempTable
|
| 2168 |
create table personapproval (
|
| 2169 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2170 |
, ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
| 2171 |
, OrderDate decimal(6,0) unsigned not null comment '??t??' |
| 2172 |
, OrderNo decimal(2,0) unsigned not null comment '??t???' |
| 2173 |
, SeqNo decimal(2,0) not null comment '?}??' |
| 2174 |
, PersonCodeApproval decimal(8,0) unsigned not null comment '?\???E???F??R?[?h' |
| 2175 |
, PetitionApprovalDate datetime not null comment '?\???E???F???t' |
| 2176 |
, ApprovalLimitDates datetime not null comment '???F??]??' |
| 2177 |
, ApprovalStatus decimal(1,0) not null comment '???F???' |
| 2178 |
, InputComment varchar(300) comment '?R?????g' |
| 2179 |
, EntryDate datetime not null comment '?o?^???t' |
| 2180 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2181 |
, constraint personapproval_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,SeqNo)
|
| 2182 |
) comment '?S??????F?f?[?^' ; |
| 2183 |
|
| 2184 |
create index personapproval_Index1
|
| 2185 |
on personapproval(PersonCode);
|
| 2186 |
|
| 2187 |
create index personapproval_Index2
|
| 2188 |
on personapproval(ApprovalCode);
|
| 2189 |
|
| 2190 |
create index personapproval_Index3
|
| 2191 |
on personapproval(OrderDate);
|
| 2192 |
|
| 2193 |
create index personapproval_Index4
|
| 2194 |
on personapproval(OrderNo);
|
| 2195 |
|
| 2196 |
create index personapproval_Index5
|
| 2197 |
on personapproval(PersonCodeApproval);
|
| 2198 |
|
| 2199 |
-- ?S??????F?R?????g?f?[?^
|
| 2200 |
--* BackupToTempTable
|
| 2201 |
drop table if exists personapprovalcomment cascade;
|
| 2202 |
|
| 2203 |
--* RestoreFromTempTable
|
| 2204 |
create table personapprovalcomment (
|
| 2205 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2206 |
, ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
| 2207 |
, OrderDate decimal(6,0) unsigned not null comment '??t??' |
| 2208 |
, OrderNo decimal(2,0) unsigned not null comment '??t???' |
| 2209 |
, CommentNo decimal(2,0) not null comment '?R?????g???' |
| 2210 |
, ParentNo decimal(2,0) not null comment '?e?R?????g???' |
| 2211 |
, ApproValComment varchar(300) comment '?w???E?A???R?????g' |
| 2212 |
, EntryDate datetime not null comment '?o?^???t' |
| 2213 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2214 |
, constraint personapprovalcomment_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,CommentNo)
|
| 2215 |
) comment '?S??????F?R?????g?f?[?^' ; |
| 2216 |
|
| 2217 |
-- ?S??????????}?X?^
|
| 2218 |
--* BackupToTempTable
|
| 2219 |
drop table if exists persondepartmentmaster cascade;
|
| 2220 |
|
| 2221 |
--* RestoreFromTempTable
|
| 2222 |
create table persondepartmentmaster (
|
| 2223 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2224 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 2225 |
, AffiliationFlg decimal(1,0) not null comment '?????t???O' |
| 2226 |
, EntryDate datetime not null comment '?o?^???t' |
| 2227 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2228 |
, constraint persondepartmentmaster_PKC primary key (PersonCode,DepartmentCode)
|
| 2229 |
) comment '?S??????????}?X?^' ; |
| 2230 |
|
| 2231 |
create index PersonDepartmentMaster_Index1
|
| 2232 |
on persondepartmentmaster(PersonCode);
|
| 2233 |
|
| 2234 |
create index PersonDepartmentMaster_Index2
|
| 2235 |
on persondepartmentmaster(DepartmentCode);
|
| 2236 |
|
| 2237 |
-- ?S????}?X?^
|
| 2238 |
--* BackupToTempTable
|
| 2239 |
drop table if exists personinchargemaster cascade;
|
| 2240 |
|
| 2241 |
--* RestoreFromTempTable
|
| 2242 |
create table personinchargemaster (
|
| 2243 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2244 |
, DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
| 2245 |
, PersonName varchar(60) not null comment '?S?????' |
| 2246 |
, PersonNameKana varchar(60) comment '?t???K?i' |
| 2247 |
, Sex decimal(1,0) default '0' comment '????' |
| 2248 |
, BloodType varchar(6) comment '???t?^' |
| 2249 |
, Birthday date not null comment '???N????' |
| 2250 |
, ZipCode varchar(8) comment '?X????' |
| 2251 |
, Address1 varchar(60) comment '???Z??1' |
| 2252 |
, Address2 varchar(60) comment '???Z??2' |
| 2253 |
, Address3 varchar(60) comment '???Z??3' |
| 2254 |
, PhoneNumber varchar(13) comment '?A????d?b???' |
| 2255 |
, EmgPhoneNumber varchar(13) comment '??}?A????d?b???' |
| 2256 |
, EmgContact varchar(60) comment '??}?A????' |
| 2257 |
, StartDate date not null comment '????N????' |
| 2258 |
, EndDate date comment '???N????' |
| 2259 |
, PassWord varchar(16) comment '?p?X???[?h' |
| 2260 |
, SecurityManagement decimal(1,0) not null comment '?@????' |
| 2261 |
, SecCode decimal(2,0) unsigned not null comment '???????' |
| 2262 |
, MsgBackColor varchar(8) comment '???b?Z?[?W?w?i?F' |
| 2263 |
, DisplayString varchar(20) comment '??E????' |
| 2264 |
, DepartmentCode decimal(5,0) unsigned comment '?????R?[?h' |
| 2265 |
, MonthlySalary decimal(11,0) not null comment '???????z' |
| 2266 |
, YearSalary decimal(12,0) not null comment '?N????z' |
| 2267 |
, Qualification varchar(120) comment '???i?????' |
| 2268 |
, SealPrintName varchar(5) comment '???\????' |
| 2269 |
, EmployeeClassFlg decimal(1,0) not null comment '?????' |
| 2270 |
, LedgerFlg decimal(1,0) not null comment '???v?Z???t???O' |
| 2271 |
, CommutingDistance decimal(5,2) not null comment '??????' |
| 2272 |
, CommuteCosts decimal(5,0) not null comment '??????' |
| 2273 |
, PaidVacationDays decimal(4,1) not null comment '???N?x?L???x?????' |
| 2274 |
, PaidVacationDaysPrev decimal(4,1) not null comment '?O?N?x?L???x?????' |
| 2275 |
, WorkingCode decimal(3,0) unsigned not null comment '?A??R?[?h' |
| 2276 |
, PaidDayOffFlg decimal(1,0) unsigned not null comment '?L?????t???O' |
| 2277 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 2278 |
, EntryDate datetime not null comment '?o?^???t' |
| 2279 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2280 |
, constraint personinchargemaster_PKC primary key (PersonCode)
|
| 2281 |
) comment '?S????}?X?^' ; |
| 2282 |
|
| 2283 |
create index PersonInChargeMaster_Index1
|
| 2284 |
on personinchargemaster(StartDate);
|
| 2285 |
|
| 2286 |
create index PersonInChargeMaster_Index2
|
| 2287 |
on personinchargemaster(DepartmentCode);
|
| 2288 |
|
| 2289 |
-- ?S??????i?f?[?^
|
| 2290 |
--* BackupToTempTable
|
| 2291 |
drop table if exists personqualification cascade;
|
| 2292 |
|
| 2293 |
--* RestoreFromTempTable
|
| 2294 |
create table personqualification (
|
| 2295 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2296 |
, SeqNo decimal(3,0) unsigned not null comment '?f?[?^????' |
| 2297 |
, DCode decimal(5,0) unsigned not null comment '?????' |
| 2298 |
, Qcode decimal(5,0) unsigned not null comment '???i?R?[?h' |
| 2299 |
, DateOfAcquisition datetime not null comment '???i?????t' |
| 2300 |
, Qualification varchar(120) comment '????????i??' |
| 2301 |
, Notes varchar(120) comment '???l' |
| 2302 |
, EntryDate datetime not null comment '?o?^???t' |
| 2303 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2304 |
, constraint personqualification_PKC primary key (PersonCode,SeqNo)
|
| 2305 |
) comment '?S??????i?f?[?^' ; |
| 2306 |
|
| 2307 |
-- ?S??????^?}?X?^
|
| 2308 |
--* BackupToTempTable
|
| 2309 |
drop table if exists personsalarymaster cascade;
|
| 2310 |
|
| 2311 |
--* RestoreFromTempTable
|
| 2312 |
create table personsalarymaster (
|
| 2313 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 2314 |
, StartDate date not null comment '?g?p?J?n?N????' |
| 2315 |
, MonthlySalary decimal(11,0) not null comment '???????z' |
| 2316 |
, YearSalary decimal(12,0) not null comment '?N????z' |
| 2317 |
, EntryDate datetime not null comment '?o?^???t' |
| 2318 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2319 |
, constraint personsalarymaster_PKC primary key (PersonCode,StartDate)
|
| 2320 |
) comment '?S??????^?}?X?^' ; |
| 2321 |
|
| 2322 |
create index PersonSalaryMaster_Index1
|
| 2323 |
on personsalarymaster(PersonCode);
|
| 2324 |
|
| 2325 |
create index PersonSalaryMaster_Index2
|
| 2326 |
on personsalarymaster(StartDate);
|
| 2327 |
|
| 2328 |
create index PersonSalaryMaster_Index3
|
| 2329 |
on personsalarymaster(MonthlySalary);
|
| 2330 |
|
| 2331 |
-- ?w???????f?[?^
|
| 2332 |
--* BackupToTempTable
|
| 2333 |
drop table if exists pointingoutcomment cascade;
|
| 2334 |
|
| 2335 |
--* RestoreFromTempTable
|
| 2336 |
create table pointingoutcomment (
|
| 2337 |
ConstructionCode decimal(10,0) not null comment '?H???R?[?h' |
| 2338 |
, ProcessNo smallint(6) not null comment '????????i??????j' |
| 2339 |
, SeqNo smallint(6) not null comment '????' |
| 2340 |
, PageCount smallint(6) not null comment '?y?[?W???' |
| 2341 |
, PersonCode decimal(8,0) not null comment '?L????R?[?h' |
| 2342 |
, DrowColor varchar(8) comment '?`??F' |
| 2343 |
, CommentMessage varchar(1000) comment '???b?Z?[?W'
|
| 2344 |
, StartPointX smallint(6) not null comment '?w?E?????u?w'
|
| 2345 |
, StartPointY smallint(6) not null comment '?w?E?????u?x'
|
| 2346 |
, CurrentPointX smallint(6) not null comment '??????u?w'
|
| 2347 |
, CurrentPointY smallint(6) not null comment '??????u?x'
|
| 2348 |
, CurrentWidth smallint(6) not null comment '?\???T?C?YWidth'
|
| 2349 |
, CurrentHeight smallint(6) not null comment '?\???T?C?YHeigth'
|
| 2350 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2351 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2352 |
, constraint pointingoutcomment_PKC primary key (ConstructionCode,ProcessNo,SeqNo)
|
| 2353 |
) comment '?w???????f?[?^' ;
|
| 2354 |
|
| 2355 |
-- ?????????????c???^?f?[?^
|
| 2356 |
--* BackupToTempTable
|
| 2357 |
drop table if exists proceedingsdata cascade;
|
| 2358 |
|
| 2359 |
--* RestoreFromTempTable
|
| 2360 |
create table proceedingsdata (
|
| 2361 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2362 |
, ProceedingsDataDate date not null comment '?c???^????'
|
| 2363 |
, StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
| 2364 |
, EndMeetingTime decimal(4,0) unsigned not null comment '??c????I??'
|
| 2365 |
, CreatorCode decimal(8,0) not null comment '????R?[?h'
|
| 2366 |
, PalceFlag decimal(1,0) not null comment '???n?t???O'
|
| 2367 |
, MeetingPalce varchar(120) comment '???????'
|
| 2368 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2369 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2370 |
, constraint proceedingsdata_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime)
|
| 2371 |
) comment '?????????????c???^?f?[?^' ;
|
| 2372 |
|
| 2373 |
-- ?????????????c???^?f?[?^?i?o???j
|
| 2374 |
--* BackupToTempTable
|
| 2375 |
drop table if exists proceedingsdataattend cascade;
|
| 2376 |
|
| 2377 |
--* RestoreFromTempTable
|
| 2378 |
create table proceedingsdataattend (
|
| 2379 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2380 |
, ProceedingsDataDate date not null comment '?c???^????'
|
| 2381 |
, StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
| 2382 |
, SeqNo decimal(3,0) unsigned not null comment '????s???'
|
| 2383 |
, Department varchar(20) comment '?o??????'
|
| 2384 |
, AttendName varchar(10) comment '?o??????'
|
| 2385 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2386 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2387 |
, constraint proceedingsdataattend_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
|
| 2388 |
) comment '?????????????c???^?f?[?^?i?o???j' ;
|
| 2389 |
|
| 2390 |
-- ?????????????c???^?f?[?^?i????j
|
| 2391 |
--* BackupToTempTable
|
| 2392 |
drop table if exists proceedingsdatadetail cascade;
|
| 2393 |
|
| 2394 |
--* RestoreFromTempTable
|
| 2395 |
create table proceedingsdatadetail (
|
| 2396 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2397 |
, ProceedingsDataDate date not null comment '?c???^????'
|
| 2398 |
, StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
| 2399 |
, SeqNo decimal(3,0) unsigned not null comment '????s???'
|
| 2400 |
, TitleNo varchar(5) comment '?c????'
|
| 2401 |
, Title varchar(20) comment '?c??'
|
| 2402 |
, ContentsText varchar(50) comment '???e'
|
| 2403 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2404 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2405 |
, constraint proceedingsdatadetail_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
|
| 2406 |
) comment '?????????????c???^?f?[?^?i????j' ;
|
| 2407 |
|
| 2408 |
-- ???F?f?[?^
|
| 2409 |
--* BackupToTempTable
|
| 2410 |
drop table if exists processapproval cascade;
|
| 2411 |
|
| 2412 |
--* RestoreFromTempTable
|
| 2413 |
create table processapproval (
|
| 2414 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2415 |
, ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
| 2416 |
, OrderNo decimal(2,0) unsigned not null comment '??t???'
|
| 2417 |
, SeqNo decimal(2,0) not null comment '?}??'
|
| 2418 |
, PersonCode decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
|
| 2419 |
, PetitionApprovalDate datetime not null comment '?\???E???F???t'
|
| 2420 |
, ApprovalLimitDates datetime not null comment '???F??]??'
|
| 2421 |
, ApprovalStatus decimal(1,0) not null comment '???F???'
|
| 2422 |
, InputComment varchar(300) comment '?R?????g'
|
| 2423 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2424 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2425 |
, constraint processapproval_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SeqNo)
|
| 2426 |
) comment '???F?f?[?^' ;
|
| 2427 |
|
| 2428 |
-- ???F?R?????g?f?[?^
|
| 2429 |
--* BackupToTempTable
|
| 2430 |
drop table if exists processapprovalcomment cascade;
|
| 2431 |
|
| 2432 |
--* RestoreFromTempTable
|
| 2433 |
create table processapprovalcomment (
|
| 2434 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2435 |
, ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
| 2436 |
, OrderNo decimal(2,0) unsigned not null comment '??t???'
|
| 2437 |
, CommentNo decimal(2,0) not null comment '?R?????g???'
|
| 2438 |
, ParentNo decimal(2,0) not null comment '?e?R?????g???'
|
| 2439 |
, ApproValComment varchar(300) comment '?w???E?A???R?????g'
|
| 2440 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2441 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2442 |
, constraint processapprovalcomment_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,CommentNo)
|
| 2443 |
) comment '???F?R?????g?f?[?^' ;
|
| 2444 |
|
| 2445 |
-- ???F????f?[?^
|
| 2446 |
--* BackupToTempTable
|
| 2447 |
drop table if exists processapprovaldetail cascade;
|
| 2448 |
|
| 2449 |
--* RestoreFromTempTable
|
| 2450 |
create table processapprovaldetail (
|
| 2451 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2452 |
, ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
| 2453 |
, OrderNo decimal(2,0) unsigned not null comment '??t???'
|
| 2454 |
, SerialNo decimal(2,0) unsigned not null comment '?}??'
|
| 2455 |
, LinkCode decimal(10,0) not null comment '?????N???'
|
| 2456 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2457 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2458 |
, constraint processapprovaldetail_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SerialNo)
|
| 2459 |
) comment '???F????f?[?^' ;
|
| 2460 |
|
| 2461 |
-- ?N?????}?X?^
|
| 2462 |
--* BackupToTempTable
|
| 2463 |
drop table if exists processexcutemaster cascade;
|
| 2464 |
|
| 2465 |
--* RestoreFromTempTable
|
| 2466 |
create table processexcutemaster (
|
| 2467 |
SecCode decimal(2,0) unsigned not null comment '???????'
|
| 2468 |
, ExecCode decimal(4,0) unsigned not null comment '?N?????????'
|
| 2469 |
, EditFlg decimal(1,0) not null comment '??W?t???O'
|
| 2470 |
, EntryDate datetime not null comment '?o?^???t'
|
| 2471 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 2472 |
, constraint processexcutemaster_PKC primary key (SecCode,ExecCode)
|
| 2473 |
) comment '?N?????}?X?^' ;
|
| 2474 |
|
| 2475 |
create index ProcessExcuteMaster_Index1
|
| 2476 |
on processexcutemaster(SecCode);
|
| 2477 |
|
| 2478 |
create index ProcessExcuteMaster_Index2
|
| 2479 |
on processexcutemaster(ExecCode);
|
| 2480 |
|
| 2481 |
-- ???????f?[?^
|
| 2482 |
--* BackupToTempTable
|
| 2483 |
drop table if exists purchaseorder cascade;
|
| 2484 |
|
| 2485 |
--* RestoreFromTempTable
|
| 2486 |
create table purchaseorder (
|
| 2487 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 2488 |
, SeqNo decimal(3,0) unsigned not null comment '???????}??'
|
| 2489 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
| 2490 |
, CreateDate date comment '?????t'
|
| 2491 |
, OrderPrice decimal(12,0) not null comment '???????z'
|
| 2492 |
, LastRowStringDate date not null comment '??I?s?\?????t'
|
| 2493 |
, OrderSheetType decimal(1,0) not null comment '???E?{???t???O'
|
| 2494 |
, PaymentTerms decimal(1,0) not null comment '?x????????'
|
| 2495 |
, CashRatio decimal(4,1) not null comment '?????????i???j'
|
| 2496 |
, BillPeriod decimal(4,0) not null comment '??`????' |
| 2497 |
, PrePayments decimal(1,0) not null comment '?O????' |
| 2498 |
, PrePaymentsDays decimal(3,0) not null comment '?O????????' |
| 2499 |
, PrePaymentsPrice decimal(12,0) not null comment '?O???????z' |
| 2500 |
, PartialPayment decimal(1,0) not null comment '??????' |
| 2501 |
, PartialPaymentMounth decimal(2,0) unsigned not null comment '???????????' |
| 2502 |
, PartialPaymentDay1 decimal(2,0) unsigned not null comment '???????????' |
| 2503 |
, PartialPaymentDay2 decimal(2,0) unsigned not null comment '???????x????' |
| 2504 |
, PartialPaymentPrice decimal(12,0) not null comment '?????????z' |
| 2505 |
, CompletionPayment decimal(1,0) not null comment '???n??????x??' |
| 2506 |
, CompletionPaymentDays decimal(3,0) unsigned not null comment '???n??????x??????' |
| 2507 |
, CompletionPaymentPrice decimal(12,0) not null comment '???n??????x?????z' |
| 2508 |
, LeadEngineerCode decimal(8,0) comment '??C?Z?p??R?[?h' |
| 2509 |
, LeadEngineerName varchar(60) comment '??C?Z?p???' |
| 2510 |
, SafetyOfficerCode decimal(8,0) comment '???S?????R?[?h' |
| 2511 |
, SafetyOfficerName varchar(60) comment '???S??????' |
| 2512 |
, WorkersCount decimal(3,0) unsigned comment '??????' |
| 2513 |
, PrintoutDate date not null comment '????N????' |
| 2514 |
, RePrintFlag decimal(1,0) default '0' not null comment '??????\?t???O?i???g?p?j' |
| 2515 |
, OrderDate date not null comment '??E?L?????Z???N????' |
| 2516 |
, OrderStatus decimal(1,0) default '0' not null comment '????' |
| 2517 |
, OrderStDate date not null comment '???H??' |
| 2518 |
, OrderEdDate date not null comment '??????' |
| 2519 |
, EntryDate datetime not null comment '?o?^???t' |
| 2520 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2521 |
, constraint purchaseorder_PKC primary key (ConstructionCode,SeqNo)
|
| 2522 |
) comment '???????f?[?^' ; |
| 2523 |
|
| 2524 |
-- ?????????t?f?[?^
|
| 2525 |
--* BackupToTempTable
|
| 2526 |
drop table if exists purchaseorderdate cascade;
|
| 2527 |
|
| 2528 |
--* RestoreFromTempTable
|
| 2529 |
create table purchaseorderdate (
|
| 2530 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2531 |
, SeqNo decimal(3,0) unsigned not null comment '???????}??' |
| 2532 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 2533 |
, SendDate date not null comment '???????X????' |
| 2534 |
, ReturnDate date not null comment '???????????' |
| 2535 |
, ReturnCheckDate date not null comment '??????????m?F??' |
| 2536 |
, EntryDate datetime not null comment '?o?^???t' |
| 2537 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2538 |
, constraint purchaseorderdate_PKC primary key (ConstructionCode,SeqNo)
|
| 2539 |
) comment '?????????t?f?[?^' ; |
| 2540 |
|
| 2541 |
-- ??????????f?[?^
|
| 2542 |
--* BackupToTempTable
|
| 2543 |
drop table if exists purchaseorderdetail cascade;
|
| 2544 |
|
| 2545 |
--* RestoreFromTempTable
|
| 2546 |
create table purchaseorderdetail (
|
| 2547 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2548 |
, SeqNo decimal(3,0) unsigned not null comment '???????}??' |
| 2549 |
, GroupCount decimal(1,0) not null comment '?O???[?v???' |
| 2550 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| 2551 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 2552 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 2553 |
, FirstString varchar(120) comment '?H??E?i??' |
| 2554 |
, SecondString varchar(120) comment '???e????' |
| 2555 |
, UnitCount decimal(8,2) not null comment '????' |
| 2556 |
, UnitName varchar(30) comment '?P??' |
| 2557 |
, UnitPrice decimal(10,0) not null comment '?P??' |
| 2558 |
, OrdersLinePrice decimal(12,0) comment '???z' |
| 2559 |
, SourceCode decimal(10,0) unsigned not null comment '???H?????' |
| 2560 |
, SourceDetailCnt decimal(4,0) unsigned not null comment '????????' |
| 2561 |
, DataTypeFlag decimal(1,0) unsigned not null comment '?f?[?^?^?C?v?t???O' |
| 2562 |
, StatutoryWelfareRate decimal(4,2) not null comment '?@???????' |
| 2563 |
, EntryDate datetime not null comment '?o?^???t' |
| 2564 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2565 |
, constraint purchaseorderdetail_PKC primary key (ConstructionCode,SeqNo,GroupCount,LineCount)
|
| 2566 |
) comment '??????????f?[?^' ; |
| 2567 |
|
| 2568 |
create index POrderDetail_Index1
|
| 2569 |
on purchaseorderdetail(SourceCode);
|
| 2570 |
|
| 2571 |
-- ???i?}?X?^
|
| 2572 |
--* BackupToTempTable
|
| 2573 |
drop table if exists qualificationmaster cascade;
|
| 2574 |
|
| 2575 |
--* RestoreFromTempTable
|
| 2576 |
create table qualificationmaster (
|
| 2577 |
DCode decimal(5,0) unsigned not null comment '?????' |
| 2578 |
, Qcode decimal(5,0) unsigned not null comment '???i?R?[?h' |
| 2579 |
, Qualification varchar(120) comment '????E???i??' |
| 2580 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 2581 |
, DeleteFlg decimal(1,0) default '0' not null comment '???t???O' |
| 2582 |
, EntryDate datetime not null comment '?o?^???t' |
| 2583 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2584 |
, constraint qualificationmaster_PKC primary key (DCode,Qcode)
|
| 2585 |
) comment '???i?}?X?^' ; |
| 2586 |
|
| 2587 |
create index QualificationMaster_Index1
|
| 2588 |
on qualificationmaster(DCode);
|
| 2589 |
|
| 2590 |
create index QualificationMaster_Index2
|
| 2591 |
on qualificationmaster(Qcode);
|
| 2592 |
|
| 2593 |
create index QualificationMaster_Index3
|
| 2594 |
on qualificationmaster(DisplayOrder);
|
| 2595 |
|
| 2596 |
-- ???R?[?h??????
|
| 2597 |
--* BackupToTempTable
|
| 2598 |
drop table if exists recordkey cascade;
|
| 2599 |
|
| 2600 |
--* RestoreFromTempTable
|
| 2601 |
create table recordkey (
|
| 2602 |
KeyNo decimal(2,0) unsigned not null comment '?L?[?R?[?h' |
| 2603 |
, RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???' |
| 2604 |
, EntryDate datetime not null comment '?o?^???t' |
| 2605 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2606 |
, constraint recordkey_PKC primary key (KeyNo,RecordNumber)
|
| 2607 |
) comment '???R?[?h??????' ; |
| 2608 |
|
| 2609 |
-- ?????????f?[?^
|
| 2610 |
--* BackupToTempTable
|
| 2611 |
drop table if exists reminvoicedata cascade;
|
| 2612 |
|
| 2613 |
--* RestoreFromTempTable
|
| 2614 |
create table reminvoicedata (
|
| 2615 |
InvoiceNo decimal(9,0) not null comment '??????No' |
| 2616 |
, RemPerson decimal(8,0) not null comment '???S????R?[?h' |
| 2617 |
, RemDate date not null comment '?????t' |
| 2618 |
, RemComment varchar(300) comment '?????R' |
| 2619 |
, EntryDate datetime not null comment '?o?^?N????' |
| 2620 |
, UpdateDate datetime not null comment '?X?V?N????' |
| 2621 |
, constraint reminvoicedata_PKC primary key (InvoiceNo)
|
| 2622 |
) comment '?????????f?[?^' ; |
| 2623 |
|
| 2624 |
-- ????????????f?[?^
|
| 2625 |
--* BackupToTempTable
|
| 2626 |
drop table if exists reminvoicedatadetail cascade;
|
| 2627 |
|
| 2628 |
--* RestoreFromTempTable
|
| 2629 |
create table reminvoicedatadetail (
|
| 2630 |
InvoiceNo decimal(9,0) not null comment '??????No' |
| 2631 |
, SeqNo smallint(5) unsigned not null comment '?A??' |
| 2632 |
, RequestNo decimal(9,0) not null comment '????No' |
| 2633 |
, EntryDate datetime not null comment '?o?^?N????' |
| 2634 |
, UpdateDate datetime not null comment '?X?V?N????' |
| 2635 |
, constraint reminvoicedatadetail_PKC primary key (InvoiceNo,SeqNo)
|
| 2636 |
) comment '????????????f?[?^' ; |
| 2637 |
|
| 2638 |
-- ????????f?[?^
|
| 2639 |
--* BackupToTempTable
|
| 2640 |
drop table if exists removerequest cascade;
|
| 2641 |
|
| 2642 |
--* RestoreFromTempTable
|
| 2643 |
create table removerequest (
|
| 2644 |
RemoveNo decimal(10,0) not null comment '???No' |
| 2645 |
, RemoveDate decimal(8,0) not null comment '?????????' |
| 2646 |
, RemovePersonCode decimal(8,0) unsigned not null comment '????????S????R?[?h' |
| 2647 |
, RemoveComment varchar(500) comment '??????e' |
| 2648 |
, RequestNo decimal(9,0) not null comment '????No' |
| 2649 |
, ReqConstructionCode decimal(10,0) not null comment '?????H?????' |
| 2650 |
, ORDERNO decimal(2,0) not null comment '??t???' |
| 2651 |
, RequestMonth decimal(6,0) not null comment '??????' |
| 2652 |
, OrderersDivision decimal(5,0) not null comment '???????' |
| 2653 |
, OrderersCode decimal(5,0) not null comment '??????R?[?h' |
| 2654 |
, OrderersName varchar(120) not null comment '???????' |
| 2655 |
, ReqConstructionName varchar(120) not null comment '?????H??????' |
| 2656 |
, RequestTotalAmount decimal(10,0) not null comment '???????z???v' |
| 2657 |
, RequestAmount decimal(10,0) not null comment '???????z' |
| 2658 |
, TaxAmount decimal(10,0) not null comment '?????' |
| 2659 |
, UnPaidAmount decimal(10,0) comment '??????' |
| 2660 |
, Note varchar(120) comment '???l' |
| 2661 |
, AssignedFlg decimal(1,0) comment '??????t???O' |
| 2662 |
, InvoiceNo decimal(9,0) not null comment '??????no' |
| 2663 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
| 2664 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
| 2665 |
, constraint removerequest_PKC primary key (RemoveNo,RemoveDate)
|
| 2666 |
) comment '????????f?[?^' ; |
| 2667 |
|
| 2668 |
create index RemoveRequest_Index1
|
| 2669 |
on removerequest(RequestNo);
|
| 2670 |
|
| 2671 |
create index RemoveRequest_Index2
|
| 2672 |
on removerequest(ReqConstructionCode);
|
| 2673 |
|
| 2674 |
create index RemoveRequest_Index3
|
| 2675 |
on removerequest(ORDERNO);
|
| 2676 |
|
| 2677 |
-- ????????f?[?^????
|
| 2678 |
--* BackupToTempTable
|
| 2679 |
drop table if exists removerequestdetail cascade;
|
| 2680 |
|
| 2681 |
--* RestoreFromTempTable
|
| 2682 |
create table removerequestdetail (
|
| 2683 |
RemoveNo decimal(10,0) not null comment '???No' |
| 2684 |
, SeqNo decimal(9,0) not null comment '??tno' |
| 2685 |
, RequestNo decimal(9,0) not null comment '????no' |
| 2686 |
, MainConstructionCode decimal(10,0) not null comment '?{?H?????' |
| 2687 |
, ConstructionCode decimal(10,0) not null comment '?H?????' |
| 2688 |
, ConstructionKind decimal(1,0) not null comment '?H????' |
| 2689 |
, RequestAmount decimal(10,0) not null comment '???????z' |
| 2690 |
, TaxAmount decimal(10,0) not null comment '?????' |
| 2691 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
| 2692 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
| 2693 |
, constraint removerequestdetail_PKC primary key (RemoveNo,SeqNo)
|
| 2694 |
) comment '????????f?[?^????' ; |
| 2695 |
|
| 2696 |
-- ?????f?[?^
|
| 2697 |
--* BackupToTempTable
|
| 2698 |
drop table if exists requestdata cascade;
|
| 2699 |
|
| 2700 |
--* RestoreFromTempTable
|
| 2701 |
create table requestdata (
|
| 2702 |
REQUESTNO decimal(9,0) not null comment '????No' |
| 2703 |
, MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????' |
| 2704 |
, CONSTRUCTIONNAME varchar(120) not null comment '?H??????' |
| 2705 |
, CONTRACTAMOUNT decimal(10,0) not null comment '???????z' |
| 2706 |
, PAIDAMOUNT decimal(10,0) not null comment '????????z' |
| 2707 |
, REQUESTAMOUNT0 decimal(10,0) not null comment '???????z?O' |
| 2708 |
, REQUESTAMOUNT1 decimal(10,0) not null comment '???????z?P' |
| 2709 |
, REQUESTAMOUNT2 decimal(10,0) comment '???????z?Q' |
| 2710 |
, REQUESTAMOUNT3 decimal(10,0) comment '???????z?R' |
| 2711 |
, REQUESTAMOUNT4 decimal(10,0) comment '???????z?S' |
| 2712 |
, REQUESTAMOUNT5 decimal(10,0) comment '???????z?T' |
| 2713 |
, REQUESTAMOUNT6 decimal(10,0) comment '???????z?U' |
| 2714 |
, UNCLAIMEDAMOUNT decimal(10,0) not null comment '?????c???z' |
| 2715 |
, UNPAIDAMOUNT decimal(10,0) not null comment '?????????z' |
| 2716 |
, TAXAMOUNT decimal(10,0) not null comment '?????' |
| 2717 |
, NOTE varchar(120) not null comment '???l' |
| 2718 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
| 2719 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
| 2720 |
, constraint requestdata_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE)
|
| 2721 |
) comment '?????f?[?^' ; |
| 2722 |
|
| 2723 |
-- ?????f?[?^????
|
| 2724 |
--* BackupToTempTable
|
| 2725 |
drop table if exists requestdatadetail cascade;
|
| 2726 |
|
| 2727 |
--* RestoreFromTempTable
|
| 2728 |
create table requestdatadetail (
|
| 2729 |
REQUESTNO decimal(9,0) not null comment '????No' |
| 2730 |
, MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????' |
| 2731 |
, CONSTRUCTIONCODE decimal(10,0) not null comment '?H?????' |
| 2732 |
, CONSTRUCTIONKIND decimal(1,0) not null comment '?H????' |
| 2733 |
, REQUESTAMOUNT decimal(10,0) not null comment '???????z' |
| 2734 |
, TAXAMOUNT decimal(10,0) not null comment '?????' |
| 2735 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
| 2736 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
| 2737 |
, constraint requestdatadetail_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE,CONSTRUCTIONCODE,CONSTRUCTIONKIND)
|
| 2738 |
) comment '?????f?[?^????' ; |
| 2739 |
|
| 2740 |
-- ?????w?b?_
|
| 2741 |
--* BackupToTempTable
|
| 2742 |
drop table if exists requesthead cascade;
|
| 2743 |
|
| 2744 |
--* RestoreFromTempTable
|
| 2745 |
create table requesthead (
|
| 2746 |
REQUESTNO decimal(9,0) not null comment '????No' |
| 2747 |
, REQCONSTRUCTIONCODE decimal(10,0) not null comment '?????H?????' |
| 2748 |
, ORDERNO decimal(2,0) not null comment '??t???' |
| 2749 |
, REQUESTMONTH decimal(6,0) not null comment '??????' |
| 2750 |
, ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 2751 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| 2752 |
, ORDERERSNAME varchar(120) not null comment '???????' |
| 2753 |
, REQCONSTRUCTIONNAME varchar(120) not null comment '?????H??????' |
| 2754 |
, REQUESTTOTALAMOUNT decimal(10,0) not null comment '???????z???v' |
| 2755 |
, REQUESTAMOUNT decimal(10,0) not null comment '???????z' |
| 2756 |
, TAXAMOUNT decimal(10,0) not null comment '?????' |
| 2757 |
, UNPAIDAMOUNT decimal(10,0) comment '??????' |
| 2758 |
, NOTE varchar(120) comment '???l' |
| 2759 |
, ASSIGNEDFLG decimal(1,0) comment '??????t???O' |
| 2760 |
, INVOICENO decimal(9,0) not null comment '??????No' |
| 2761 |
, BILLINGDATE datetime not null comment '??????' |
| 2762 |
, BILLCONFIRMDATE datetime not null comment '?????m?F??' |
| 2763 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
| 2764 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
| 2765 |
, constraint requesthead_PKC primary key (REQUESTNO)
|
| 2766 |
) comment '?????w?b?_' ; |
| 2767 |
|
| 2768 |
alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
|
| 2769 |
|
| 2770 |
-- ?????????t?f?[?^
|
| 2771 |
--* BackupToTempTable
|
| 2772 |
drop table if exists requestorderdate cascade;
|
| 2773 |
|
| 2774 |
--* RestoreFromTempTable
|
| 2775 |
create table requestorderdate (
|
| 2776 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2777 |
, InvoiceNo decimal(9,0) not null comment '??????No' |
| 2778 |
, SendDate date not null comment '???????????X????' |
| 2779 |
, EntryDate datetime not null comment '?o?^???t' |
| 2780 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2781 |
, constraint requestorderdate_PKC primary key (ConstructionCode,InvoiceNo)
|
| 2782 |
) comment '?????????t?f?[?^' ; |
| 2783 |
|
| 2784 |
-- ????O???t?f?[?^
|
| 2785 |
--* BackupToTempTable
|
| 2786 |
drop table if exists salesgraphdata cascade;
|
| 2787 |
|
| 2788 |
--* RestoreFromTempTable
|
| 2789 |
create table salesgraphdata (
|
| 2790 |
GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h' |
| 2791 |
, ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
| 2792 |
, SalesDataDays date not null comment '????N??' |
| 2793 |
, DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
| 2794 |
, DataName varchar(100) not null comment '?f?[?^?\??????' |
| 2795 |
, SalesAmount decimal(10,0) not null comment '????f?[?^' |
| 2796 |
, AdministrativeExpense decimal(10,0) not null comment '???E?????o??' |
| 2797 |
, GrossProfit decimal(10,0) not null comment '?e???v' |
| 2798 |
, NetIncome decimal(10,0) not null comment '?????v(???v)' |
| 2799 |
, EntryDate datetime not null comment '?o?^???t' |
| 2800 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2801 |
, constraint salesgraphdata_PKC primary key (GraphDataCode,ConstructionPeriod,SalesDataDays)
|
| 2802 |
) comment '????O???t?f?[?^' ; |
| 2803 |
|
| 2804 |
create index SalesGraphData_Idx1
|
| 2805 |
on salesgraphdata(DisplayOrder);
|
| 2806 |
|
| 2807 |
create index SalesGraphData_idx2
|
| 2808 |
on salesgraphdata(ConstructionPeriod);
|
| 2809 |
|
| 2810 |
-- ?????}?X?^
|
| 2811 |
--* BackupToTempTable
|
| 2812 |
drop table if exists securitymaster cascade;
|
| 2813 |
|
| 2814 |
--* RestoreFromTempTable
|
| 2815 |
create table securitymaster (
|
| 2816 |
SecCode decimal(2,0) unsigned not null comment '???????' |
| 2817 |
, DisplayOrder decimal(2,0) not null comment '?\????' |
| 2818 |
, SecName varchar(60) not null comment '????????' |
| 2819 |
, SecRank decimal(1,0) not null comment '?????????N' |
| 2820 |
, SecRange decimal(1,0) not null comment '???????' |
| 2821 |
, GeneralAffairs decimal(1,0) not null comment '????????t???O' |
| 2822 |
, SelectBackColor varchar(8) not null comment '?I??w?i?F' |
| 2823 |
, EntryDate datetime not null comment '?o?^???t' |
| 2824 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2825 |
, constraint securitymaster_PKC primary key (SecCode)
|
| 2826 |
) comment '?????}?X?^' ; |
| 2827 |
|
| 2828 |
create index SecurityMaster_Index1
|
| 2829 |
on securitymaster(DisplayOrder);
|
| 2830 |
|
| 2831 |
create index SecurityMaster_Index2
|
| 2832 |
on securitymaster(SecRank);
|
| 2833 |
|
| 2834 |
create index SecurityMaster_Index3
|
| 2835 |
on securitymaster(SecRange);
|
| 2836 |
|
| 2837 |
-- ???S?p?g???[???f?[?^
|
| 2838 |
--* BackupToTempTable
|
| 2839 |
drop table if exists sfpdata cascade;
|
| 2840 |
|
| 2841 |
--* RestoreFromTempTable
|
| 2842 |
create table sfpdata (
|
| 2843 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2844 |
, DataCount decimal(2,0) unsigned not null comment '?p?g???[????' |
| 2845 |
, RequestDate datetime not null comment '?p?g???[???v??????' |
| 2846 |
, PersonCode decimal(8,0) unsigned not null comment '?\????R?[?h' |
| 2847 |
, StringValue varchar(300) comment '?R?????g' |
| 2848 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 2849 |
, EntryDate datetime not null comment '?o?^???t' |
| 2850 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2851 |
, constraint sfpdata_PKC primary key (ConstructionCode,DataCount)
|
| 2852 |
) comment '???S?p?g???[???f?[?^' ; |
| 2853 |
|
| 2854 |
create index SFPData_Index1
|
| 2855 |
on sfpdata(RequestDate);
|
| 2856 |
|
| 2857 |
-- ???S?p?g???[??????f?[?^
|
| 2858 |
--* BackupToTempTable
|
| 2859 |
drop table if exists sfpdatadetail cascade;
|
| 2860 |
|
| 2861 |
--* RestoreFromTempTable
|
| 2862 |
create table sfpdatadetail (
|
| 2863 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2864 |
, DataCount decimal(2,0) unsigned not null comment '?p?g???[????' |
| 2865 |
, SeqNo decimal(2,0) unsigned not null comment '?f?[?^?}??' |
| 2866 |
, CompanyCode decimal(8,0) unsigned not null comment '??????R?[?h' |
| 2867 |
, EntryDate datetime not null comment '?o?^???t' |
| 2868 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2869 |
, constraint sfpdatadetail_PKC primary key (ConstructionCode,DataCount,SeqNo)
|
| 2870 |
) comment '???S?p?g???[??????f?[?^' ; |
| 2871 |
|
| 2872 |
-- ????????[?????M?L???[
|
| 2873 |
--* BackupToTempTable
|
| 2874 |
drop table if exists subconmailqueue cascade;
|
| 2875 |
|
| 2876 |
--* RestoreFromTempTable
|
| 2877 |
create table subconmailqueue (
|
| 2878 |
SeqNo decimal(8,0) default '0' not null comment '?A??' |
| 2879 |
, CompanyCode decimal(8,0) default '0' not null comment '??????R?[?h' |
| 2880 |
, MailDelivery decimal(3,0) default '0' not null comment '???M??????' |
| 2881 |
, Argument0 varchar(32) comment '???[???}???????O' |
| 2882 |
, Argument1 varchar(32) comment '???[???}???????P' |
| 2883 |
, Argument2 varchar(32) comment '???[???}???????Q' |
| 2884 |
, Argument3 varchar(32) comment '???[???}???????R' |
| 2885 |
, Argument4 varchar(32) comment '???[???}???????S' |
| 2886 |
, Status decimal(1,0) default '0' not null comment '?X?e?[?^?X' |
| 2887 |
, EntryDate datetime not null comment '?o?^???t' |
| 2888 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2889 |
, constraint subconmailqueue_PKC primary key (SeqNo,CompanyCode)
|
| 2890 |
) comment '????????[?????M?L???[' ; |
| 2891 |
|
| 2892 |
create index subconmailqueue_Index1
|
| 2893 |
on subconmailqueue(CompanyCode);
|
| 2894 |
|
| 2895 |
create index subconmailqueue_Index2
|
| 2896 |
on subconmailqueue(Argument0);
|
| 2897 |
|
| 2898 |
-- ??????{?H?H??o?^?\???f?[?^
|
| 2899 |
--* BackupToTempTable
|
| 2900 |
drop table if exists subconstrjobitemregist cascade;
|
| 2901 |
|
| 2902 |
--* RestoreFromTempTable
|
| 2903 |
create table subconstrjobitemregist (
|
| 2904 |
PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2905 |
, CreateDate date not null comment '????' |
| 2906 |
, SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
| 2907 |
, DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
| 2908 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 2909 |
, EntryDate datetime not null comment '?o?^???t' |
| 2910 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2911 |
, constraint subconstrjobitemregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
|
| 2912 |
) comment '??????{?H?H??o?^?\???f?[?^' ; |
| 2913 |
|
| 2914 |
-- ??????E?????N?o?^?\???f?[?^
|
| 2915 |
--* BackupToTempTable
|
| 2916 |
drop table if exists subconstrjoblinkregist cascade;
|
| 2917 |
|
| 2918 |
--* RestoreFromTempTable
|
| 2919 |
create table subconstrjoblinkregist (
|
| 2920 |
PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2921 |
, CreateDate date not null comment '????' |
| 2922 |
, SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
| 2923 |
, DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
| 2924 |
, JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
| 2925 |
, EntryDate datetime not null comment '?o?^???t' |
| 2926 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2927 |
, constraint subconstrjoblinkregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
|
| 2928 |
) comment '??????E?????N?o?^?\???f?[?^' ; |
| 2929 |
|
| 2930 |
-- ??????o?^?\???f?[?^
|
| 2931 |
--* BackupToTempTable
|
| 2932 |
drop table if exists subconstrregist cascade;
|
| 2933 |
|
| 2934 |
--* RestoreFromTempTable
|
| 2935 |
create table subconstrregist (
|
| 2936 |
PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2937 |
, CreateDate date not null comment '????' |
| 2938 |
, SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
| 2939 |
, DataMode decimal(1,0) comment '?f?[?^??' |
| 2940 |
, SourceCode decimal(8,0) not null comment '??????R?[?h' |
| 2941 |
, PetitionPeriod decimal(4,0) unsigned not null comment '?\???N?x' |
| 2942 |
, CorporateStatusName varchar(40) comment '?@?l?i????' |
| 2943 |
, CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u' |
| 2944 |
, CompanyName varchar(100) not null comment '???????' |
| 2945 |
, CEOPositionName varchar(60) comment '??\???E??' |
| 2946 |
, CEOName varchar(60) comment '??\?????' |
| 2947 |
, ContactPersonName varchar(60) comment '?S???????' |
| 2948 |
, ZipCode varchar(8) comment '?X????' |
| 2949 |
, Address1 varchar(60) comment '?Z???P' |
| 2950 |
, Address2 varchar(60) comment '?Z??2' |
| 2951 |
, Address3 varchar(60) comment '?Z??3' |
| 2952 |
, CellPhoneNumber varchar(13) comment '?g??d?b???' |
| 2953 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 2954 |
, PhoneNumber varchar(13) comment '?d?b???' |
| 2955 |
, FaxNumber varchar(13) comment 'FAX???' |
| 2956 |
, JapaneseSyllabary varchar(2) comment '50?????' |
| 2957 |
, StartDate date not null comment '????J?n?N????' |
| 2958 |
, Note varchar(300) comment '???l' |
| 2959 |
, labourKind decimal(1,0) not null comment '?x???????E????' |
| 2960 |
, OrderDate decimal(6,0) unsigned comment '?\????' |
| 2961 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 2962 |
, EntryDate datetime not null comment '?o?^???t' |
| 2963 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2964 |
, constraint subconstrregist_PKC primary key (PersonCode,CreateDate,SeqNo)
|
| 2965 |
) comment '??????o?^?\???f?[?^' ; |
| 2966 |
|
| 2967 |
-- ??????H??}?X?^
|
| 2968 |
--* BackupToTempTable
|
| 2969 |
drop table if exists subcontractoritemmaster cascade;
|
| 2970 |
|
| 2971 |
--* RestoreFromTempTable
|
| 2972 |
create table subcontractoritemmaster (
|
| 2973 |
ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 2974 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 2975 |
, ItemName varchar(120) not null comment '?H????' |
| 2976 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 2977 |
, EntryDate datetime not null comment '?o?^???t' |
| 2978 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2979 |
, constraint subcontractoritemmaster_PKC primary key (ItemCode)
|
| 2980 |
) comment '??????H??}?X?^' ; |
| 2981 |
|
| 2982 |
-- ??????E??}?X?^
|
| 2983 |
--* BackupToTempTable
|
| 2984 |
drop table if exists subcontractorjobcategory cascade;
|
| 2985 |
|
| 2986 |
--* RestoreFromTempTable
|
| 2987 |
create table subcontractorjobcategory (
|
| 2988 |
JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
| 2989 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 2990 |
, JobCategoryName varchar(120) not null comment '?E????' |
| 2991 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 2992 |
, EntryDate datetime not null comment '?o?^???t' |
| 2993 |
, UpdateDate datetime not null comment '?X?V???t' |
| 2994 |
, constraint subcontractorjobcategory_PKC primary key (JobCategoryCode)
|
| 2995 |
) comment '??????E??}?X?^' ; |
| 2996 |
|
| 2997 |
-- ??????{?H?H??f?[?^
|
| 2998 |
--* BackupToTempTable
|
| 2999 |
drop table if exists subcontractorjobitem cascade;
|
| 3000 |
|
| 3001 |
--* RestoreFromTempTable
|
| 3002 |
create table subcontractorjobitem (
|
| 3003 |
CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 3004 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 3005 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 3006 |
, EntryDate datetime not null comment '?o?^???t' |
| 3007 |
, UpdateDate datetime not null comment '?X?V???t' |
| 3008 |
, constraint subcontractorjobitem_PKC primary key (CompanyCode,ItemCode)
|
| 3009 |
) comment '??????{?H?H??f?[?^' ; |
| 3010 |
|
| 3011 |
create index SubContractorJobItem_Index1
|
| 3012 |
on subcontractorjobitem(CompanyCode);
|
| 3013 |
|
| 3014 |
create index SubContractorJobItem_Index2
|
| 3015 |
on subcontractorjobitem(ItemCode);
|
| 3016 |
|
| 3017 |
-- ??????E?????N?}?X?^
|
| 3018 |
--* BackupToTempTable
|
| 3019 |
drop table if exists subcontractorjoblink cascade;
|
| 3020 |
|
| 3021 |
--* RestoreFromTempTable
|
| 3022 |
create table subcontractorjoblink (
|
| 3023 |
CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 3024 |
, JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
| 3025 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 3026 |
, EntryDate datetime not null comment '?o?^???t' |
| 3027 |
, UpdateDate datetime not null comment '?X?V???t' |
| 3028 |
, constraint subcontractorjoblink_PKC primary key (CompanyCode,JobCategoryCode)
|
| 3029 |
) comment '??????E?????N?}?X?^' ; |
| 3030 |
|
| 3031 |
create index SubContractorJobLink_Index1
|
| 3032 |
on subcontractorjoblink(CompanyCode);
|
| 3033 |
|
| 3034 |
create index SubContractorJobLink_Index2
|
| 3035 |
on subcontractorjoblink(JobCategoryCode);
|
| 3036 |
|
| 3037 |
-- ????????[???f?[?^
|
| 3038 |
--* BackupToTempTable
|
| 3039 |
drop table if exists subcontractormail cascade;
|
| 3040 |
|
| 3041 |
--* RestoreFromTempTable
|
| 3042 |
create table subcontractormail (
|
| 3043 |
CompanyCode decimal(8,0) default '0' not null comment '??????R?[?h' |
| 3044 |
, SeqNo decimal(3,0) default '0' not null comment '?A??' |
| 3045 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 3046 |
, EntryDate datetime not null comment '?o?^???t' |
| 3047 |
, UpdateDate datetime not null comment '?X?V???t' |
| 3048 |
, constraint subcontractormail_PKC primary key (CompanyCode,SeqNo)
|
| 3049 |
) comment '????????[???f?[?^' ; |
| 3050 |
|
| 3051 |
-- ??????}?X?^
|
| 3052 |
--* BackupToTempTable
|
| 3053 |
drop table if exists subcontractormaster cascade;
|
| 3054 |
|
| 3055 |
--* RestoreFromTempTable
|
| 3056 |
create table subcontractormaster (
|
| 3057 |
CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 3058 |
, DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
| 3059 |
, CorporateStatusName varchar(40) comment '?@?l?i????' |
| 3060 |
, CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u' |
| 3061 |
, CompanyName varchar(100) not null comment '???????' |
| 3062 |
, CompanyNameKana varchar(100) not null comment '????????i?J?i?j' |
| 3063 |
, CEOPositionName varchar(60) comment '??\???E??' |
| 3064 |
, CEOName varchar(60) comment '??\?????' |
| 3065 |
, CEONameKana varchar(60) comment '??\??????i?J?i?j' |
| 3066 |
, ContactPersonName varchar(60) comment '?S???????' |
| 3067 |
, ContactPersonNameKana varchar(60) comment '?S????????i?J?i?j' |
| 3068 |
, ZipCode varchar(8) comment '?X????' |
| 3069 |
, Address1 varchar(60) comment '?Z???P' |
| 3070 |
, Address2 varchar(60) comment '?Z??2' |
| 3071 |
, Address3 varchar(60) comment '?Z??3' |
| 3072 |
, CellPhoneNumber varchar(13) comment '?g??d?b???' |
| 3073 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 3074 |
, PhoneNumber varchar(13) comment '?d?b???' |
| 3075 |
, FaxNumber varchar(13) comment 'FAX???' |
| 3076 |
, JapaneseSyllabary varchar(2) comment '50?????' |
| 3077 |
, StartDate date not null comment '????J?n?N????' |
| 3078 |
, Note varchar(300) comment '???l' |
| 3079 |
, labourKind decimal(1,0) not null comment '?x???????E????' |
| 3080 |
, RequestImputId varchar(8) not null comment '????????ID' |
| 3081 |
, Password varchar(20) comment '?p?X???[?h' |
| 3082 |
, BankCode decimal(4,0) unsigned not null comment '??s?R?[?h' |
| 3083 |
, BankName varchar(20) comment '??s??' |
| 3084 |
, BankBranchCode decimal(3,0) unsigned not null comment '?x?X?R?[?h' |
| 3085 |
, BankBranchName varchar(20) comment '?x?X??' |
| 3086 |
, BankAccountKind decimal(1,0) not null comment '???????' |
| 3087 |
, BankAccountNo decimal(7,0) unsigned not null comment '???????' |
| 3088 |
, BankAccountName varchar(30) comment '???????`(???l??)' |
| 3089 |
, TransferFees decimal(4,0) unsigned not null comment '?U??????'
|
| 3090 |
, ConfirmedDate datetime not null comment '?f?[?^?m?F??'
|
| 3091 |
, DeleteFlg decimal(1,0) default '0' not null comment '???t???O'
|
| 3092 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3093 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3094 |
, constraint subcontractormaster_PKC primary key (CompanyCode)
|
| 3095 |
) comment '??????}?X?^' ;
|
| 3096 |
|
| 3097 |
alter table subcontractormaster add unique SubContractorMaster_Index2 (RequestImputId) ;
|
| 3098 |
|
| 3099 |
create index SubContractorMaster_Index1
|
| 3100 |
on subcontractormaster(JapaneseSyllabary);
|
| 3101 |
|
| 3102 |
-- ????????[?????M???
|
| 3103 |
--* BackupToTempTable
|
| 3104 |
drop table if exists subcontrmaildelivery cascade;
|
| 3105 |
|
| 3106 |
--* RestoreFromTempTable
|
| 3107 |
create table subcontrmaildelivery (
|
| 3108 |
CompanyCode decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 3109 |
, SeqNo decimal(3,0) default '0' not null comment '?A??'
|
| 3110 |
, MailDelivery decimal(3,0) default '0' not null comment '???M??????'
|
| 3111 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3112 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3113 |
, constraint subcontrmaildelivery_PKC primary key (CompanyCode,SeqNo,MailDelivery)
|
| 3114 |
) comment '????????[?????M???' ;
|
| 3115 |
|
| 3116 |
-- ?d????}?X?^
|
| 3117 |
--* BackupToTempTable
|
| 3118 |
drop table if exists suppliersmaster cascade;
|
| 3119 |
|
| 3120 |
--* RestoreFromTempTable
|
| 3121 |
create table suppliersmaster (
|
| 3122 |
SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h'
|
| 3123 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 3124 |
, SuppliersName1 varchar(60) not null comment '?d????1'
|
| 3125 |
, SuppliersName2 varchar(60) comment '?d?????Q'
|
| 3126 |
, ZipCode varchar(8) comment '?X????'
|
| 3127 |
, Address1 varchar(60) comment '?Z???P'
|
| 3128 |
, Address2 varchar(60) comment '?Z??2'
|
| 3129 |
, Address3 varchar(60) comment '?Z??3'
|
| 3130 |
, PhoneNumber varchar(13) comment '?d?b???'
|
| 3131 |
, FaxNumber varchar(13) comment 'FAX???'
|
| 3132 |
, Note varchar(300) comment '???l'
|
| 3133 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 3134 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3135 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3136 |
, constraint suppliersmaster_PKC primary key (SuppliersCode)
|
| 3137 |
) comment '?d????}?X?^' ;
|
| 3138 |
|
| 3139 |
-- ?V?X?e???N???m?F?f?[?^
|
| 3140 |
--* BackupToTempTable
|
| 3141 |
drop table if exists systemexecute cascade;
|
| 3142 |
|
| 3143 |
--* RestoreFromTempTable
|
| 3144 |
create table systemexecute (
|
| 3145 |
PrimaryCode tinyint(4) not null comment '?L?[????'
|
| 3146 |
, TargetDate date not null comment '?N?????t'
|
| 3147 |
, SystemVersion int(11) not null comment '?{??E????o?[?W????'
|
| 3148 |
, UpDateCopyVersion int(11) not null comment '?R?s?[?o?[?W????'
|
| 3149 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3150 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3151 |
, constraint systemexecute_PKC primary key (PrimaryCode)
|
| 3152 |
) comment '?V?X?e???N???m?F?f?[?^' ;
|
| 3153 |
|
| 3154 |
-- ????}?X?^
|
| 3155 |
--* BackupToTempTable
|
| 3156 |
drop table if exists systemmaster cascade;
|
| 3157 |
|
| 3158 |
--* RestoreFromTempTable
|
| 3159 |
create table systemmaster (
|
| 3160 |
SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
|
| 3161 |
, CompanyName1 varchar(60) not null comment '?????P'
|
| 3162 |
, CompanyName2 varchar(60) comment '?????Q'
|
| 3163 |
, CEOName varchar(60) not null comment '??\?????'
|
| 3164 |
, CEOPositionName varchar(60) comment '??\???E??'
|
| 3165 |
, ZipCode varchar(8) not null comment '?X????'
|
| 3166 |
, Address1 varchar(60) not null comment '?Z???P'
|
| 3167 |
, Address2 varchar(60) comment '?Z??2'
|
| 3168 |
, Address3 varchar(60) comment '?Z??3'
|
| 3169 |
, PhoneNumber varchar(13) not null comment '?d?b???'
|
| 3170 |
, FaxNumber varchar(13) comment 'FAX???'
|
| 3171 |
, HomePageURL varchar(120) comment '?z?[???y?[?WURL'
|
| 3172 |
, ConsumptionTax decimal(4,2) not null comment '?????'
|
| 3173 |
, CooperationRate decimal(4,2) not null comment '???????'
|
| 3174 |
, StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
|
| 3175 |
, FuelPrice decimal(5,2) not null comment '?R???L???P??'
|
| 3176 |
, AreaDistance decimal(5,2) not null comment '????u????????'
|
| 3177 |
, ExcelSavePath varchar(120) comment 'Excel????p?X'
|
| 3178 |
, BusinessPeriod smallint(6) not null comment '????c?????'
|
| 3179 |
, ConstrYear smallint(6) not null comment '????H???N?x'
|
| 3180 |
, BusinessBeginDate datetime not null comment '?c????????'
|
| 3181 |
, ConstrBeginDate datetime not null comment '?H???N?x?????'
|
| 3182 |
, BusinessCompDate datetime not null comment '?c?????????'
|
| 3183 |
, ConstrCompDate datetime not null comment '?H???N?x??????'
|
| 3184 |
, ConstructionNoBase decimal(1,0) not null comment '?H????????l'
|
| 3185 |
, SloganString1 varchar(100) comment '?W??1'
|
| 3186 |
, SloganString2 varchar(100) comment '?W??2'
|
| 3187 |
, SloganString3 varchar(100) comment '?W??3'
|
| 3188 |
, OperationFlg decimal(2,0) unsigned not null comment '???F?^?p?t???O'
|
| 3189 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3190 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3191 |
, constraint systemmaster_PKC primary key (SystemCode)
|
| 3192 |
) comment '????}?X?^' ;
|
| 3193 |
|
| 3194 |
-- ?????}?X?^
|
| 3195 |
--* BackupToTempTable
|
| 3196 |
drop table if exists termmaster cascade;
|
| 3197 |
|
| 3198 |
--* RestoreFromTempTable
|
| 3199 |
create table termmaster (
|
| 3200 |
ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
|
| 3201 |
, FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???' |
| 3202 |
, SeqNo decimal(2,0) not null comment '?}??' |
| 3203 |
, DisplayOrder decimal(2,0) not null comment '?\????' |
| 3204 |
, CheckSchdule decimal(1,0) not null comment '?`?F?b?N?^?C?~???O' |
| 3205 |
, TermDays decimal(3,0) not null comment '?o???'
|
| 3206 |
, SendTitile varchar(100) comment '?^?C?g??'
|
| 3207 |
, SendMessage varchar(100) comment '???b?Z?[?W'
|
| 3208 |
, BackColor varchar(8) comment '?w?i?F'
|
| 3209 |
, ForeColor varchar(8) comment '?????F'
|
| 3210 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3211 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3212 |
, constraint termmaster_PKC primary key (ConstructionStatusFlg,FieldNo,SeqNo)
|
| 3213 |
) comment '?????}?X?^' ;
|
| 3214 |
|
| 3215 |
create index TermMaster_Index1
|
| 3216 |
on termmaster(DisplayOrder);
|
| 3217 |
|
| 3218 |
-- ?o?????f?[?^
|
| 3219 |
--* BackupToTempTable
|
| 3220 |
drop table if exists tranceportdailydata cascade;
|
| 3221 |
|
| 3222 |
--* RestoreFromTempTable
|
| 3223 |
create table tranceportdailydata (
|
| 3224 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
|
| 3225 |
, AttendanceDate date not null comment '???????'
|
| 3226 |
, StartDistance decimal(7,1) not null comment '?????o???L????'
|
| 3227 |
, ComplateDistance decimal(7,1) not null comment '?????I???L????'
|
| 3228 |
, TotalDistance decimal(6,1) not null comment '???????v?L????'
|
| 3229 |
, OfficeGoFlg decimal(1,0) not null comment '???????o??t???O'
|
| 3230 |
, OfficeOutFlg decimal(1,0) not null comment '???????A??t???O'
|
| 3231 |
, TrancePayGoFlg decimal(1,0) not null comment '?L?????o??t???O'
|
| 3232 |
, TrancePayOutFlg decimal(1,0) not null comment '?L?????A??t???O'
|
| 3233 |
, WareHouseFlg decimal(1,0) not null comment '????u??t???O'
|
| 3234 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3235 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3236 |
, constraint tranceportdailydata_PKC primary key (PersonCode,AttendanceDate)
|
| 3237 |
) comment '?o?????f?[?^' ;
|
| 3238 |
|
| 3239 |
create index TranceportDailyData_Index1
|
| 3240 |
on tranceportdailydata(AttendanceDate);
|
| 3241 |
|
| 3242 |
-- ?H?????o???}?X?^
|
| 3243 |
--* BackupToTempTable
|
| 3244 |
drop table if exists typeexpensesmaster cascade;
|
| 3245 |
|
| 3246 |
--* RestoreFromTempTable
|
| 3247 |
create table typeexpensesmaster (
|
| 3248 |
TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
|
| 3249 |
, ExpensesPeriod smallint(6) not null comment '?????'
|
| 3250 |
, NameCode decimal(5,0) unsigned not null comment '?o????R?[?h'
|
| 3251 |
, ExpensesRaito decimal(4,2) not null comment '?o??'
|
| 3252 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 3253 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3254 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3255 |
, constraint typeexpensesmaster_PKC primary key (TypeCode,ExpensesPeriod,NameCode)
|
| 3256 |
) comment '?H?????o???}?X?^' ;
|
| 3257 |
|
| 3258 |
-- ?P??}?X?^
|
| 3259 |
--* BackupToTempTable
|
| 3260 |
drop table if exists unitmaster cascade;
|
| 3261 |
|
| 3262 |
--* RestoreFromTempTable
|
| 3263 |
create table unitmaster (
|
| 3264 |
UnitKey decimal(5,0) unsigned not null comment '?P??L?['
|
| 3265 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 3266 |
, UnitName varchar(30) not null comment '?P?????'
|
| 3267 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3268 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3269 |
, constraint unitmaster_PKC primary key (UnitKey)
|
| 3270 |
) comment '?P??}?X?^' ;
|
| 3271 |
|
| 3272 |
create index UnitMaster_Index1
|
| 3273 |
on unitmaster(DisplayOrder);
|
| 3274 |
|
| 3275 |
-- ????}?X?^
|
| 3276 |
--* BackupToTempTable
|
| 3277 |
drop table if exists vehiclemaster cascade;
|
| 3278 |
|
| 3279 |
--* RestoreFromTempTable
|
| 3280 |
create table vehiclemaster (
|
| 3281 |
VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
|
| 3282 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 3283 |
, VehicleName varchar(100) not null comment '???????'
|
| 3284 |
, RegistrationNumber varchar(30) comment '?o?^???'
|
| 3285 |
, IdentificationNumber varchar(30) comment '?????'
|
| 3286 |
, ModelCode varchar(30) comment '?^??'
|
| 3287 |
, DepartmentCode decimal(5,0) unsigned not null comment '???????'
|
| 3288 |
, VehicleScheduleFlg decimal(1,0) not null comment '????\??\???t???O'
|
| 3289 |
, PurchaseDate date comment '?w????'
|
| 3290 |
, PurchaseName varchar(30) comment '?w????'
|
| 3291 |
, PurchaseContactPersons varchar(30) comment '?w????S????'
|
| 3292 |
, PurchasePhone varchar(13) comment '?w????d?b???'
|
| 3293 |
, LeaseDate date comment '???[?X?J?n??'
|
| 3294 |
, LeaseDestination varchar(30) comment '???[?X??'
|
| 3295 |
, LeaseContactPersons varchar(30) comment '???[?X??S????'
|
| 3296 |
, LeasePhone varchar(13) comment '???[?X??d?b???'
|
| 3297 |
, InsuranceCompany varchar(30) comment '?C???????'
|
| 3298 |
, InsuranceContactPersons varchar(30) comment '?C???????S????'
|
| 3299 |
, InsurancePhone varchar(13) comment '?C???????d?b???'
|
| 3300 |
, Note varchar(300) comment '???l'
|
| 3301 |
, EntryDate datetime comment '?o?^???t'
|
| 3302 |
, UpdateDate datetime comment '?X?V???t'
|
| 3303 |
, constraint vehiclemaster_PKC primary key (VehicleCode)
|
| 3304 |
) comment '????}?X?^' ;
|
| 3305 |
|
| 3306 |
-- ????L?^?f?[?^
|
| 3307 |
--* BackupToTempTable
|
| 3308 |
drop table if exists vehiclerecorddata cascade;
|
| 3309 |
|
| 3310 |
--* RestoreFromTempTable
|
| 3311 |
create table vehiclerecorddata (
|
| 3312 |
VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
|
| 3313 |
, DivisionCode decimal(2,0) unsigned not null comment '?f?[?^??'
|
| 3314 |
, SeqNo decimal(2,0) not null comment '?}??'
|
| 3315 |
, RecordDate date comment '???n??'
|
| 3316 |
, Mileage mediumint(9) comment '???s????'
|
| 3317 |
, Content varchar(100) comment '???e'
|
| 3318 |
, PaymentCost decimal(10,0) comment '??p'
|
| 3319 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3320 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3321 |
, constraint vehiclerecorddata_PKC primary key (VehicleCode,DivisionCode,SeqNo)
|
| 3322 |
) comment '????L?^?f?[?^' ;
|
| 3323 |
|
| 3324 |
-- ????\??f?[?^
|
| 3325 |
--* BackupToTempTable
|
| 3326 |
drop table if exists vehiclescheduledata cascade;
|
| 3327 |
|
| 3328 |
--* RestoreFromTempTable
|
| 3329 |
create table vehiclescheduledata (
|
| 3330 |
TargetDate date not null comment '????'
|
| 3331 |
, VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
|
| 3332 |
, MorningAfternoon decimal(1,0) not null comment '??O?E???'
|
| 3333 |
, PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
|
| 3334 |
, TargetYear year(4) not null comment '?Y???N'
|
| 3335 |
, TargetMonth tinyint(3) unsigned not null comment '?Y????'
|
| 3336 |
, TargetDay year(4) not null comment '?Y????'
|
| 3337 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3338 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3339 |
, constraint vehiclescheduledata_PKC primary key (TargetDate,VehicleCode,MorningAfternoon)
|
| 3340 |
) comment '????\??f?[?^' ;
|
| 3341 |
|
| 3342 |
create index VehicleScheduleData_Index1
|
| 3343 |
on vehiclescheduledata(TargetYear);
|
| 3344 |
|
| 3345 |
create index VehicleScheduleData_Index2
|
| 3346 |
on vehiclescheduledata(TargetMonth);
|
| 3347 |
|
| 3348 |
create index VehicleScheduleData_Index3
|
| 3349 |
on vehiclescheduledata(TargetDay);
|
| 3350 |
|
| 3351 |
-- ?A?????}?X?^
|
| 3352 |
--* BackupToTempTable
|
| 3353 |
drop table if exists workingtime cascade;
|
| 3354 |
|
| 3355 |
--* RestoreFromTempTable
|
| 3356 |
create table workingtime (
|
| 3357 |
WorkingCode decimal(3,0) unsigned not null comment '?A??R?[?h'
|
| 3358 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
| 3359 |
, WorkingName varchar(60) comment '?A????????'
|
| 3360 |
, StartTime datetime not null comment '?J?n????'
|
| 3361 |
, CompTime datetime not null comment '?I??????'
|
| 3362 |
, OverStartTime datetime not null comment '?c??\???J?n????'
|
| 3363 |
, OnCalender decimal(1,0) not null comment '?J?????_?[???t???O'
|
| 3364 |
, MonValue decimal(1,0) not null comment '???j???x?t???O'
|
| 3365 |
, TueValue decimal(1,0) not null comment '??j???x?t???O'
|
| 3366 |
, WedValue decimal(1,0) not null comment '???j???x?t???O'
|
| 3367 |
, ThuValue decimal(1,0) not null comment '??j???x?t???O'
|
| 3368 |
, FriValue decimal(1,0) not null comment '???j???x?t???O'
|
| 3369 |
, SatValue decimal(1,0) not null comment '?y?j???x?t???O'
|
| 3370 |
, SunValue decimal(1,0) not null comment '???j???x?t???O'
|
| 3371 |
, Note varchar(300) comment '???l'
|
| 3372 |
, DeleteFlg decimal(1,0) not null comment '???t???O'
|
| 3373 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3374 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3375 |
, constraint workingtime_PKC primary key (WorkingCode)
|
| 3376 |
) comment '?A?????}?X?^' ;
|
| 3377 |
|
| 3378 |
-- ?A??x?e????}?X?^
|
| 3379 |
--* BackupToTempTable
|
| 3380 |
drop table if exists workingtimebreak cascade;
|
| 3381 |
|
| 3382 |
--* RestoreFromTempTable
|
| 3383 |
create table workingtimebreak (
|
| 3384 |
WorkingCode decimal(3,0) unsigned not null comment '?A??R?[?h'
|
| 3385 |
, BreakNo decimal(2,0) unsigned not null comment '?x?e???'
|
| 3386 |
, StartTime datetime not null comment '?J?n????'
|
| 3387 |
, CompTime datetime not null comment '?I??????'
|
| 3388 |
, EntryDate datetime not null comment '?o?^???t'
|
| 3389 |
, UpdateDate datetime not null comment '?X?V???t'
|
| 3390 |
, constraint workingtimebreak_PKC primary key (WorkingCode,BreakNo)
|
| 3391 |
) comment '?A??x?e????}?X?^' ;
|
| 3392 |
|
| 3393 |
-- ?N?}?X?^
|
| 3394 |
--* BackupToTempTable
|
| 3395 |
drop table if exists yearmaster cascade;
|
| 3396 |
|
| 3397 |
--* RestoreFromTempTable
|
| 3398 |
create table yearmaster (
|
| 3399 |
years smallint(6) not null comment '?N'
|
| 3400 |
, constraint yearmaster_PKC primary key (years)
|
| 3401 |
) comment '?N?}?X?^' ;
|
| 3402 |
|