リビジョン 461
一人親方バージョン:最新版へアップデート
Dllを含む
| ProcessManagement.sql | ||
|---|---|---|
| 1 | 1 |
-- Project Name : noname |
| 2 |
-- Date/Time : 2018/10/23 8:09:34
|
|
| 2 |
-- Date/Time : 2019/11/21 17:23:43
|
|
| 3 | 3 |
-- Author : Horiuchi |
| 4 | 4 |
-- RDBMS Type : MySQL |
| 5 | 5 |
-- Application : A5:SQL Mk-2 |
| ... | ... | |
| 11 | 11 |
*/ |
| 12 | 12 |
|
| 13 | 13 |
-- ?S????s???\??f?[?^ |
| 14 |
--* BackupToTempTable
|
|
| 14 |
-- BackupToTempTable |
|
| 15 | 15 |
drop table if exists actionscheduledata cascade; |
| 16 | 16 |
|
| 17 |
--* RestoreFromTempTable
|
|
| 17 |
-- RestoreFromTempTable |
|
| 18 | 18 |
create table actionscheduledata ( |
| 19 | 19 |
TargetDate date not null comment '????' |
| 20 | 20 |
, PersonCode decimal(8,0) not null comment '?S????R?[?h' |
| ... | ... | |
| 37 | 37 |
on actionscheduledata(TargetDay); |
| 38 | 38 |
|
| 39 | 39 |
-- ???F?o?H?}?X?^ |
| 40 |
--* BackupToTempTable
|
|
| 40 |
-- BackupToTempTable |
|
| 41 | 41 |
drop table if exists approvalmaster cascade; |
| 42 | 42 |
|
| 43 |
--* RestoreFromTempTable
|
|
| 43 |
-- RestoreFromTempTable |
|
| 44 | 44 |
create table approvalmaster ( |
| 45 | 45 |
ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
| 46 | 46 |
, DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| ... | ... | |
| 54 | 54 |
) comment '???F?o?H?}?X?^' ; |
| 55 | 55 |
|
| 56 | 56 |
-- ?o?????f?[?^ |
| 57 |
--* BackupToTempTable
|
|
| 57 |
-- BackupToTempTable |
|
| 58 | 58 |
drop table if exists attendancedailydata cascade; |
| 59 | 59 |
|
| 60 |
--* RestoreFromTempTable
|
|
| 60 |
-- RestoreFromTempTable |
|
| 61 | 61 |
create table attendancedailydata ( |
| 62 | 62 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 63 | 63 |
, AttendanceDate date not null comment '???????' |
| 64 | 64 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
| 65 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
|
| 66 |
, ActionResult varchar(30) not null comment '?s??????'
|
|
| 65 |
, ConstructionCode decimal(10,0) not null comment '?H???R?[?h' |
|
| 66 |
, ActionResult varchar(100) not null comment '?s??????'
|
|
| 67 | 67 |
, StartTime datetime comment '?J?n????' |
| 68 | 68 |
, CompTime datetime comment '?I??????' |
| 69 |
, DayTimes decimal(4,1) not null comment '????????v????' |
|
| 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?????' |
|
| 70 | 72 |
, WorkingComment varchar(120) comment '?R?????g' |
| 71 |
, WorkKindFlg decimal(1,0) not null comment '?????t???O'
|
|
| 73 |
, WorkKindFlg decimal(2,0) not null comment '?????t???O'
|
|
| 72 | 74 |
, EntryDate datetime not null comment '?o?^???t' |
| 73 | 75 |
, UpdateDate datetime not null comment '?X?V???t' |
| 74 | 76 |
, constraint attendancedailydata_PKC primary key (PersonCode,AttendanceDate,SeqNo) |
| ... | ... | |
| 81 | 83 |
on attendancedailydata(AttendanceDate); |
| 82 | 84 |
|
| 83 | 85 |
-- ?o?????f?[?^ |
| 84 |
--* BackupToTempTable
|
|
| 86 |
-- BackupToTempTable |
|
| 85 | 87 |
drop table if exists attendancedata cascade; |
| 86 | 88 |
|
| 87 |
--* RestoreFromTempTable
|
|
| 89 |
-- RestoreFromTempTable |
|
| 88 | 90 |
create table attendancedata ( |
| 89 | 91 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 90 |
, AttendanceMonth date not null comment '?o?????N??'
|
|
| 92 |
, AttendanceMonth decimal(6,0) unsigned not null comment '?o?????N??'
|
|
| 91 | 93 |
, LastDays decimal(2,0) unsigned not null comment '??????I??' |
| 92 | 94 |
, AttendDayCount decimal(2,0) unsigned not null comment '?o?????' |
| 93 |
, TotalOverTimes decimal(4,1) not null comment '?c??????' |
|
| 94 |
, OrderDate date not null comment '?\????' |
|
| 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 '?\????' |
|
| 95 | 107 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 96 | 108 |
, EntryDate datetime not null comment '?o?^???t' |
| 97 | 109 |
, UpdateDate datetime not null comment '?X?V???t' |
| 98 | 110 |
, constraint attendancedata_PKC primary key (PersonCode,AttendanceMonth) |
| 99 | 111 |
) comment '?o?????f?[?^' ; |
| 100 | 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 |
|
|
| 101 | 209 |
-- ??s?c????}?X?^ |
| 102 |
--* BackupToTempTable
|
|
| 210 |
-- BackupToTempTable |
|
| 103 | 211 |
drop table if exists bankbusinessdaymaster cascade; |
| 104 | 212 |
|
| 105 |
--* RestoreFromTempTable
|
|
| 213 |
-- RestoreFromTempTable |
|
| 106 | 214 |
create table bankbusinessdaymaster ( |
| 107 | 215 |
YEARMONTH decimal(6,0) default '0' not null comment '?N??' |
| 108 | 216 |
, BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???' |
| ... | ... | |
| 114 | 222 |
) comment '??s?c????}?X?^' ; |
| 115 | 223 |
|
| 116 | 224 |
-- ???????f?[?^ |
| 117 |
--* BackupToTempTable
|
|
| 225 |
-- BackupToTempTable |
|
| 118 | 226 |
drop table if exists billingdata cascade; |
| 119 | 227 |
|
| 120 |
--* RestoreFromTempTable
|
|
| 228 |
-- RestoreFromTempTable |
|
| 121 | 229 |
create table billingdata ( |
| 122 | 230 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 123 | 231 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| ... | ... | |
| 129 | 237 |
) comment '???????f?[?^' ; |
| 130 | 238 |
|
| 131 | 239 |
-- ??????????f?[?^ |
| 132 |
--* BackupToTempTable
|
|
| 240 |
-- BackupToTempTable |
|
| 133 | 241 |
drop table if exists billingdatadetail cascade; |
| 134 | 242 |
|
| 135 |
--* RestoreFromTempTable
|
|
| 243 |
-- RestoreFromTempTable |
|
| 136 | 244 |
create table billingdatadetail ( |
| 137 | 245 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 138 | 246 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| 139 | 247 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
| 140 | 248 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???' |
| 249 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????' |
|
| 141 | 250 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????' |
| 142 |
, CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '?s???' |
|
| 143 |
, CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '????' |
|
| 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' |
|
| 144 | 254 |
, FIELDNAME varchar(120) comment '????' |
| 145 | 255 |
, BILLPRICE decimal(10,0) comment '???????z' |
| 146 | 256 |
, HIGHWPRICE decimal(10,0) comment '??????' |
| 147 | 257 |
, HARDWPRICE decimal(10,0) comment '??????' |
| 148 | 258 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??' |
| 259 |
, OverFlg decimal(1,0) comment '?x??????t???O' |
|
| 149 | 260 |
, NOTE varchar(120) comment '???l' |
| 261 |
, DELETEFLG decimal(1,0) comment '???t???O' |
|
| 150 | 262 |
, ENTRYDATE datetime comment '?o?^?N????' |
| 151 | 263 |
, UPDATEDATE datetime comment '?X?V?N????' |
| 152 |
, constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT) |
|
| 264 |
, constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,LABOURKIND)
|
|
| 153 | 265 |
) comment '??????????f?[?^' ; |
| 154 | 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 |
|
|
| 155 | 291 |
-- ???????x???T?}???[?f?[?^ |
| 156 |
--* BackupToTempTable
|
|
| 292 |
-- BackupToTempTable |
|
| 157 | 293 |
drop table if exists billingpaymentsummary cascade; |
| 158 | 294 |
|
| 159 |
--* RestoreFromTempTable
|
|
| 295 |
-- RestoreFromTempTable |
|
| 160 | 296 |
create table billingpaymentsummary ( |
| 161 | 297 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 162 | 298 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| ... | ... | |
| 177 | 313 |
) comment '???????x???T?}???[?f?[?^' ; |
| 178 | 314 |
|
| 179 | 315 |
-- ?^?c????????? |
| 180 |
--* BackupToTempTable
|
|
| 316 |
-- BackupToTempTable |
|
| 181 | 317 |
drop table if exists bizperiodhistory cascade; |
| 182 | 318 |
|
| 183 |
--* RestoreFromTempTable
|
|
| 319 |
-- RestoreFromTempTable |
|
| 184 | 320 |
create table bizperiodhistory ( |
| 185 | 321 |
PeriodYear smallint(6) not null comment '?c??????E?H???N?x' |
| 186 | 322 |
, PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O' |
| ... | ... | |
| 192 | 328 |
) comment '?^?c?????????' ; |
| 193 | 329 |
|
| 194 | 330 |
-- ?H???????f?[?^?y???p?z |
| 195 |
--* BackupToTempTable
|
|
| 331 |
-- BackupToTempTable |
|
| 196 | 332 |
drop table if exists bk_constructionledger cascade; |
| 197 | 333 |
|
| 198 |
--* RestoreFromTempTable
|
|
| 334 |
-- RestoreFromTempTable |
|
| 199 | 335 |
create table bk_constructionledger ( |
| 200 | 336 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 201 | 337 |
, ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
| ... | ... | |
| 221 | 357 |
) comment '?H???????f?[?^?y???p?z' ; |
| 222 | 358 |
|
| 223 | 359 |
-- ?H??????????f?[?^?y???p?z |
| 224 |
--* BackupToTempTable
|
|
| 360 |
-- BackupToTempTable |
|
| 225 | 361 |
drop table if exists bk_constructionledgerdetail cascade; |
| 226 | 362 |
|
| 227 |
--* RestoreFromTempTable
|
|
| 363 |
-- RestoreFromTempTable |
|
| 228 | 364 |
create table bk_constructionledgerdetail ( |
| 229 | 365 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 230 | 366 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| 231 |
, LineCount decimal(5,0) unsigned not null comment '?s???'
|
|
| 367 |
, LineCount decimal(4,0) unsigned not null comment '?s???'
|
|
| 232 | 368 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 233 | 369 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 234 | 370 |
, FirstString varchar(120) comment '???????' |
| ... | ... | |
| 250 | 386 |
, JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??' |
| 251 | 387 |
, SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
| 252 | 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' |
|
| 253 | 391 |
, EntryDate datetime not null comment '?o?^???t' |
| 254 | 392 |
, UpdateDate datetime not null comment '?X?V???t' |
| 255 | 393 |
, constraint bk_constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 256 | 394 |
) comment '?H??????????f?[?^?y???p?z' ; |
| 257 | 395 |
|
| 258 | 396 |
-- ?H?????????s?f?[?^?y???p?z |
| 259 |
--* BackupToTempTable
|
|
| 397 |
-- BackupToTempTable |
|
| 260 | 398 |
drop table if exists bk_constructionledgerexcute cascade; |
| 261 | 399 |
|
| 262 |
--* RestoreFromTempTable
|
|
| 400 |
-- RestoreFromTempTable |
|
| 263 | 401 |
create table bk_constructionledgerexcute ( |
| 264 | 402 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 265 | 403 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 273 | 411 |
) comment '?H?????????s?f?[?^?y???p?z' ; |
| 274 | 412 |
|
| 275 | 413 |
-- ??Z????f?[?^?y???p?z |
| 276 |
--* BackupToTempTable
|
|
| 414 |
-- BackupToTempTable |
|
| 277 | 415 |
drop table if exists bk_estimatedata cascade; |
| 278 | 416 |
|
| 279 |
--* RestoreFromTempTable
|
|
| 417 |
-- RestoreFromTempTable |
|
| 280 | 418 |
create table bk_estimatedata ( |
| 281 | 419 |
SaveDate datetime not null comment '?????t' |
| 282 | 420 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| ... | ... | |
| 295 | 433 |
) comment '??Z????f?[?^?y???p?z' ; |
| 296 | 434 |
|
| 297 | 435 |
-- ??Z????y?[?W?f?[?^?y???p?z |
| 298 |
--* BackupToTempTable
|
|
| 436 |
-- BackupToTempTable |
|
| 299 | 437 |
drop table if exists bk_estimatedatabody cascade; |
| 300 | 438 |
|
| 301 |
--* RestoreFromTempTable
|
|
| 439 |
-- RestoreFromTempTable |
|
| 302 | 440 |
create table bk_estimatedatabody ( |
| 303 | 441 |
SaveDate datetime not null comment '?????t' |
| 304 | 442 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| ... | ... | |
| 316 | 454 |
) comment '??Z????y?[?W?f?[?^?y???p?z' ; |
| 317 | 455 |
|
| 318 | 456 |
-- ??Z????f?[?^????y???p?z |
| 319 |
--* BackupToTempTable
|
|
| 457 |
-- BackupToTempTable |
|
| 320 | 458 |
drop table if exists bk_estimatedatadetail cascade; |
| 321 | 459 |
|
| 322 |
--* RestoreFromTempTable
|
|
| 460 |
-- RestoreFromTempTable |
|
| 323 | 461 |
create table bk_estimatedatadetail ( |
| 324 | 462 |
SaveDate datetime not null comment '?????t' |
| 325 | 463 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| ... | ... | |
| 345 | 483 |
) comment '??Z????f?[?^????y???p?z' ; |
| 346 | 484 |
|
| 347 | 485 |
-- ?\?Z???W?v?R?[?h?}?X?^ |
| 348 |
--* BackupToTempTable
|
|
| 486 |
-- BackupToTempTable |
|
| 349 | 487 |
drop table if exists budgetsumcode cascade; |
| 350 | 488 |
|
| 351 |
--* RestoreFromTempTable
|
|
| 489 |
-- RestoreFromTempTable |
|
| 352 | 490 |
create table budgetsumcode ( |
| 353 | 491 |
BlockCode decimal(2,0) unsigned not null comment '?u???b?N???' |
| 354 | 492 |
, GroupCode decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 361 | 499 |
) comment '?\?Z???W?v?R?[?h?}?X?^' ; |
| 362 | 500 |
|
| 363 | 501 |
-- ?@?l?i?}?X?^ |
| 364 |
--* BackupToTempTable
|
|
| 502 |
-- BackupToTempTable |
|
| 365 | 503 |
drop table if exists businesstypemaster cascade; |
| 366 | 504 |
|
| 367 |
--* RestoreFromTempTable
|
|
| 505 |
-- RestoreFromTempTable |
|
| 368 | 506 |
create table businesstypemaster ( |
| 369 | 507 |
BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h' |
| 370 | 508 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 378 | 516 |
on businesstypemaster(DisplayOrder); |
| 379 | 517 |
|
| 380 | 518 |
-- ?S????????????f?[?^ |
| 381 |
--* BackupToTempTable
|
|
| 519 |
-- BackupToTempTable |
|
| 382 | 520 |
drop table if exists chgchargedep cascade; |
| 383 | 521 |
|
| 384 |
--* RestoreFromTempTable
|
|
| 522 |
-- RestoreFromTempTable |
|
| 385 | 523 |
create table chgchargedep ( |
| 386 | 524 |
PersonCode decimal(8,0) not null comment '?S????R?[?h' |
| 387 | 525 |
, StartDate date not null comment '?J?n?N????' |
| ... | ... | |
| 394 | 532 |
) comment '?S????????????f?[?^' ; |
| 395 | 533 |
|
| 396 | 534 |
-- ?H???S????X?????f?[?^ |
| 397 |
--* BackupToTempTable
|
|
| 535 |
-- BackupToTempTable |
|
| 398 | 536 |
drop table if exists chgconstrcharge cascade; |
| 399 | 537 |
|
| 400 |
--* RestoreFromTempTable
|
|
| 538 |
-- RestoreFromTempTable |
|
| 401 | 539 |
create table chgconstrcharge ( |
| 402 | 540 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 403 | 541 |
, Division decimal(1,0) not null comment '????' |
| ... | ... | |
| 413 | 551 |
, constraint chgconstrcharge_PKC primary key (ConstructionCode,Division,SeqNo) |
| 414 | 552 |
) comment '?H???S????X?????f?[?^' ; |
| 415 | 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 |
|
|
| 416 | 570 |
-- ????????}?X?^ |
| 417 |
--* BackupToTempTable
|
|
| 571 |
-- BackupToTempTable |
|
| 418 | 572 |
drop table if exists commoncostlarge cascade; |
| 419 | 573 |
|
| 420 |
--* RestoreFromTempTable
|
|
| 574 |
-- RestoreFromTempTable |
|
| 421 | 575 |
create table commoncostlarge ( |
| 422 | 576 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 423 | 577 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 430 | 584 |
) comment '????????}?X?^' ; |
| 431 | 585 |
|
| 432 | 586 |
-- ?????H???A?}?X?^ |
| 433 |
--* BackupToTempTable
|
|
| 587 |
-- BackupToTempTable |
|
| 434 | 588 |
drop table if exists commoncostlinkms cascade; |
| 435 | 589 |
|
| 436 |
--* RestoreFromTempTable
|
|
| 590 |
-- RestoreFromTempTable |
|
| 437 | 591 |
create table commoncostlinkms ( |
| 438 | 592 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 439 | 593 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| ... | ... | |
| 444 | 598 |
) comment '?????H???A?}?X?^' ; |
| 445 | 599 |
|
| 446 | 600 |
-- ?????????}?X?^ |
| 447 |
--* BackupToTempTable
|
|
| 601 |
-- BackupToTempTable |
|
| 448 | 602 |
drop table if exists commoncostmiddle cascade; |
| 449 | 603 |
|
| 450 |
--* RestoreFromTempTable
|
|
| 604 |
-- RestoreFromTempTable |
|
| 451 | 605 |
create table commoncostmiddle ( |
| 452 | 606 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 453 | 607 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| ... | ... | |
| 461 | 615 |
) comment '?????????}?X?^' ; |
| 462 | 616 |
|
| 463 | 617 |
-- ?????????L?[?}?X?^ |
| 464 |
--* BackupToTempTable
|
|
| 618 |
-- BackupToTempTable |
|
| 465 | 619 |
drop table if exists commoncostmiddlesearchword cascade; |
| 466 | 620 |
|
| 467 |
--* RestoreFromTempTable
|
|
| 621 |
-- RestoreFromTempTable |
|
| 468 | 622 |
create table commoncostmiddlesearchword ( |
| 469 | 623 |
LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 470 | 624 |
, MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
| ... | ... | |
| 476 | 630 |
) comment '?????????L?[?}?X?^' ; |
| 477 | 631 |
|
| 478 | 632 |
-- ?\???H???A?}?X?^ |
| 479 |
--* BackupToTempTable
|
|
| 633 |
-- BackupToTempTable |
|
| 480 | 634 |
drop table if exists componentlinkmaster cascade; |
| 481 | 635 |
|
| 482 |
--* RestoreFromTempTable
|
|
| 636 |
-- RestoreFromTempTable |
|
| 483 | 637 |
create table componentlinkmaster ( |
| 484 | 638 |
ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 485 | 639 |
, ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| ... | ... | |
| 496 | 650 |
on componentlinkmaster(ItemCode); |
| 497 | 651 |
|
| 498 | 652 |
-- ?\???}?X?^ |
| 499 |
--* BackupToTempTable
|
|
| 653 |
-- BackupToTempTable |
|
| 500 | 654 |
drop table if exists componentmaster cascade; |
| 501 | 655 |
|
| 502 |
--* RestoreFromTempTable
|
|
| 656 |
-- RestoreFromTempTable |
|
| 503 | 657 |
create table componentmaster ( |
| 504 | 658 |
ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 505 | 659 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 517 | 671 |
on componentmaster(DisplayOrder); |
| 518 | 672 |
|
| 519 | 673 |
-- ?H?????E?\???????N?}?X?^ |
| 520 |
--* BackupToTempTable
|
|
| 674 |
-- BackupToTempTable |
|
| 521 | 675 |
drop table if exists componenttotypemaster cascade; |
| 522 | 676 |
|
| 523 |
--* RestoreFromTempTable
|
|
| 677 |
-- RestoreFromTempTable |
|
| 524 | 678 |
create table componenttotypemaster ( |
| 525 | 679 |
TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 526 | 680 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| ... | ... | |
| 537 | 691 |
on componenttotypemaster(ComponentCode); |
| 538 | 692 |
|
| 539 | 693 |
-- ?H???????o??f?[?^ |
| 540 |
--* BackupToTempTable
|
|
| 694 |
-- BackupToTempTable |
|
| 541 | 695 |
drop table if exists constrledgerexpenses cascade; |
| 542 | 696 |
|
| 543 |
--* RestoreFromTempTable
|
|
| 697 |
-- RestoreFromTempTable |
|
| 544 | 698 |
create table constrledgerexpenses ( |
| 545 | 699 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 546 | 700 |
, SeqNo decimal(5,0) not null comment '?}??' |
| ... | ... | |
| 562 | 716 |
on constrledgerexpenses(NameCode); |
| 563 | 717 |
|
| 564 | 718 |
-- ?H????{???
|
| 565 |
--* BackupToTempTable
|
|
| 719 |
-- BackupToTempTable |
|
| 566 | 720 |
drop table if exists constructionbaseinfo cascade; |
| 567 | 721 |
|
| 568 |
--* RestoreFromTempTable
|
|
| 722 |
-- RestoreFromTempTable |
|
| 569 | 723 |
create table constructionbaseinfo ( |
| 570 | 724 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 571 | 725 |
, TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O' |
| ... | ... | |
| 623 | 777 |
, InspectPlanningDate date not null comment '?????\???' |
| 624 | 778 |
, InspectExecuteDate date not null comment '???????s??' |
| 625 | 779 |
, RevCompleteDate date not null comment '??????????????' |
| 780 |
, ExpectedOrder decimal(3,0) not null comment '?????x' |
|
| 626 | 781 |
, EntryDate datetime not null comment '?o?^???t' |
| 627 | 782 |
, UpdateDate datetime not null comment '?X?V???t' |
| 628 | 783 |
, constraint constructionbaseinfo_PKC primary key (ConstructionCode) |
| ... | ... | |
| 647 | 802 |
on constructionbaseinfo(ConstructionPeriod); |
| 648 | 803 |
|
| 649 | 804 |
-- ?H????{????
|
| 650 |
--* BackupToTempTable
|
|
| 805 |
-- BackupToTempTable |
|
| 651 | 806 |
drop table if exists constructionbaseinfodetail cascade; |
| 652 | 807 |
|
| 653 |
--* RestoreFromTempTable
|
|
| 808 |
-- RestoreFromTempTable |
|
| 654 | 809 |
create table constructionbaseinfodetail ( |
| 655 | 810 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 656 | 811 |
, DetailNo decimal(3,0) not null comment '??????' |
| ... | ... | |
| 667 | 822 |
on constructionbaseinfodetail(DetailNo); |
| 668 | 823 |
|
| 669 | 824 |
-- ?H???{?H?\?Z?f?[?^
|
| 670 |
--* BackupToTempTable
|
|
| 825 |
-- BackupToTempTable |
|
| 671 | 826 |
drop table if exists constructionbudget cascade; |
| 672 | 827 |
|
| 673 |
--* RestoreFromTempTable
|
|
| 828 |
-- RestoreFromTempTable |
|
| 674 | 829 |
create table constructionbudget ( |
| 675 | 830 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 676 | 831 |
, CreatorCode decimal(8,0) not null comment '????R?[?h' |
| ... | ... | |
| 700 | 855 |
) comment '?H???{?H?\?Z?f?[?^' ;
|
| 701 | 856 |
|
| 702 | 857 |
-- ?H???{?H?\?Z?f?[?^????
|
| 703 |
--* BackupToTempTable
|
|
| 858 |
-- BackupToTempTable |
|
| 704 | 859 |
drop table if exists constructionbudgetdetail cascade; |
| 705 | 860 |
|
| 706 |
--* RestoreFromTempTable
|
|
| 861 |
-- RestoreFromTempTable |
|
| 707 | 862 |
create table constructionbudgetdetail ( |
| 708 | 863 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 709 | 864 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 727 | 882 |
) comment '?H???{?H?\?Z?f?[?^????' ;
|
| 728 | 883 |
|
| 729 | 884 |
-- ?H??}?X?^ |
| 730 |
--* BackupToTempTable
|
|
| 885 |
-- BackupToTempTable |
|
| 731 | 886 |
drop table if exists constructionitemmaster cascade; |
| 732 | 887 |
|
| 733 |
--* RestoreFromTempTable
|
|
| 888 |
-- RestoreFromTempTable |
|
| 734 | 889 |
create table constructionitemmaster ( |
| 735 | 890 |
ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 736 | 891 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 744 | 899 |
) comment '?H??}?X?^' ; |
| 745 | 900 |
|
| 746 | 901 |
-- ?H???????f?[?^ |
| 747 |
--* BackupToTempTable
|
|
| 902 |
-- BackupToTempTable |
|
| 748 | 903 |
drop table if exists constructionledger cascade; |
| 749 | 904 |
|
| 750 |
--* RestoreFromTempTable
|
|
| 905 |
-- RestoreFromTempTable |
|
| 751 | 906 |
create table constructionledger ( |
| 752 | 907 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 753 | 908 |
, ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
| ... | ... | |
| 779 | 934 |
on constructionledger(ConstructionEnd); |
| 780 | 935 |
|
| 781 | 936 |
-- ?H??????????f?[?^ |
| 782 |
--* BackupToTempTable
|
|
| 937 |
-- BackupToTempTable |
|
| 783 | 938 |
drop table if exists constructionledgerdetail cascade; |
| 784 | 939 |
|
| 785 |
--* RestoreFromTempTable
|
|
| 940 |
-- RestoreFromTempTable |
|
| 786 | 941 |
create table constructionledgerdetail ( |
| 787 | 942 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 788 | 943 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 809 | 964 |
, SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
| 810 | 965 |
, PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O' |
| 811 | 966 |
, DetailCount decimal(4,0) unsigned not null comment '??????' |
| 967 |
, InvalidLine decimal(1,0) not null comment '?????s' |
|
| 812 | 968 |
, EntryDate datetime not null comment '?o?^???t' |
| 813 | 969 |
, UpdateDate datetime not null comment '?X?V???t' |
| 814 | 970 |
, constraint constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| ... | ... | |
| 836 | 992 |
on constructionledgerdetail(CompanyCode); |
| 837 | 993 |
|
| 838 | 994 |
-- ?H?????????s?f?[?^ |
| 839 |
--* BackupToTempTable
|
|
| 995 |
-- BackupToTempTable |
|
| 840 | 996 |
drop table if exists constructionledgerexcute cascade; |
| 841 | 997 |
|
| 842 |
--* RestoreFromTempTable
|
|
| 998 |
-- RestoreFromTempTable |
|
| 843 | 999 |
create table constructionledgerexcute ( |
| 844 | 1000 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 845 | 1001 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 856 | 1012 |
on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount); |
| 857 | 1013 |
|
| 858 | 1014 |
-- ?H???????N??? |
| 859 |
--* BackupToTempTable
|
|
| 1015 |
-- BackupToTempTable |
|
| 860 | 1016 |
drop table if exists constructionlink cascade; |
| 861 | 1017 |
|
| 862 |
--* RestoreFromTempTable
|
|
| 1018 |
-- RestoreFromTempTable |
|
| 863 | 1019 |
create table constructionlink ( |
| 864 | 1020 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 865 | 1021 |
, FluctuationCode decimal(10,0) not null comment '?q?H?????' |
| ... | ... | |
| 879 | 1035 |
on constructionlink(LinkType); |
| 880 | 1036 |
|
| 881 | 1037 |
-- ?H???????? |
| 882 |
--* BackupToTempTable
|
|
| 1038 |
-- BackupToTempTable |
|
| 883 | 1039 |
drop table if exists constructionmaterialinfo cascade; |
| 884 | 1040 |
|
| 885 |
--* RestoreFromTempTable
|
|
| 1041 |
-- RestoreFromTempTable |
|
| 886 | 1042 |
create table constructionmaterialinfo ( |
| 887 | 1043 |
CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????' |
| 888 | 1044 |
, MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
| ... | ... | |
| 897 | 1053 |
) comment '?H????????' ; |
| 898 | 1054 |
|
| 899 | 1055 |
-- ????i?????t?f?[?^ |
| 900 |
--* BackupToTempTable
|
|
| 1056 |
-- BackupToTempTable |
|
| 901 | 1057 |
drop table if exists constructionprogressdate cascade; |
| 902 | 1058 |
|
| 903 |
--* RestoreFromTempTable
|
|
| 1059 |
-- RestoreFromTempTable |
|
| 904 | 1060 |
create table constructionprogressdate ( |
| 905 | 1061 |
ConstructionCode decimal(10,0) not null comment '?H?????' |
| 906 | 1062 |
, ConstructionStatusFlg decimal(2,0) not null comment '???H?????' |
| ... | ... | |
| 922 | 1078 |
on constructionprogressdate(ChangeDate); |
| 923 | 1079 |
|
| 924 | 1080 |
-- ???}?X?^ |
| 925 |
--* BackupToTempTable
|
|
| 1081 |
-- BackupToTempTable |
|
| 926 | 1082 |
drop table if exists constructionspecmaster cascade; |
| 927 | 1083 |
|
| 928 |
--* RestoreFromTempTable
|
|
| 1084 |
-- RestoreFromTempTable |
|
| 929 | 1085 |
create table constructionspecmaster ( |
| 930 | 1086 |
ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 931 | 1087 |
, SpecCode decimal(5,0) unsigned not null comment '???L?[' |
| ... | ... | |
| 944 | 1100 |
on constructionspecmaster(DisplayOrder); |
| 945 | 1101 |
|
| 946 | 1102 |
-- ???P???}?X?^ |
| 947 |
--* BackupToTempTable
|
|
| 1103 |
-- BackupToTempTable |
|
| 948 | 1104 |
drop table if exists constructionspecunitprice cascade; |
| 949 | 1105 |
|
| 950 |
--* RestoreFromTempTable
|
|
| 1106 |
-- RestoreFromTempTable |
|
| 951 | 1107 |
create table constructionspecunitprice ( |
| 952 | 1108 |
ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h' |
| 953 | 1109 |
, ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| ... | ... | |
| 963 | 1119 |
on constructionspecunitprice(ConstructionTypeCode,ComponentCode,ItemCode); |
| 964 | 1120 |
|
| 965 | 1121 |
-- ?H?????}?X?^ |
| 966 |
--* BackupToTempTable
|
|
| 1122 |
-- BackupToTempTable |
|
| 967 | 1123 |
drop table if exists constructiontypemaster cascade; |
| 968 | 1124 |
|
| 969 |
--* RestoreFromTempTable
|
|
| 1125 |
-- RestoreFromTempTable |
|
| 970 | 1126 |
create table constructiontypemaster ( |
| 971 | 1127 |
TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 972 | 1128 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 981 | 1137 |
, constraint constructiontypemaster_PKC primary key (TypeCode) |
| 982 | 1138 |
) comment '?H?????}?X?^' ; |
| 983 | 1139 |
|
| 1140 |
-- ?????f?[?^ |
|
| 1141 |
-- BackupToTempTable |
|
| 1142 |
drop table if exists consumptiontax cascade; |
|
| 1143 |
|
|
| 1144 |
-- RestoreFromTempTable |
|
| 1145 |
create table consumptiontax ( |
|
| 1146 |
StartDate date not null comment '?g?p?J?n?N????' |
|
| 1147 |
, ComplateDate date comment '?g?p?I???N????' |
|
| 1148 |
, TaxRate decimal(4,2) default '0.00' not null comment '??????' |
|
| 1149 |
, DeleteFlg decimal(1,0) comment '???t???O' |
|
| 1150 |
, EntryDate datetime comment '?o?^?N????' |
|
| 1151 |
, UpdateDate datetime comment '?X?V?N????' |
|
| 1152 |
, constraint consumptiontax_PKC primary key (StartDate) |
|
| 1153 |
) comment '?????f?[?^' ; |
|
| 1154 |
|
|
| 984 | 1155 |
-- ?????o?[?f?[?^ |
| 985 |
--* BackupToTempTable
|
|
| 1156 |
-- BackupToTempTable |
|
| 986 | 1157 |
drop table if exists costdataofdepartment cascade; |
| 987 | 1158 |
|
| 988 |
--* RestoreFromTempTable
|
|
| 1159 |
-- RestoreFromTempTable |
|
| 989 | 1160 |
create table costdataofdepartment ( |
| 990 | 1161 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 991 | 1162 |
, ConstrYear smallint(5) unsigned not null comment '?H???????E?N??' |
| ... | ... | |
| 1005 | 1176 |
) comment '?????o?[?f?[?^' ; |
| 1006 | 1177 |
|
| 1007 | 1178 |
-- ?S??????o??f?[?^ |
| 1008 |
--* BackupToTempTable
|
|
| 1179 |
-- BackupToTempTable |
|
| 1009 | 1180 |
drop table if exists costdataofperson cascade; |
| 1010 | 1181 |
|
| 1011 |
--* RestoreFromTempTable
|
|
| 1182 |
-- RestoreFromTempTable |
|
| 1012 | 1183 |
create table costdataofperson ( |
| 1013 | 1184 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1014 | 1185 |
, ActionDate date not null comment '?????t' |
| ... | ... | |
| 1037 | 1208 |
on costdataofperson(ConstructionCode); |
| 1038 | 1209 |
|
| 1039 | 1210 |
-- ??????o?^?\???f?[?^ |
| 1040 |
--* BackupToTempTable
|
|
| 1211 |
-- BackupToTempTable |
|
| 1041 | 1212 |
drop table if exists costomerregist cascade; |
| 1042 | 1213 |
|
| 1043 |
--* RestoreFromTempTable
|
|
| 1214 |
-- RestoreFromTempTable |
|
| 1044 | 1215 |
create table costomerregist ( |
| 1045 | 1216 |
CreatePersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 1046 | 1217 |
, CreateDate date not null comment '????' |
| ... | ... | |
| 1065 | 1236 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 1066 | 1237 |
, Note varchar(300) comment '???l' |
| 1067 | 1238 |
, OrderCotegory decimal(5,0) unsigned not null comment '???????' |
| 1068 |
, OrderDate date not null comment '?\????'
|
|
| 1239 |
, OrderDate decimal(6,0) unsigned not null comment '?\????'
|
|
| 1069 | 1240 |
, OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
| 1070 | 1241 |
, CreateDepartmentCode decimal(5,0) unsigned not null comment '?\???????R?[?h' |
| 1071 | 1242 |
, CreateDepartmentName varchar(60) comment '?\????????' |
| ... | ... | |
| 1084 | 1255 |
on costomerregist(CreateDepartmentCode); |
| 1085 | 1256 |
|
| 1086 | 1257 |
-- ????f?[?^ |
| 1087 |
--* BackupToTempTable
|
|
| 1258 |
-- BackupToTempTable |
|
| 1088 | 1259 |
drop table if exists dailydataconstruction cascade; |
| 1089 | 1260 |
|
| 1090 |
--* RestoreFromTempTable
|
|
| 1261 |
-- RestoreFromTempTable |
|
| 1091 | 1262 |
create table dailydataconstruction ( |
| 1092 | 1263 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1093 | 1264 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1108 | 1279 |
on dailydataconstruction(ConstructionCode); |
| 1109 | 1280 |
|
| 1110 | 1281 |
-- ????f?[?^ (????) |
| 1111 |
--* BackupToTempTable
|
|
| 1282 |
-- BackupToTempTable |
|
| 1112 | 1283 |
drop table if exists dailydatadetail cascade; |
| 1113 | 1284 |
|
| 1114 |
--* RestoreFromTempTable
|
|
| 1285 |
-- RestoreFromTempTable |
|
| 1115 | 1286 |
create table dailydatadetail ( |
| 1116 | 1287 |
PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1117 | 1288 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1133 | 1304 |
on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode); |
| 1134 | 1305 |
|
| 1135 | 1306 |
-- ????f?[?^ (??????) |
| 1136 |
--* BackupToTempTable
|
|
| 1307 |
-- BackupToTempTable |
|
| 1137 | 1308 |
drop table if exists dailydatafield cascade; |
| 1138 | 1309 |
|
| 1139 |
--* RestoreFromTempTable
|
|
| 1310 |
-- RestoreFromTempTable |
|
| 1140 | 1311 |
create table dailydatafield ( |
| 1141 | 1312 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1142 | 1313 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1153 | 1324 |
on dailydatafield(PersonCode,DailyDataDate,ConstructionCode); |
| 1154 | 1325 |
|
| 1155 | 1326 |
-- ????f?[?^ (????) |
| 1156 |
--* BackupToTempTable
|
|
| 1327 |
-- BackupToTempTable |
|
| 1157 | 1328 |
drop table if exists dailydatamaterials cascade; |
| 1158 | 1329 |
|
| 1159 |
--* RestoreFromTempTable
|
|
| 1330 |
-- RestoreFromTempTable |
|
| 1160 | 1331 |
create table dailydatamaterials ( |
| 1161 | 1332 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1162 | 1333 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1176 | 1347 |
on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode); |
| 1177 | 1348 |
|
| 1178 | 1349 |
-- ????f?[?^ (??????w??) |
| 1179 |
--* BackupToTempTable
|
|
| 1350 |
-- BackupToTempTable |
|
| 1180 | 1351 |
drop table if exists dailydatasubcontractors cascade; |
| 1181 | 1352 |
|
| 1182 |
--* RestoreFromTempTable
|
|
| 1353 |
-- RestoreFromTempTable |
|
| 1183 | 1354 |
create table dailydatasubcontractors ( |
| 1184 | 1355 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1185 | 1356 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1196 | 1367 |
on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode); |
| 1197 | 1368 |
|
| 1198 | 1369 |
-- ????f?[?^ (???) |
| 1199 |
--* BackupToTempTable
|
|
| 1370 |
-- BackupToTempTable |
|
| 1200 | 1371 |
drop table if exists dailydatavehicles cascade; |
| 1201 | 1372 |
|
| 1202 |
--* RestoreFromTempTable
|
|
| 1373 |
-- RestoreFromTempTable |
|
| 1203 | 1374 |
create table dailydatavehicles ( |
| 1204 | 1375 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1205 | 1376 |
, DailyDataDate date not null comment '???????' |
| ... | ... | |
| 1220 | 1391 |
on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode); |
| 1221 | 1392 |
|
| 1222 | 1393 |
-- ???}?X?^ |
| 1223 |
--* BackupToTempTable
|
|
| 1394 |
-- BackupToTempTable |
|
| 1224 | 1395 |
drop table if exists daymaster cascade; |
| 1225 | 1396 |
|
| 1226 |
--* RestoreFromTempTable
|
|
| 1397 |
-- RestoreFromTempTable |
|
| 1227 | 1398 |
create table daymaster ( |
| 1228 | 1399 |
days smallint(6) not null comment '??' |
| 1229 | 1400 |
, constraint daymaster_PKC primary key (days) |
| 1230 | 1401 |
) comment '???}?X?^' ; |
| 1231 | 1402 |
|
| 1232 | 1403 |
-- ?????}?X?^ |
| 1233 |
--* BackupToTempTable
|
|
| 1404 |
-- BackupToTempTable |
|
| 1234 | 1405 |
drop table if exists deadlinemaster cascade; |
| 1235 | 1406 |
|
| 1236 |
--* RestoreFromTempTable
|
|
| 1407 |
-- RestoreFromTempTable |
|
| 1237 | 1408 |
create table deadlinemaster ( |
| 1238 | 1409 |
LABOURKIND decimal(1,0) default '0' not null comment '??????' |
| 1239 | 1410 |
, DEADLINE decimal(2,0) comment '????' |
| ... | ... | |
| 1246 | 1417 |
) comment '?????}?X?^' ; |
| 1247 | 1418 |
|
| 1248 | 1419 |
-- ?????o???}?X?^ |
| 1249 |
--* BackupToTempTable
|
|
| 1420 |
-- BackupToTempTable |
|
| 1250 | 1421 |
drop table if exists departmentexpensesmaster cascade; |
| 1251 | 1422 |
|
| 1252 |
--* RestoreFromTempTable
|
|
| 1423 |
-- RestoreFromTempTable |
|
| 1253 | 1424 |
create table departmentexpensesmaster ( |
| 1254 | 1425 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1255 | 1426 |
, ExpensesPeriod smallint(6) not null comment '?????' |
| ... | ... | |
| 1264 | 1435 |
) comment '?????o???}?X?^' ; |
| 1265 | 1436 |
|
| 1266 | 1437 |
-- ?????}?X?^ |
| 1267 |
--* BackupToTempTable
|
|
| 1438 |
-- BackupToTempTable |
|
| 1268 | 1439 |
drop table if exists departmentmaster cascade; |
| 1269 | 1440 |
|
| 1270 |
--* RestoreFromTempTable
|
|
| 1441 |
-- RestoreFromTempTable |
|
| 1271 | 1442 |
create table departmentmaster ( |
| 1272 | 1443 |
DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1273 | 1444 |
, DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| ... | ... | |
| 1286 | 1457 |
on departmentmaster(DisplayOrder); |
| 1287 | 1458 |
|
| 1288 | 1459 |
-- ?????m?F???F?f?[?^ |
| 1289 |
--* BackupToTempTable
|
|
| 1460 |
-- BackupToTempTable |
|
| 1290 | 1461 |
drop table if exists depositapprovalinfo cascade; |
| 1291 | 1462 |
|
| 1292 |
--* RestoreFromTempTable
|
|
| 1463 |
-- RestoreFromTempTable |
|
| 1293 | 1464 |
create table depositapprovalinfo ( |
| 1294 | 1465 |
ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1295 | 1466 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| ... | ... | |
| 1307 | 1478 |
) comment '?????m?F???F?f?[?^' ; |
| 1308 | 1479 |
|
| 1309 | 1480 |
-- ?????f?[?^ |
| 1310 |
--* BackupToTempTable
|
|
| 1481 |
-- BackupToTempTable |
|
| 1311 | 1482 |
drop table if exists depositdata cascade; |
| 1312 | 1483 |
|
| 1313 |
--* RestoreFromTempTable
|
|
| 1484 |
-- RestoreFromTempTable |
|
| 1314 | 1485 |
create table depositdata ( |
| 1315 | 1486 |
ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1316 | 1487 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| ... | ... | |
| 1321 | 1492 |
, DEPOSITAMOUNT decimal(12,0) comment '???????z' |
| 1322 | 1493 |
, DEPOSITAMOUNTCASH decimal(10,0) comment '???????z?i?????j' |
| 1323 | 1494 |
, DEPOSITAMOUNTBILL decimal(10,0) comment '???????z?i??`?j' |
| 1495 |
, FEES decimal(10,0) comment '????' |
|
| 1496 |
, OTHERADJUSTMENTS decimal(10,0) comment '????' |
|
| 1497 |
, CNSTRPRICE decimal(10,0) comment '?????' |
|
| 1498 |
, REMAININGCLEARING decimal(10,0) comment '?????c???z' |
|
| 1324 | 1499 |
, DEPOSITPERSONCODE decimal(8,0) not null comment '?????S????R?[?h' |
| 1325 | 1500 |
, NOTE varchar(120) comment '???l' |
| 1326 | 1501 |
, ENTRYDATE datetime comment '?o?^???t' |
| ... | ... | |
| 1329 | 1504 |
) comment '?????f?[?^' ; |
| 1330 | 1505 |
|
| 1331 | 1506 |
-- ????????f?[?^ |
| 1332 |
--* BackupToTempTable
|
|
| 1507 |
-- BackupToTempTable |
|
| 1333 | 1508 |
drop table if exists depositdatadetail cascade; |
| 1334 | 1509 |
|
| 1335 |
--* RestoreFromTempTable
|
|
| 1510 |
-- RestoreFromTempTable |
|
| 1336 | 1511 |
create table depositdatadetail ( |
| 1337 | 1512 |
ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1338 | 1513 |
, ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
| 1339 | 1514 |
, TARGETDATE decimal(6,0) not null comment '???N??' |
| 1340 | 1515 |
, REQUESTNO decimal(10,0) not null comment '????No' |
| 1341 |
, ORDERNO decimal(2,0) comment '??t???' |
|
| 1516 |
, ORDERNO decimal(2,0) not null comment '??t???' |
|
| 1517 |
, DEPOSITMONTH decimal(6,0) not null comment '?????N??' |
|
| 1518 |
, SEQNO decimal(3,0) not null comment '?????A??' |
|
| 1342 | 1519 |
, DEPOSITAMOUNT decimal(10,0) comment '???????z?i??????j' |
| 1343 | 1520 |
, TAXAMOUNT decimal(10,0) comment '?????' |
| 1344 | 1521 |
, DISCOUNTAMOUNT decimal(10,0) comment '?l???????z' |
| ... | ... | |
| 1352 | 1529 |
, NOTE varchar(120) comment '???l' |
| 1353 | 1530 |
, ENTRYDATE datetime comment '?o?^???t' |
| 1354 | 1531 |
, UPDATEDATE datetime comment '?X?V???t' |
| 1355 |
, constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO) |
|
| 1532 |
, constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO,ORDERNO)
|
|
| 1356 | 1533 |
) comment '????????f?[?^' ; |
| 1357 | 1534 |
|
| 1535 |
create index depositdatadetail_Index1 |
|
| 1536 |
on depositdatadetail(TARGETDATE); |
|
| 1537 |
|
|
| 1538 |
create index depositdatadetail_Index2 |
|
| 1539 |
on depositdatadetail(ORDERERSDIVISION,ORDERERSCODE,DEPOSITMONTH,SEQNO); |
|
| 1540 |
|
|
| 1358 | 1541 |
-- ???}?X?^ |
| 1359 |
--* BackupToTempTable
|
|
| 1542 |
-- BackupToTempTable |
|
| 1360 | 1543 |
drop table if exists divisionmaster cascade; |
| 1361 | 1544 |
|
| 1362 |
--* RestoreFromTempTable
|
|
| 1545 |
-- RestoreFromTempTable |
|
| 1363 | 1546 |
create table divisionmaster ( |
| 1364 | 1547 |
DivisionCode decimal(5,0) unsigned not null comment '???R?[?h' |
| 1365 | 1548 |
, NameCode decimal(5,0) unsigned not null comment '????R?[?h' |
| ... | ... | |
| 1372 | 1555 |
) comment '???}?X?^' ; |
| 1373 | 1556 |
|
| 1374 | 1557 |
-- ??Z?\?Z???f?[?^ |
| 1375 |
--* BackupToTempTable
|
|
| 1558 |
-- BackupToTempTable |
|
| 1376 | 1559 |
drop table if exists estimatebudget cascade; |
| 1377 | 1560 |
|
| 1378 |
--* RestoreFromTempTable
|
|
| 1561 |
-- RestoreFromTempTable |
|
| 1379 | 1562 |
create table estimatebudget ( |
| 1380 | 1563 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1381 | 1564 |
, ConstructionTime decimal(5,2) unsigned not null comment '?H??' |
| ... | ... | |
| 1392 | 1575 |
) comment '??Z?\?Z???f?[?^' ; |
| 1393 | 1576 |
|
| 1394 | 1577 |
-- ??Z?\?Z????f?[?^???? |
| 1395 |
--* BackupToTempTable
|
|
| 1578 |
-- BackupToTempTable |
|
| 1396 | 1579 |
drop table if exists estimatebudgetdetail cascade; |
| 1397 | 1580 |
|
| 1398 |
--* RestoreFromTempTable
|
|
| 1581 |
-- RestoreFromTempTable |
|
| 1399 | 1582 |
create table estimatebudgetdetail ( |
| 1400 | 1583 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1401 | 1584 |
, GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
| ... | ... | |
| 1415 | 1598 |
) comment '??Z?\?Z????f?[?^????' ; |
| 1416 | 1599 |
|
| 1417 | 1600 |
-- ??Z????f?[?^ |
| 1418 |
--* BackupToTempTable
|
|
| 1601 |
-- BackupToTempTable |
|
| 1419 | 1602 |
drop table if exists estimatedata cascade; |
| 1420 | 1603 |
|
| 1421 |
--* RestoreFromTempTable
|
|
| 1604 |
-- RestoreFromTempTable |
|
| 1422 | 1605 |
create table estimatedata ( |
| 1423 | 1606 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1424 | 1607 |
, LineCount decimal(3,0) unsigned not null comment '?s???' |
| ... | ... | |
| 1439 | 1622 |
on estimatedata(ConstructionCode,FixedItemCode); |
| 1440 | 1623 |
|
| 1441 | 1624 |
-- ??Z????y?[?W?f?[?^ |
| 1442 |
--* BackupToTempTable
|
|
| 1625 |
-- BackupToTempTable |
|
| 1443 | 1626 |
drop table if exists estimatedatabody cascade; |
| 1444 | 1627 |
|
| 1445 |
--* RestoreFromTempTable
|
|
| 1628 |
-- RestoreFromTempTable |
|
| 1446 | 1629 |
create table estimatedatabody ( |
| 1447 | 1630 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1448 | 1631 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| ... | ... | |
| 1462 | 1645 |
on estimatedatabody(ConstructionCode,ComponentCode,ItemCode); |
| 1463 | 1646 |
|
| 1464 | 1647 |
-- ??Z????f?[?^???? |
| 1465 |
--* BackupToTempTable
|
|
| 1648 |
-- BackupToTempTable |
|
| 1466 | 1649 |
drop table if exists estimatedatadetail cascade; |
| 1467 | 1650 |
|
| 1468 |
--* RestoreFromTempTable
|
|
| 1651 |
-- RestoreFromTempTable |
|
| 1469 | 1652 |
create table estimatedatadetail ( |
| 1470 | 1653 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1471 | 1654 |
, PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
| ... | ... | |
| 1493 | 1676 |
on estimatedatadetail(ConstructionCode,PageCount); |
| 1494 | 1677 |
|
| 1495 | 1678 |
-- ?o???}?X?^ |
| 1496 |
--* BackupToTempTable
|
|
| 1679 |
-- BackupToTempTable |
|
| 1497 | 1680 |
drop table if exists expensesmaster cascade; |
| 1498 | 1681 |
|
| 1499 |
--* RestoreFromTempTable
|
|
| 1682 |
-- RestoreFromTempTable |
|
| 1500 | 1683 |
create table expensesmaster ( |
| 1501 | 1684 |
DivisionCode smallint(6) not null comment '?H?????R?[?h' |
| 1502 | 1685 |
, NameCode smallint(6) not null comment '?o????R?[?h' |
| ... | ... | |
| 1509 | 1692 |
) comment '?o???}?X?^' ; |
| 1510 | 1693 |
|
| 1511 | 1694 |
-- ???x???}?X?^ |
| 1512 |
--* BackupToTempTable
|
|
| 1695 |
-- BackupToTempTable |
|
| 1513 | 1696 |
drop table if exists holidaycalendermaster cascade; |
| 1514 | 1697 |
|
| 1515 |
--* RestoreFromTempTable
|
|
| 1698 |
-- RestoreFromTempTable |
|
| 1516 | 1699 |
create table holidaycalendermaster ( |
| 1517 | 1700 |
Holiday date not null comment '?x??' |
| 1518 | 1701 |
, BusinessYear smallint(5) unsigned not null comment '?c??N?x' |
| ... | ... | |
| 1530 | 1713 |
create index HolidayCalenderMaster_Index3 |
| 1531 | 1714 |
on holidaycalendermaster(TargetDay); |
| 1532 | 1715 |
|
| 1716 |
-- ??????????f?[?^ |
|
| 1717 |
-- BackupToTempTable |
|
| 1718 |
drop table if exists inputbillingdata cascade; |
|
| 1719 |
|
|
| 1720 |
-- RestoreFromTempTable |
|
| 1721 |
create table inputbillingdata ( |
|
| 1722 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
|
| 1723 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
|
| 1724 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
|
| 1725 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????' |
|
| 1726 |
, FIELDNAME varchar(120) comment '????' |
|
| 1727 |
, PERSONNAME varchar(60) comment '?S?????' |
|
| 1728 |
, BILLPRICE decimal(10,0) comment '???????z' |
|
| 1729 |
, CONSUMPTIONTAX decimal(10,0) comment '?????' |
|
| 1730 |
, OTHERPRICE decimal(10,0) comment '??????' |
|
| 1731 |
, DELETEFLG decimal(1,0) comment '???t???O' |
|
| 1732 |
, ENTRYDATE datetime comment '?o?^?N????' |
|
| 1733 |
, UPDATEDATE datetime comment '?X?V?N????' |
|
| 1734 |
, constraint inputbillingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO) |
|
| 1735 |
) comment '??????????f?[?^' ; |
|
| 1736 |
|
|
| 1737 |
-- ?????????????f?[?^ |
|
| 1738 |
-- BackupToTempTable |
|
| 1739 |
drop table if exists inputbillingdatadetail cascade; |
|
| 1740 |
|
|
| 1741 |
-- RestoreFromTempTable |
|
| 1742 |
create table inputbillingdatadetail ( |
|
| 1743 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
|
| 1744 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
|
| 1745 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
|
| 1746 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???' |
|
| 1747 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????' |
|
| 1748 |
, CONSTRUCTIONCODE decimal(10,0) comment '?H?????' |
|
| 1749 |
, CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '????????' |
|
| 1750 |
, CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '??????' |
|
| 1751 |
, FIELDNAME varchar(120) comment '????' |
|
| 1752 |
, SECONDSTRING varchar(120) comment '?H?????e' |
|
| 1753 |
, BILLPRICE decimal(10,0) comment '???????z' |
|
| 1754 |
, HIGHWPRICE decimal(10,0) comment '??????' |
|
| 1755 |
, HARDWPRICE decimal(10,0) comment '??????' |
|
| 1756 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??' |
|
| 1757 |
, NOTE varchar(120) comment '???l' |
|
| 1758 |
, DELETEFLG decimal(1,0) comment '???t???O' |
|
| 1759 |
, ENTRYDATE datetime comment '?o?^?N????' |
|
| 1760 |
, UPDATEDATE datetime comment '?X?V?N????' |
|
| 1761 |
, constraint inputbillingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT) |
|
| 1762 |
) comment '?????????????f?[?^' ; |
|
| 1763 |
|
|
| 1764 |
-- ???????????? |
|
| 1765 |
-- BackupToTempTable |
|
| 1766 |
drop table if exists inputbillingstatus cascade; |
|
| 1767 |
|
|
| 1768 |
-- RestoreFromTempTable |
|
| 1769 |
create table inputbillingstatus ( |
|
| 1770 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
|
| 1771 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
|
| 1772 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
|
| 1773 |
, STATUS decimal(1,0) default '0' comment '???????' |
|
| 1774 |
, ENTRYDATE datetime comment '?o?^?N????' |
|
| 1775 |
, UPDATEDATE datetime comment '?X?V?N????' |
|
| 1776 |
, constraint inputbillingstatus_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO) |
|
| 1777 |
) comment '????????????' ; |
|
| 1778 |
|
|
| 1533 | 1779 |
-- ????????????? |
| 1534 |
--* BackupToTempTable
|
|
| 1780 |
-- BackupToTempTable |
|
| 1535 | 1781 |
drop table if exists inputsearchlogdata cascade; |
| 1536 | 1782 |
|
| 1537 |
--* RestoreFromTempTable
|
|
| 1783 |
-- RestoreFromTempTable |
|
| 1538 | 1784 |
create table inputsearchlogdata ( |
| 1539 | 1785 |
ConstructionCode decimal(10,0) not null comment '?H???R?[?h' |
| 1540 | 1786 |
, UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???' |
| ... | ... | |
| 1548 | 1794 |
on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode); |
| 1549 | 1795 |
|
| 1550 | 1796 |
-- ???????f?[?^ |
| 1551 |
--* BackupToTempTable
|
|
| 1797 |
-- BackupToTempTable |
|
| 1552 | 1798 |
drop table if exists invoicedata cascade; |
| 1553 | 1799 |
|
| 1554 |
--* RestoreFromTempTable
|
|
| 1800 |
-- RestoreFromTempTable |
|
| 1555 | 1801 |
create table invoicedata ( |
| 1556 | 1802 |
INVOICENO decimal(9,0) not null comment '??????No' |
| 1557 | 1803 |
, ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| ... | ... | |
| 1576 | 1822 |
|
| 1577 | 1823 |
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ; |
| 1578 | 1824 |
|
| 1825 |
-- ???[???R???e???c?}?X?^ |
|
| 1826 |
-- BackupToTempTable |
|
| 1827 |
drop table if exists mailcontentsmaster cascade; |
|
| 1828 |
|
|
| 1829 |
-- RestoreFromTempTable |
|
| 1830 |
create table mailcontentsmaster ( |
|
| 1831 |
MailDelivery decimal(3,0) not null comment '???M??????' |
|
| 1832 |
, MailTitle varchar(30) comment '???[???^?C?g??' |
|
| 1833 |
, MailContent varchar(400) comment '???[???{??'
|
|
| 1834 |
, EntryDate datetime not null comment '?o?^???t' |
|
| 1835 |
, UpdateDate datetime not null comment '?X?V???t' |
|
| 1836 |
, constraint mailcontentsmaster_PKC primary key (MailDelivery) |
|
| 1837 |
) comment '???[???R???e???c?}?X?^' ; |
|
| 1838 |
|
|
| 1579 | 1839 |
-- ?????? |
| 1580 |
--* BackupToTempTable
|
|
| 1840 |
-- BackupToTempTable |
|
| 1581 | 1841 |
drop table if exists materialinfo cascade; |
| 1582 | 1842 |
|
| 1583 |
--* RestoreFromTempTable
|
|
| 1843 |
-- RestoreFromTempTable |
|
| 1584 | 1844 |
create table materialinfo ( |
| 1585 | 1845 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
| 1586 | 1846 |
, MATERIALCOUNT smallint(5) unsigned comment '?????' |
| ... | ... | |
| 1592 | 1852 |
) comment '??????' ; |
| 1593 | 1853 |
|
| 1594 | 1854 |
-- ????i??}?X?^ |
| 1595 |
--* BackupToTempTable
|
|
| 1855 |
-- BackupToTempTable |
|
| 1596 | 1856 |
drop table if exists materialitemmaster cascade; |
| 1597 | 1857 |
|
| 1598 |
--* RestoreFromTempTable
|
|
| 1858 |
-- RestoreFromTempTable |
|
| 1599 | 1859 |
create table materialitemmaster ( |
| 1600 | 1860 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
| 1601 | 1861 |
, MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h' |
| ... | ... | |
| 1609 | 1869 |
) comment '????i??}?X?^' ; |
| 1610 | 1870 |
|
| 1611 | 1871 |
-- ??????}?X?^ |
| 1612 |
--* BackupToTempTable
|
|
| 1872 |
-- BackupToTempTable |
|
| 1613 | 1873 |
drop table if exists materialkindmaster cascade; |
| 1614 | 1874 |
|
| 1615 |
--* RestoreFromTempTable
|
|
| 1875 |
-- RestoreFromTempTable |
|
| 1616 | 1876 |
create table materialkindmaster ( |
| 1617 | 1877 |
MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h' |
| 1618 | 1878 |
, MATERIALKINDNAME varchar(40) comment '?????????' |
| ... | ... | |
| 1624 | 1884 |
) comment '??????}?X?^' ; |
| 1625 | 1885 |
|
| 1626 | 1886 |
-- ?????????? |
| 1627 |
--* BackupToTempTable
|
|
| 1887 |
-- BackupToTempTable |
|
| 1628 | 1888 |
drop table if exists materialrecordinfo cascade; |
| 1629 | 1889 |
|
| 1630 |
--* RestoreFromTempTable
|
|
| 1890 |
-- RestoreFromTempTable |
|
| 1631 | 1891 |
create table materialrecordinfo ( |
| 1632 | 1892 |
MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
| 1633 | 1893 |
, PROCESSDATE date default '0000-00-00' not null comment '?????N????' |
| ... | ... | |
| 1644 | 1904 |
) comment '??????????' ; |
| 1645 | 1905 |
|
| 1646 | 1906 |
-- ?f??????b?Z?[?W |
| 1647 |
--* BackupToTempTable
|
|
| 1907 |
-- BackupToTempTable |
|
| 1648 | 1908 |
drop table if exists messageboarddata cascade; |
| 1649 | 1909 |
|
| 1650 |
--* RestoreFromTempTable
|
|
| 1910 |
-- RestoreFromTempTable |
|
| 1651 | 1911 |
create table messageboarddata ( |
| 1652 | 1912 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???' |
| 1653 | 1913 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??' |
| ... | ... | |
| 1676 | 1936 |
on messageboarddata(MessageFlag); |
| 1677 | 1937 |
|
| 1678 | 1938 |
-- ?f???????e?[?u?? |
| 1679 |
--* BackupToTempTable
|
|
| 1939 |
-- BackupToTempTable |
|
| 1680 | 1940 |
drop table if exists messageboardterget cascade; |
| 1681 | 1941 |
|
| 1682 |
--* RestoreFromTempTable
|
|
| 1942 |
-- RestoreFromTempTable |
|
| 1683 | 1943 |
create table messageboardterget ( |
| 1684 | 1944 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???' |
| 1685 | 1945 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??' |
| ... | ... | |
| 1695 | 1955 |
on messageboardterget(RecordNumber,BranchNumber); |
| 1696 | 1956 |
|
| 1697 | 1957 |
-- ?f??????b?Z?[?W?{??????
|
| 1698 |
--* BackupToTempTable
|
|
| 1958 |
-- BackupToTempTable |
|
| 1699 | 1959 |
drop table if exists messagebrowsinghistory cascade; |
| 1700 | 1960 |
|
| 1701 |
--* RestoreFromTempTable
|
|
| 1961 |
-- RestoreFromTempTable |
|
| 1702 | 1962 |
create table messagebrowsinghistory ( |
| 1703 | 1963 |
RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???' |
| 1704 | 1964 |
, BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??' |
| ... | ... | |
| 1711 | 1971 |
) comment '?f??????b?Z?[?W?{??????' ;
|
| 1712 | 1972 |
|
| 1713 | 1973 |
-- ???}?X?^ |
| 1714 |
--* BackupToTempTable
|
|
| 1974 |
-- BackupToTempTable |
|
| 1715 | 1975 |
drop table if exists monthmaster cascade; |
| 1716 | 1976 |
|
| 1717 |
--* RestoreFromTempTable
|
|
| 1977 |
-- RestoreFromTempTable |
|
| 1718 | 1978 |
create table monthmaster ( |
| 1719 | 1979 |
month smallint(6) not null comment '??' |
| 1720 | 1980 |
, constraint monthmaster_PKC primary key (month) |
| 1721 | 1981 |
) comment '???}?X?^' ; |
| 1722 | 1982 |
|
| 1983 |
-- ???m????? |
|
| 1984 |
-- BackupToTempTable |
|
| 1985 |
drop table if exists notificationmessage cascade; |
|
| 1986 |
|
|
| 1987 |
-- RestoreFromTempTable |
|
| 1988 |
create table notificationmessage ( |
|
| 1989 |
MessageDate datetime not null comment '?\???N????' |
|
| 1990 |
, SeqNo decimal(3,0) unsigned not null comment '?A??' |
|
| 1991 |
, MessageTitle varchar(100) comment '???m???^?C?g??' |
|
| 1992 |
, MessageContent varchar(1333) not null comment '???m?????e' |
|
| 1993 |
, PersonCode decimal(8,0) not null comment '??????S????R?[?h' |
|
| 1994 |
, ShareFlag decimal(2,0) not null comment '???????t???O' |
|
| 1995 |
, MessageColor varchar(8) comment '?????F' |
|
| 1996 |
, BackColor varchar(8) comment '?o?b?N?J???[' |
|
| 1997 |
, QueSeqNo decimal(8,0) default '0' not null comment '???M?L???[?A??' |
|
| 1998 |
, EntryDate datetime not null comment '?o?^???t' |
|
| 1999 |
, UpdateDate datetime not null comment '?X?V???t' |
|
| 2000 |
, constraint notificationmessage_PKC primary key (MessageDate,SeqNo) |
|
| 2001 |
) comment '???m?????' ; |
|
| 2002 |
|
|
| 2003 |
-- ???m???{?????
|
|
| 2004 |
-- BackupToTempTable |
|
| 2005 |
drop table if exists notificationmessagebrowsing cascade; |
|
| 2006 |
|
|
| 2007 |
-- RestoreFromTempTable |
|
| 2008 |
create table notificationmessagebrowsing ( |
|
| 2009 |
MessageDate datetime not null comment '?\???N????' |
|
| 2010 |
, SeqNo decimal(4,0) unsigned not null comment '?A??' |
|
| 2011 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
|
| 2012 |
, BrowsingFlag decimal(1,0) unsigned default '0' not null comment '?{???t???O'
|
|
| 2013 |
, EntryDate datetime not null comment '?o?^???t' |
|
| 2014 |
, UpdateDate datetime not null comment '?X?V???t' |
|
| 2015 |
, constraint notificationmessagebrowsing_PKC primary key (MessageDate,SeqNo,CompanyCode) |
|
| 2016 |
) comment '???m???{?????' ;
|
|
| 2017 |
|
|
| 2018 |
create index NotificationMessageBrowsing_Index1 |
|
| 2019 |
on notificationmessagebrowsing(CompanyCode); |
|
| 2020 |
|
|
| 2021 |
-- ???m???????I????? |
|
| 2022 |
-- BackupToTempTable |
|
| 2023 |
drop table if exists notificationmessageselect cascade; |
|
| 2024 |
|
|
| 2025 |
-- RestoreFromTempTable |
|
| 2026 |
create table notificationmessageselect ( |
|
| 2027 |
MessageDate datetime not null comment '?\???N????' |
|
| 2028 |
, SeqNo decimal(4,0) unsigned not null comment '?A??' |
|
| 2029 |
, CompanyCode decimal(8,0) not null comment '??????R?[?h' |
|
| 2030 |
, EntryDate datetime not null comment '?o?^???t' |
|
| 2031 |
, UpdateDate datetime not null comment '?X?V???t' |
|
| 2032 |
, constraint notificationmessageselect_PKC primary key (MessageDate,SeqNo,CompanyCode) |
|
| 2033 |
) comment '???m???????I?????' ; |
|
| 2034 |
|
|
| 1723 | 2035 |
-- ??????}?X?^ |
| 1724 |
--* BackupToTempTable
|
|
| 2036 |
-- BackupToTempTable |
|
| 1725 | 2037 |
drop table if exists orderersmaster cascade; |
| 1726 | 2038 |
|
| 1727 |
--* RestoreFromTempTable
|
|
| 2039 |
-- RestoreFromTempTable |
|
| 1728 | 2040 |
create table orderersmaster ( |
| 1729 | 2041 |
OrderCotegory decimal(5,0) unsigned not null comment '???????' |
| 1730 | 2042 |
, OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h' |
| ... | ... | |
| 1744 | 2056 |
, FaxNumber varchar(13) comment 'FAX???' |
| 1745 | 2057 |
, MailAddress varchar(257) comment '???[???A?h???X' |
| 1746 | 2058 |
, Note varchar(300) comment '???l' |
| 2059 |
, PersonCode decimal(8,0) not null comment '?o?^?S????R?[?h' |
|
| 1747 | 2060 |
, DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1748 | 2061 |
, EntryDate datetime not null comment '?o?^???t' |
| 1749 | 2062 |
, UpdateDate datetime not null comment '?X?V???t' |
| ... | ... | |
| 1751 | 2064 |
) comment '??????}?X?^' ; |
| 1752 | 2065 |
|
| 1753 | 2066 |
-- ????z?f?[?^ |
| 1754 |
--* BackupToTempTable
|
|
| 2067 |
-- BackupToTempTable |
|
| 1755 | 2068 |
drop table if exists orderspricedata cascade; |
| 1756 | 2069 |
|
| 1757 |
--* RestoreFromTempTable
|
|
| 2070 |
-- RestoreFromTempTable |
|
| 1758 | 2071 |
create table orderspricedata ( |
| 1759 | 2072 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1760 | 2073 |
, ChangeNo decimal(3,0) unsigned not null comment '??X???' |
| ... | ... | |
| 1772 | 2085 |
) comment '????z?f?[?^' ; |
| 1773 | 2086 |
|
| 1774 | 2087 |
-- ?x?????F???f?[?^ |
| 1775 |
--* BackupToTempTable
|
|
| 2088 |
-- BackupToTempTable |
|
| 1776 | 2089 |
drop table if exists paymentapprovalinfo cascade; |
| 1777 | 2090 |
|
| 1778 |
--* RestoreFromTempTable
|
|
| 2091 |
-- RestoreFromTempTable |
|
| 1779 | 2092 |
create table paymentapprovalinfo ( |
| 1780 | 2093 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 1781 | 2094 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| ... | ... | |
| 1792 | 2105 |
) comment '?x?????F???f?[?^' ; |
| 1793 | 2106 |
|
| 1794 | 2107 |
-- ?x??????f?[?^ |
| 1795 |
--* BackupToTempTable
|
|
| 2108 |
-- BackupToTempTable |
|
| 1796 | 2109 |
drop table if exists paymentdatadetail cascade; |
| 1797 | 2110 |
|
| 1798 |
--* RestoreFromTempTable
|
|
| 2111 |
-- RestoreFromTempTable |
|
| 1799 | 2112 |
create table paymentdatadetail ( |
| 1800 | 2113 |
COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 1801 | 2114 |
, TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
| 1802 | 2115 |
, SEQNO decimal(3,0) default '0' not null comment '?A??' |
| 1803 | 2116 |
, LINECOUNT decimal(3,0) default '0' not null comment '?s???' |
| 2117 |
, LABOURKIND decimal(1,0) not null comment '?x???????E????' |
|
| 1804 | 2118 |
, BILLPRICE decimal(10,0) comment '???????z' |
| 1805 | 2119 |
, DISCOUNTPRICE decimal(10,0) comment '?l???????z' |
| 1806 | 2120 |
, OFFSETPRICE decimal(10,0) comment '???E???z' |
| ... | ... | |
| 1810 | 2124 |
, INDSWASTETAX decimal(10,0) comment '?Y?p??' |
| 1811 | 2125 |
, CNSTRPRICE decimal(10,0) comment '?????' |
| 1812 | 2126 |
, CNSTRPRICEEXIST decimal(1,0) comment '??????L??' |
| 1813 |
, APPROVALPERSONCODE decimal(8,0) comment '???F?S????R?[?h'
|
|
| 1814 |
, APPROVALDATE date comment '?S??????F???t'
|
|
| 2127 |
, APPROVALPERSONCODE decimal(8,0) comment '?\???S????R?[?h'
|
|
| 2128 |
, APPROVALDATE date comment '?S????\?????t'
|
|
| 1815 | 2129 |
, APPROVALENDFLG decimal(1,0) comment '???F?????t???O' |
| 1816 | 2130 |
, ENTRYDATE datetime comment '?o?^???t' |
| 1817 | 2131 |
, UPDATEDATE datetime comment '?X?V???t' |
| 1818 |
, constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT) |
|
| 2132 |
, constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,LABOURKIND)
|
|
| 1819 | 2133 |
) comment '?x??????f?[?^' ; |
| 1820 | 2134 |
|
| 1821 | 2135 |
create index PayDataDetail_Index1 |
| ... | ... | |
| 1825 | 2139 |
on paymentdatadetail(APPROVALPERSONCODE); |
| 1826 | 2140 |
|
| 1827 | 2141 |
-- ?H??????????f?[?^ |
| 1828 |
--* BackupToTempTable
|
|
| 2142 |
-- BackupToTempTable |
|
| 1829 | 2143 |
drop table if exists periodavoidance cascade; |
| 1830 | 2144 |
|
| 1831 |
--* RestoreFromTempTable
|
|
| 2145 |
-- RestoreFromTempTable |
|
| 1832 | 2146 |
create table periodavoidance ( |
| 1833 | 2147 |
ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1834 | 2148 |
, ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O' |
| ... | ... | |
| 1848 | 2162 |
on periodavoidance(FieldNo); |
| 1849 | 2163 |
|
| 1850 | 2164 |
-- ?S??????F?f?[?^ |
| 1851 |
--* BackupToTempTable
|
|
| 2165 |
-- BackupToTempTable |
|
| 1852 | 2166 |
drop table if exists personapproval cascade; |
| 1853 | 2167 |
|
| 1854 |
--* RestoreFromTempTable |
|
他の形式にエクスポート: Unified diff