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