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