プロジェクト

全般

プロフィール

統計
| リビジョン:

h-you / branches / ddl / ProcessManagement.sql @ 370

履歴 | 表示 | アノテート | ダウンロード (122 KB)

1 198 h-you
-- Project Name : noname
2 370 h-you
-- Date/Time    : 2018/08/06 8:37:19
3 198 h-you
-- Author       : Horiuchi
4
-- RDBMS Type   : MySQL
5
-- Application  : A5:SQL Mk-2
6 84 h-you
7 370 h-you
/*
8
  BackupToTempTable, RestoreFromTempTable?^????????t????????????B
9
  ???????Adrop table, create table ????f?[?^???c?????B
10
  ????@?\????I?? $$TableName ???????e?[?u????????????B
11
*/
12
13 271 h-you
-- ?S????s???\??f?[?^
14 370 h-you
--* BackupToTempTable
15 325 h-you
drop table if exists actionscheduledata cascade;
16 84 h-you
17 370 h-you
--* RestoreFromTempTable
18 198 h-you
create table actionscheduledata (
19 271 h-you
  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 198 h-you
  , constraint actionscheduledata_PKC primary key (TargetDate,PersonCode)
28 271 h-you
) comment '?S????s???\??f?[?^' ;
29 84 h-you
30 198 h-you
create index ActionScheduleData_Index1
31
  on actionscheduledata(TargetYear);
32 84 h-you
33 198 h-you
create index ActionScheduleData_Index2
34
  on actionscheduledata(TargetMonth);
35 84 h-you
36 198 h-you
create index ActionScheduleData_Index3
37
  on actionscheduledata(TargetDay);
38 84 h-you
39 271 h-you
-- ???F?o?H?}?X?^
40 370 h-you
--* BackupToTempTable
41 325 h-you
drop table if exists approvalmaster cascade;
42 84 h-you
43 370 h-you
--* RestoreFromTempTable
44 198 h-you
create table approvalmaster (
45 271 h-you
  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 198 h-you
  , constraint approvalmaster_PKC primary key (ApprovalCode,DepartmentCode,SeqNo)
54 271 h-you
) comment '???F?o?H?}?X?^' ;
55 84 h-you
56 271 h-you
-- ?o?????f?[?^
57 370 h-you
--* BackupToTempTable
58 325 h-you
drop table if exists attendancedailydata cascade;
59 84 h-you
60 370 h-you
--* RestoreFromTempTable
61 198 h-you
create table attendancedailydata (
62 271 h-you
  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 276 h-you
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
66 271 h-you
  , ActionResult varchar(30) not null comment '?s??????'
67
  , StartTime datetime comment '?J?n????'
68
  , CompTime datetime comment '?I??????'
69
  , DayTimes decimal(4,1) not null comment '????????v????'
70
  , WorkingComment varchar(120) comment '?R?????g'
71 357 h-you
  , WorkKindFlg decimal(1,0) not null comment '?????t???O'
72 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
73
  , UpdateDate datetime not null comment '?X?V???t'
74 198 h-you
  , constraint attendancedailydata_PKC primary key (PersonCode,AttendanceDate,SeqNo)
75 271 h-you
) comment '?o?????f?[?^' ;
76 84 h-you
77 277 h-you
create index AttendDaily_Index1
78
  on attendancedailydata(ConstructionCode);
79
80
create index AttendDaily_Index2
81
  on attendancedailydata(AttendanceDate);
82
83 271 h-you
-- ?o?????f?[?^
84 370 h-you
--* BackupToTempTable
85 325 h-you
drop table if exists attendancedata cascade;
86 84 h-you
87 370 h-you
--* RestoreFromTempTable
88 198 h-you
create table attendancedata (
89 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
90
  , AttendanceMonth date not null comment '?o?????N??'
91
  , LastDays decimal(2,0) unsigned not null comment '??????I??'
92
  , AttendDayCount decimal(2,0) unsigned not null comment '?o?????'
93
  , TotalOverTimes decimal(4,1) not null comment '?c??????'
94
  , OrderDate date not null comment '?\????'
95
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
96
  , EntryDate datetime not null comment '?o?^???t'
97
  , UpdateDate datetime not null comment '?X?V???t'
98 198 h-you
  , constraint attendancedata_PKC primary key (PersonCode,AttendanceMonth)
99 271 h-you
) comment '?o?????f?[?^' ;
100 84 h-you
101 271 h-you
-- ??s?c????}?X?^
102 370 h-you
--* BackupToTempTable
103 325 h-you
drop table if exists bankbusinessdaymaster cascade;
104 84 h-you
105 370 h-you
--* RestoreFromTempTable
106 198 h-you
create table bankbusinessdaymaster (
107 271 h-you
  YEARMONTH decimal(6,0) default '0' not null comment '?N??'
108
  , BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???'
109
  , NOTE varchar(120) comment '???l'
110
  , DELETEFLG decimal(1,0) comment '???t???O'
111
  , ENTRYDATE datetime comment '?o?^?N????'
112
  , UPDATEDATE datetime comment '?X?V?N????'
113 198 h-you
  , constraint bankbusinessdaymaster_PKC primary key (YEARMONTH,BANKBUSINESSDAY)
114 271 h-you
) comment '??s?c????}?X?^' ;
115 84 h-you
116 271 h-you
-- ???????f?[?^
117 370 h-you
--* BackupToTempTable
118 325 h-you
drop table if exists billingdata cascade;
119 84 h-you
120 370 h-you
--* RestoreFromTempTable
121 198 h-you
create table billingdata (
122 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
123
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
124
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
125
  , BILLPRICE decimal(10,0) comment '???????z'
126
  , ENTRYDATE datetime comment '?o?^?N????'
127
  , UPDATEDATE datetime comment '?X?V?N????'
128 198 h-you
  , constraint billingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO)
129 271 h-you
) comment '???????f?[?^' ;
130 198 h-you
131 271 h-you
-- ??????????f?[?^
132 370 h-you
--* BackupToTempTable
133 325 h-you
drop table if exists billingdatadetail cascade;
134 198 h-you
135 370 h-you
--* RestoreFromTempTable
136 198 h-you
create table billingdatadetail (
137 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
138
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
139
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
140
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
141
  , CONSTRUCTIONCODE decimal(10,0) comment '?H?????'
142
  , CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '?s???'
143
  , CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '????'
144
  , FIELDNAME varchar(120) comment '????'
145
  , BILLPRICE decimal(10,0) comment '???????z'
146
  , HIGHWPRICE decimal(10,0) comment '??????'
147
  , HARDWPRICE decimal(10,0) comment '??????'
148
  , INDSWASTETAX decimal(10,0) comment '?Y?p??'
149
  , NOTE varchar(120) comment '???l'
150
  , ENTRYDATE datetime comment '?o?^?N????'
151
  , UPDATEDATE datetime comment '?X?V?N????'
152 198 h-you
  , constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
153 271 h-you
) comment '??????????f?[?^' ;
154 198 h-you
155 271 h-you
-- ???????x???T?}???[?f?[?^
156 370 h-you
--* BackupToTempTable
157 325 h-you
drop table if exists billingpaymentsummary cascade;
158 198 h-you
159 370 h-you
--* RestoreFromTempTable
160 198 h-you
create table billingpaymentsummary (
161 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
162
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
163
  , CHARGEPAYMENTKIND decimal(1,0) default '0' not null comment '?????x????'
164
  , PAYDAY date comment '?x????'
165
  , BILLPRICESTOTAL decimal(10,0) comment '???????z???v'
166
  , CONSUMPTIONTAXRATE decimal(6,3) comment '??????'
167
  , CONSUMPTIONTAXPRICE decimal(10,0) comment '?????z'
168
  , HIGHWPRICESTOTAL decimal(10,0) comment '???????v'
169
  , HARDWPRICESTOTAL decimal(10,0) comment '???????v'
170
  , INDSWASTETAXSTOTAL decimal(10,0) comment '?Y?p????v'
171
  , CNSTRPRICERATE decimal(6,3) comment '???????'
172
  , CNSTRPRICESTOTAL decimal(10,0) comment '????????v'
173
  , BILLINGPRICETOTAL decimal(10,0) comment '???????z???v'
174
  , ENTRYDATE datetime comment '?o?^?N????'
175
  , UPDATEDATE datetime comment '?X?V?N????'
176 198 h-you
  , constraint billingpaymentsummary_PKC primary key (COMPANYCODE,TARGETDATE,CHARGEPAYMENTKIND)
177 271 h-you
) comment '???????x???T?}???[?f?[?^' ;
178 198 h-you
179 324 h-you
-- ?^?c?????????
180 370 h-you
--* BackupToTempTable
181 325 h-you
drop table if exists bizperiodhistory cascade;
182 324 h-you
183 370 h-you
--* RestoreFromTempTable
184 324 h-you
create table bizperiodhistory (
185
  PeriodYear smallint(6) not null comment '?c??????E?H???N?x'
186
  , PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O'
187
  , BeginDate datetime not null comment '?????'
188
  , CompleteDate datetime not null comment '??????'
189
  , EntryDate datetime not null comment '?o?^???t'
190
  , UpdateDate datetime not null comment '?X?V???t'
191
  , constraint bizperiodhistory_PKC primary key (PeriodYear,PeriodFlag)
192
) comment '?^?c?????????' ;
193
194 271 h-you
-- ?H???????f?[?^?y???p?z
195 370 h-you
--* BackupToTempTable
196 325 h-you
drop table if exists bk_constructionledger cascade;
197 84 h-you
198 370 h-you
--* RestoreFromTempTable
199 198 h-you
create table bk_constructionledger (
200 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
201
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
202
  , CreatorCode decimal(8,0) comment '????R?[?h'
203
  , CreatorName varchar(60) comment '?????'
204
  , CreateDate date not null comment '????'
205
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
206
  , ConstructionStart date not null comment '?_??H???J?n'
207
  , ConstructionEnd date not null comment '?_??H??????'
208
  , OrdersDecisionPrice decimal(14,0) not null comment '??????????z'
209
  , CompanyExpenses decimal(10,0) not null comment '???o???v'
210
  , DepartmentExpenses decimal(10,0) not null comment '?????o???v'
211
  , SalesExpenses decimal(10,0) not null comment '?c??o???v'
212
  , TotalPayment decimal(10,0) not null comment '???x???z'
213
  , GrossProfit decimal(10,0) not null comment '?e??'
214
  , Allowance decimal(10,0) not null comment '???^'
215
  , NetProfit decimal(10,0) not null comment '?????v'
216
  , ComplateFlg decimal(1,0) not null comment '????????t???O'
217
  , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O'
218
  , EntryDate datetime not null comment '?o?^???t'
219
  , UpdateDate datetime not null comment '?X?V???t'
220 198 h-you
  , constraint bk_constructionledger_PKC primary key (ConstructionCode)
221 271 h-you
) comment '?H???????f?[?^?y???p?z' ;
222 84 h-you
223 271 h-you
-- ?H??????????f?[?^?y???p?z
224 370 h-you
--* BackupToTempTable
225 325 h-you
drop table if exists bk_constructionledgerdetail cascade;
226 84 h-you
227 370 h-you
--* RestoreFromTempTable
228 198 h-you
create table bk_constructionledgerdetail (
229 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
230
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
231
  , LineCount decimal(5,0) unsigned not null comment '?s???'
232
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
233
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
234
  , FirstString varchar(120) comment '???????'
235
  , SecondString varchar(120) comment '?H?????e'
236
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
237
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
238
  , CompanyName varchar(120) comment '?????????'
239
  , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z'
240
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
241
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
242
  , PaymentBurden decimal(12,0) not null comment '?x????U?z'
243
  , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O'
244
  , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O'
245
  , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O'
246
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
247
  , SalaryDays decimal(4,0) not null comment '???^?U??????'
248
  , OperatingFlg decimal(1,0) not null comment '?S?????t???O'
249
  , SourceCode decimal(10,0) unsigned not null comment '???H?????'
250
  , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??'
251
  , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^'
252
  , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O'
253
  , EntryDate datetime not null comment '?o?^???t'
254
  , UpdateDate datetime not null comment '?X?V???t'
255 198 h-you
  , constraint bk_constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
256 271 h-you
) comment '?H??????????f?[?^?y???p?z' ;
257 84 h-you
258 271 h-you
-- ?H?????????s?f?[?^?y???p?z
259 370 h-you
--* BackupToTempTable
260 325 h-you
drop table if exists bk_constructionledgerexcute cascade;
261 84 h-you
262 370 h-you
--* RestoreFromTempTable
263 198 h-you
create table bk_constructionledgerexcute (
264 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
265
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
266
  , LineCount decimal(5,0) unsigned not null comment '?s???'
267
  , ColumnCount decimal(3,0) not null comment '????'
268
  , PaymentAmount decimal(12,0) not null comment '?x?????z'
269
  , TargetMonth date not null comment '???N??'
270
  , EntryDate datetime not null comment '?o?^???t'
271
  , UpdateDate datetime not null comment '?X?V???t'
272 198 h-you
  , constraint bk_constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount)
273 271 h-you
) comment '?H?????????s?f?[?^?y???p?z' ;
274 84 h-you
275 271 h-you
-- ??Z????f?[?^?y???p?z
276 370 h-you
--* BackupToTempTable
277 325 h-you
drop table if exists bk_estimatedata cascade;
278 84 h-you
279 370 h-you
--* RestoreFromTempTable
280 198 h-you
create table bk_estimatedata (
281 271 h-you
  SaveDate datetime not null comment '?????t'
282
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
283
  , LineCount decimal(3,0) unsigned not null comment '?s???'
284
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
285
  , FixedItemCode varchar(1) comment '?????L?['
286
  , ItemName varchar(120) comment '??????'
287
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
288
  , PriceValue decimal(14,0) not null comment '???z'
289
  , note varchar(60) comment '???l'
290
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
291
  , InputFlg decimal(1,0) not null comment '????t???O'
292
  , EntryDate datetime not null comment '?o?^???t'
293
  , UpdateDate datetime not null comment '?X?V???t'
294 198 h-you
  , constraint bk_estimatedata_PKC primary key (SaveDate,ConstructionCode,LineCount)
295 271 h-you
) comment '??Z????f?[?^?y???p?z' ;
296 84 h-you
297 271 h-you
-- ??Z????y?[?W?f?[?^?y???p?z
298 370 h-you
--* BackupToTempTable
299 325 h-you
drop table if exists bk_estimatedatabody cascade;
300 84 h-you
301 370 h-you
--* RestoreFromTempTable
302 198 h-you
create table bk_estimatedatabody (
303 271 h-you
  SaveDate datetime not null comment '?????t'
304
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
305
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
306
  , Category decimal(1,0) not null comment '?y?[?W??'
307
  , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?['
308
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
309
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
310
  , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?['
311
  , PageTitle varchar(120) not null comment '?y?[?W?\????'
312
  , DetailLineCount decimal(3,0) unsigned not null comment '????s???'
313
  , EntryDate datetime not null comment '?o?^???t'
314
  , UpdateDate datetime not null comment '?X?V???t'
315 198 h-you
  , constraint bk_estimatedatabody_PKC primary key (SaveDate,ConstructionCode,PageCount)
316 271 h-you
) comment '??Z????y?[?W?f?[?^?y???p?z' ;
317 84 h-you
318 271 h-you
-- ??Z????f?[?^????y???p?z
319 370 h-you
--* BackupToTempTable
320 325 h-you
drop table if exists bk_estimatedatadetail cascade;
321 84 h-you
322 370 h-you
--* RestoreFromTempTable
323 198 h-you
create table bk_estimatedatadetail (
324 271 h-you
  SaveDate datetime not null comment '?????t'
325
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
326
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
327
  , LineCount decimal(3,0) unsigned not null comment '?s???'
328
  , DataType decimal(1,0) not null comment '?f?[?^???'
329
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
330
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
331
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
332
  , ItemName varchar(120) comment '??????'
333
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
334
  , Unitcount decimal(8,2) not null comment '????'
335
  , UnitName varchar(30) comment '?P?????'
336
  , UnitPrice decimal(9,2) not null comment '?P??'
337
  , LineTotal decimal(12,0) not null comment '???z'
338
  , note varchar(60) comment '???l'
339
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
340
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
341
  , InputFlg decimal(1,0) comment '????t???O'
342
  , EntryDate datetime not null comment '?o?^???t'
343
  , UpdateDate datetime not null comment '?X?V???t'
344 198 h-you
  , constraint bk_estimatedatadetail_PKC primary key (SaveDate,ConstructionCode,PageCount,LineCount)
345 271 h-you
) comment '??Z????f?[?^????y???p?z' ;
346 84 h-you
347 353 h-you
-- ?\?Z???W?v?R?[?h?}?X?^
348 370 h-you
--* BackupToTempTable
349 353 h-you
drop table if exists budgetsumcode cascade;
350
351 370 h-you
--* RestoreFromTempTable
352 353 h-you
create table budgetsumcode (
353
  BlockCode decimal(2,0) unsigned not null comment '?u???b?N???'
354
  , GroupCode decimal(2,0) unsigned not null comment '?O???[?v???'
355
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
356
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
357
  , ElementsName varchar(100) not null comment '?v?f????'
358
  , EntryDate datetime not null comment '?o?^???t'
359
  , UpdateDate datetime not null comment '?X?V???t'
360
  , constraint budgetsumcode_PKC primary key (BlockCode,GroupCode,ComponentCode,ItemCode)
361
) comment '?\?Z???W?v?R?[?h?}?X?^' ;
362
363 271 h-you
-- ?@?l?i?}?X?^
364 370 h-you
--* BackupToTempTable
365 325 h-you
drop table if exists businesstypemaster cascade;
366 84 h-you
367 370 h-you
--* RestoreFromTempTable
368 198 h-you
create table businesstypemaster (
369 271 h-you
  BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h'
370
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
371
  , BusinessTypeName varchar(100) not null comment '???'
372
  , EntryDate datetime not null comment '?o?^???t'
373
  , UpdateDate datetime not null comment '?X?V???t'
374 198 h-you
  , constraint businesstypemaster_PKC primary key (BusinessTypeCode)
375 271 h-you
) comment '?@?l?i?}?X?^' ;
376 198 h-you
377
create index BusinessTypeMaster_Index1
378
  on businesstypemaster(DisplayOrder);
379
380 332 h-you
-- ?S????????????f?[?^
381 370 h-you
--* BackupToTempTable
382 332 h-you
drop table if exists chgchargedep cascade;
383
384 370 h-you
--* RestoreFromTempTable
385 332 h-you
create table chgchargedep (
386
  PersonCode decimal(8,0) not null comment '?S????R?[?h'
387
  , StartDate date not null comment '?J?n?N????'
388
  , CompDate date not null comment '?I???N????'
389
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
390
  , DepartmentName varchar(60) comment '??????'
391
  , EntryDate datetime not null comment '?o?^???t'
392
  , UpdateDate datetime not null comment '?X?V???t'
393
  , constraint chgchargedep_PKC primary key (PersonCode,StartDate)
394
) comment '?S????????????f?[?^' ;
395
396 353 h-you
-- ?H???S????X?????f?[?^
397 370 h-you
--* BackupToTempTable
398 353 h-you
drop table if exists chgconstrcharge cascade;
399
400 370 h-you
--* RestoreFromTempTable
401 353 h-you
create table chgconstrcharge (
402
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
403
  , Division decimal(1,0) not null comment '????'
404
  , SeqNo smallint(5) unsigned not null comment '?A??'
405
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
406
  , PersonCode decimal(8,0) not null comment '?S????R?[?h'
407
  , StartDate date comment '?S???J?n?N????'
408
  , CompDate date comment '?S???I???N????'
409 368 h-you
  , SourceCode decimal(10,0) unsigned not null comment '???H???R?[?h'
410
  , DeleteFlg decimal(1,0) not null comment '???t???O'
411 353 h-you
  , EntryDate datetime not null comment '?o?^???t'
412
  , UpdateDate datetime not null comment '?X?V???t'
413
  , constraint chgconstrcharge_PKC primary key (ConstructionCode,Division,SeqNo)
414
) comment '?H???S????X?????f?[?^' ;
415
416 271 h-you
-- ????????}?X?^
417 370 h-you
--* BackupToTempTable
418 325 h-you
drop table if exists commoncostlarge cascade;
419 84 h-you
420 370 h-you
--* RestoreFromTempTable
421 198 h-you
create table commoncostlarge (
422 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
423
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
424
  , LargeName varchar(50) not null comment '???????'
425
  , CommentText varchar(120) comment '????????'
426
  , DeleteFlg decimal(1,0) not null comment '???t???O'
427
  , EntryDate datetime not null comment '?o?^???t'
428
  , UpdateDate datetime not null comment '?X?V???t'
429 198 h-you
  , constraint commoncostlarge_PKC primary key (LargeCode)
430 271 h-you
) comment '????????}?X?^' ;
431 84 h-you
432 271 h-you
-- ?????H???A?}?X?^
433 370 h-you
--* BackupToTempTable
434 325 h-you
drop table if exists commoncostlinkms cascade;
435 84 h-you
436 370 h-you
--* RestoreFromTempTable
437 198 h-you
create table commoncostlinkms (
438 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
439
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
440
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
441
  , EntryDate datetime comment '?o?^???t'
442
  , UpdateDate datetime comment '?X?V???t'
443 198 h-you
  , constraint commoncostlinkms_PKC primary key (LargeCode,MiddleCode,ItemCode)
444 271 h-you
) comment '?????H???A?}?X?^' ;
445 84 h-you
446 271 h-you
-- ?????????}?X?^
447 370 h-you
--* BackupToTempTable
448 325 h-you
drop table if exists commoncostmiddle cascade;
449 84 h-you
450 370 h-you
--* RestoreFromTempTable
451 198 h-you
create table commoncostmiddle (
452 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
453
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
454
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
455
  , MiddleName varchar(50) not null comment '?????????'
456
  , CommentText varchar(120) comment '????????'
457
  , DeleteFlg decimal(1,0) not null comment '???t???O'
458
  , EntryDate datetime not null comment '?o?^???t'
459
  , UpdateDate datetime not null comment '?X?V???t'
460 198 h-you
  , constraint commoncostmiddle_PKC primary key (LargeCode,MiddleCode)
461 271 h-you
) comment '?????????}?X?^' ;
462 84 h-you
463 271 h-you
-- ?????????L?[?}?X?^
464 370 h-you
--* BackupToTempTable
465 325 h-you
drop table if exists commoncostmiddlesearchword cascade;
466 84 h-you
467 370 h-you
--* RestoreFromTempTable
468 198 h-you
create table commoncostmiddlesearchword (
469 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
470
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
471
  , SeqNo decimal(5,0) unsigned not null comment '????'
472
  , SearchWord varchar(50) not null comment '????????'
473
  , EntryDate datetime not null comment '?o?^???t'
474
  , UpdateDate datetime not null comment '?X?V???t'
475 198 h-you
  , constraint commoncostmiddlesearchword_PKC primary key (LargeCode,MiddleCode,SeqNo)
476 271 h-you
) comment '?????????L?[?}?X?^' ;
477 84 h-you
478 271 h-you
-- ?\???H???A?}?X?^
479 370 h-you
--* BackupToTempTable
480 325 h-you
drop table if exists componentlinkmaster cascade;
481 84 h-you
482 370 h-you
--* RestoreFromTempTable
483 198 h-you
create table componentlinkmaster (
484 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
485
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
486
  , DisplayOrder decimal(5,0) unsigned comment '?\????'
487
  , EntryDate datetime not null comment '?o?^???t'
488
  , UpdateDate datetime not null comment '?X?V???t'
489 198 h-you
  , constraint componentlinkmaster_PKC primary key (ComponentCode,ItemCode)
490 271 h-you
) comment '?\???H???A?}?X?^' ;
491 84 h-you
492 198 h-you
create index ComponentLinkMaster_Index1
493
  on componentlinkmaster(ComponentCode);
494 84 h-you
495 198 h-you
create index ComponentLinkMaster_Index2
496
  on componentlinkmaster(ItemCode);
497 84 h-you
498 271 h-you
-- ?\???}?X?^
499 370 h-you
--* BackupToTempTable
500 325 h-you
drop table if exists componentmaster cascade;
501 84 h-you
502 370 h-you
--* RestoreFromTempTable
503 198 h-you
create table componentmaster (
504 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
505
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
506
  , ComponentName varchar(120) not null comment '?\??????'
507
  , SubItemsFlg decimal(1,0) comment '???????t???O'
508
  , DirectInputFlg decimal(1,0) comment '???????t???O'
509
  , MyExpensesFlg decimal(1,0) comment '????o??t???O'
510
  , DeleteFlg decimal(1,0) not null comment '???t???O'
511
  , EntryDate datetime not null comment '?o?^???t'
512
  , UpdateDate datetime not null comment '?X?V???t'
513 198 h-you
  , constraint componentmaster_PKC primary key (ComponentCode)
514 271 h-you
) comment '?\???}?X?^' ;
515 84 h-you
516 198 h-you
create index ComponentMaster_Index1
517
  on componentmaster(DisplayOrder);
518 84 h-you
519 271 h-you
-- ?\???H??????A?}?X?^
520 370 h-you
--* BackupToTempTable
521 325 h-you
drop table if exists componenttotypemaster cascade;
522 84 h-you
523 370 h-you
--* RestoreFromTempTable
524 198 h-you
create table componenttotypemaster (
525 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
526
  , TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
527
  , Dummy decimal(1,0) not null comment '?_?~?[????'
528
  , EntryDate datetime not null comment '?o?^???t'
529
  , UpdateDate datetime not null comment '?X?V???t'
530 198 h-you
  , constraint componenttotypemaster_PKC primary key (ComponentCode,TypeCode)
531 271 h-you
) comment '?\???H??????A?}?X?^' ;
532 84 h-you
533 198 h-you
create index ComponentToTypeMaster_Index1
534
  on componenttotypemaster(ComponentCode);
535 84 h-you
536 198 h-you
create index ComponentToTypeMaster_Index2
537
  on componenttotypemaster(TypeCode);
538 84 h-you
539 342 h-you
-- ?H???????o??f?[?^
540 370 h-you
--* BackupToTempTable
541 342 h-you
drop table if exists constrledgerexpenses cascade;
542
543 370 h-you
--* RestoreFromTempTable
544 342 h-you
create table constrledgerexpenses (
545
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
546
  , SeqNo decimal(5,0) not null comment '?}??'
547
  , NameCode decimal(5,0) unsigned not null comment '?o??R?[?h'
548
  , ExpensesRaito decimal(4,2) not null comment '?o??'
549
  , ExpensesValue decimal(10,0) not null comment '?o????z'
550
  , EntryDate datetime not null comment '?o?^???t'
551
  , UpdateDate datetime not null comment '?X?V???t'
552
  , constraint constrledgerexpenses_PKC primary key (ConstructionCode,SeqNo,NameCode)
553
) comment '?H???????o??f?[?^' ;
554
555
create index ConstrLedgerExpenses_Index1
556
  on constrledgerexpenses(ConstructionCode);
557
558
create index ConstrLedgerExpenses_Index2
559
  on constrledgerexpenses(SeqNo);
560
561
create index ConstrLedgerExpenses_Index3
562
  on constrledgerexpenses(NameCode);
563
564 271 h-you
-- ?H????{???
565 370 h-you
--* BackupToTempTable
566 325 h-you
drop table if exists constructionbaseinfo cascade;
567 84 h-you
568 370 h-you
--* RestoreFromTempTable
569 198 h-you
create table constructionbaseinfo (
570 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
571
  , TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O'
572
  , JoinFlg decimal(1,0) not null comment '?????_??H???t???O'
573
  , ConstructionYear smallint(5) unsigned not null comment '?H???N?x'
574
  , ConstructionPeriod smallint(5) unsigned not null comment '?H??????'
575
  , RequestedDate date comment '??????'
576
  , EstimatesSubmitDeadline date comment '?????o????'
577
  , EstimatesSubmittedDate date comment '?????o??'
578
  , ProvisionalOrderDate date comment '?????'
579
  , OrderDate date comment '???'
580
  , OrderStartingDate date comment '?J?n?\???'
581
  , OrderCompletionDate date comment '?????\???'
582
  , PreparationStartDate date comment '?{?H?????J?n??'
583
  , ConstructionStartingDate date comment '?{?H?J?n??'
584
  , ConstructionCompletionDate date comment '?{?H??????'
585
  , NonOrderDate date comment '????'
586
  , OrdersDecisionPrice decimal(12,0) not null comment '??????????z'
587
  , OrdersDecisionPriceInTax decimal(12,0) not null comment '??????????z'
588 332 h-you
  , SalesDepCode decimal(5,0) unsigned not null comment '?c??S????????R?[?h'
589
  , SalesPersonCode decimal(8,0) unsigned not null comment '?c??S????R?[?h'
590 338 h-you
  , SalesSubDepCode decimal(5,0) unsigned not null comment '?c????S????????R?[?h'
591
  , SalesSubPersonCode decimal(8,0) unsigned not null comment '?c????S????R?[?h'
592 332 h-you
  , ConstrDepCode decimal(5,0) unsigned not null comment '?H???S????????R?[?h'
593
  , ConstructionPersonCode decimal(8,0) not null comment '?H???S????R?[?h'
594
  , ConstrSubDepCode decimal(5,0) unsigned not null comment '?H?????S????????R?[?h'
595
  , ConstrSubPersonCode decimal(8,0) not null comment '?H?????S????R?[?h'
596
  , ConstrInstrDepCode decimal(5,0) unsigned not null comment '?H???w?????????R?[?h'
597
  , ConstructionInstructor decimal(8,0) not null comment '?H???w?????R?[?h'
598 271 h-you
  , TransferConstruction decimal(8,0) not null comment '?H??????R?[?h'
599
  , TransferConstructionDate date comment '?H??????'
600 332 h-you
  , OrderersDivision decimal(5,0) not null comment '????????R?[?h'
601 271 h-you
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
602
  , EstimatesExpirationDate date comment '????L??????'
603
  , ConstructionPeriodStart date comment '?_??H???J?n??'
604
  , ConstructionPeriodEnd date comment '?_??H??????'
605
  , ConstructionPeriodStart2 date comment '?_??H???J?n?i???????j'
606
  , ConstructionPeriodEnd2 date comment '?_??H???????i???????j'
607
  , StartDate date comment '?H???J?n??'
608
  , EndDate date comment '?H???I????'
609
  , PurchaseOrderMailingDate date comment '???????X????'
610
  , PurchaseOrderReturnDate date comment '???????????'
611
  , PurchaseOrderReturnCheckDate date comment '??????????m?F??'
612
  , ConsumptionTaxFlg decimal(1,0) not null comment '?????t???O'
613
  , PrimeContractorFlg decimal(1,0) not null comment '?????t???O'
614
  , SalesCostFlg decimal(1,0) not null comment '?c??o?????t???O'
615
  , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
616
  , ConstructionType decimal(5,0) not null comment '?H?????R?[?h'
617
  , EstimateType decimal(1,0) not null comment '??????'
618
  , BillingStartDate date not null comment '?????????J?n??'
619
  , BillingDate date not null comment '??????'
620
  , BillingSplitFlg decimal(1,0) not null comment '??????t???O'
621
  , BillingSendDate date comment '???????X??/??n????'
622
  , LedgerComplateDate date not null comment '?H????????????????t'
623 322 h-you
  , InspectPlanningDate date not null comment '?????\???'
624
  , InspectExecuteDate date not null comment '???????s??'
625
  , RevCompleteDate date not null comment '??????????????'
626 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
627
  , UpdateDate datetime not null comment '?X?V???t'
628 198 h-you
  , constraint constructionbaseinfo_PKC primary key (ConstructionCode)
629 271 h-you
) comment '?H????{???' ;
630 84 h-you
631 198 h-you
create index BaseInfo_Index1
632
  on constructionbaseinfo(ConstructionStatusFlg);
633 84 h-you
634 198 h-you
create index BaseInfo_Index2
635
  on constructionbaseinfo(EstimateType);
636 84 h-you
637 198 h-you
create index BaseInfo_Index3
638
  on constructionbaseinfo(SalesPersonCode);
639 84 h-you
640 198 h-you
create index BaseInfo_Index4
641
  on constructionbaseinfo(ConstructionPersonCode);
642 84 h-you
643 198 h-you
create index BaseInfo_Index5
644
  on constructionbaseinfo(ConstructionInstructor);
645 84 h-you
646 198 h-you
create index BaseInfo_Index6
647
  on constructionbaseinfo(ConstructionPeriod);
648 84 h-you
649 271 h-you
-- ?H????{????
650 370 h-you
--* BackupToTempTable
651 325 h-you
drop table if exists constructionbaseinfodetail cascade;
652 84 h-you
653 370 h-you
--* RestoreFromTempTable
654 198 h-you
create table constructionbaseinfodetail (
655 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
656 332 h-you
  , DetailNo decimal(3,0) not null comment '??????'
657 322 h-you
  , DetailString varchar(300) comment '??????e'
658 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
659
  , UpdateDate datetime not null comment '?X?V???t'
660 198 h-you
  , constraint constructionbaseinfodetail_PKC primary key (ConstructionCode,DetailNo)
661 271 h-you
) comment '?H????{????' ;
662 84 h-you
663 198 h-you
create index BaseInfoDetail_Idx1
664
  on constructionbaseinfodetail(ConstructionCode);
665 84 h-you
666 198 h-you
create index BaseInfoDetail_Idx2
667
  on constructionbaseinfodetail(DetailNo);
668 84 h-you
669 271 h-you
-- ?H???{?H?\?Z?f?[?^
670 370 h-you
--* BackupToTempTable
671 325 h-you
drop table if exists constructionbudget cascade;
672 84 h-you
673 370 h-you
--* RestoreFromTempTable
674 198 h-you
create table constructionbudget (
675 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
676
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
677
  , CreatorName varchar(60) comment '?????'
678
  , CreatorCosts decimal(11,0) not null comment '??????^'
679
  , AssistantCode decimal(8,0) not null comment '???S????R?[?h'
680
  , AssistantName varchar(60) comment '???S?????'
681
  , AssistantCosts decimal(11,0) not null comment '???S??????^'
682
  , InstructorCode decimal(8,0) not null comment '?H???w?????R?[?h'
683
  , InstructorName varchar(60) comment '?H???w??????'
684
  , InstructorCosts decimal(11,0) not null comment '?H???w???????^'
685
  , CreateDate date not null comment '????'
686
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
687
  , ConstructionStart date not null comment '?_??H???J?n'
688
  , ConstructionEnd date not null comment '?_??H??????'
689
  , InstructorTimes decimal(5,2) not null comment '?w???????????'
690
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
691
  , SalaryDays decimal(4,0) not null comment '?U??????'
692
  , A_SalaryFlg decimal(1,0) not null comment '???S??????^?U????'
693
  , A_SalaryDays decimal(4,0) not null comment '???S????U??????'
694
  , I_SalaryFlg decimal(1,0) not null comment '?w???????^?U????'
695
  , I_SalaryDays decimal(4,0) not null comment '?w?????U??????'
696
  , OrdersDecisionPrice decimal(12,0) not null comment '??????????z'
697
  , EntryDate datetime not null comment '?o?^???t'
698
  , UpdateDate datetime not null comment '?X?V???t'
699 198 h-you
  , constraint constructionbudget_PKC primary key (ConstructionCode)
700 271 h-you
) comment '?H???{?H?\?Z?f?[?^' ;
701 84 h-you
702 271 h-you
-- ?H???{?H?\?Z?f?[?^????
703 370 h-you
--* BackupToTempTable
704 325 h-you
drop table if exists constructionbudgetdetail cascade;
705 84 h-you
706 370 h-you
--* RestoreFromTempTable
707 198 h-you
create table constructionbudgetdetail (
708 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
709
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
710
  , LineCount decimal(3,0) unsigned not null comment '?s???'
711
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
712
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
713
  , FirstString varchar(120) comment '???????'
714
  , SecondString varchar(120) comment '?H?????e'
715
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
716
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
717
  , CompanyName varchar(120) comment '?????????'
718
  , EstimatePrice decimal(12,0) not null comment '??Z????????z'
719
  , NegotiationPrice decimal(12,0) not null comment '??Z????????z'
720
  , OrderDesiredAmount decimal(12,0) not null comment '??????]???z'
721
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
722
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
723
  , NegotiateFlg decimal(1,0) not null comment '?????????t???O'
724
  , EntryDate datetime not null comment '?o?^???t'
725
  , UpdateDate datetime not null comment '?X?V???t'
726 198 h-you
  , constraint constructionbudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
727 271 h-you
) comment '?H???{?H?\?Z?f?[?^????' ;
728 84 h-you
729 271 h-you
-- ?H??}?X?^
730 370 h-you
--* BackupToTempTable
731 325 h-you
drop table if exists constructionitemmaster cascade;
732 84 h-you
733 370 h-you
--* RestoreFromTempTable
734 198 h-you
create table constructionitemmaster (
735 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
736
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
737
  , ItemName varchar(120) not null comment '?H????'
738
  , SubItemsFlg decimal(1,0) comment '???????t???O'
739
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
740
  , DeleteFlg decimal(1,0) not null comment '???t???O'
741
  , EntryDate datetime not null comment '?o?^???t'
742
  , UpdateDate datetime not null comment '?X?V???t'
743 198 h-you
  , constraint constructionitemmaster_PKC primary key (ItemCode)
744 271 h-you
) comment '?H??}?X?^' ;
745 84 h-you
746 271 h-you
-- ?H???????f?[?^
747 370 h-you
--* BackupToTempTable
748 325 h-you
drop table if exists constructionledger cascade;
749 84 h-you
750 370 h-you
--* RestoreFromTempTable
751 198 h-you
create table constructionledger (
752 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
753
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
754
  , CreatorCode decimal(8,0) comment '????R?[?h'
755
  , CreatorName varchar(60) comment '?????'
756
  , CreateDate date not null comment '????'
757
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
758
  , ConstructionStart date not null comment '?_??H???J?n'
759
  , ConstructionEnd date not null comment '?_??H??????'
760
  , OrdersDecisionPrice decimal(14,0) not null comment '??????????z'
761
  , CompanyExpenses decimal(10,0) not null comment '???o???v'
762
  , DepartmentExpenses decimal(10,0) not null comment '?????o???v'
763
  , SalesExpenses decimal(10,0) not null comment '?c??o???v'
764
  , TotalPayment decimal(10,0) not null comment '???x???z'
765
  , GrossProfit decimal(10,0) not null comment '?e??'
766
  , Allowance decimal(10,0) not null comment '???^'
767
  , NetProfit decimal(10,0) not null comment '?????v'
768
  , ComplateFlg decimal(1,0) not null comment '????????t???O'
769
  , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O'
770
  , EntryDate datetime not null comment '?o?^???t'
771
  , UpdateDate datetime not null comment '?X?V???t'
772 198 h-you
  , constraint constructionledger_PKC primary key (ConstructionCode)
773 271 h-you
) comment '?H???????f?[?^' ;
774 84 h-you
775 338 h-you
create index constructionledger_Index1
776
  on constructionledger(ConstructionStart);
777
778
create index constructionledger_Index2
779
  on constructionledger(ConstructionEnd);
780
781 271 h-you
-- ?H??????????f?[?^
782 370 h-you
--* BackupToTempTable
783 325 h-you
drop table if exists constructionledgerdetail cascade;
784 84 h-you
785 370 h-you
--* RestoreFromTempTable
786 198 h-you
create table constructionledgerdetail (
787 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
788
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
789 302 h-you
  , LineCount decimal(4,0) unsigned not null comment '?s???'
790 271 h-you
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
791
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
792
  , FirstString varchar(120) comment '???????'
793
  , SecondString varchar(120) comment '?H?????e'
794
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
795
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
796
  , CompanyName varchar(120) comment '?????????'
797
  , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z'
798
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
799
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
800
  , PaymentBurden decimal(12,0) not null comment '?x????U?z'
801
  , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O'
802
  , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O'
803
  , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O'
804
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
805
  , SalaryDays decimal(4,0) not null comment '???^?U??????'
806
  , OperatingFlg decimal(1,0) not null comment '?S?????t???O'
807
  , SourceCode decimal(10,0) unsigned not null comment '???H?????'
808
  , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??'
809
  , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^'
810
  , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O'
811 302 h-you
  , DetailCount decimal(4,0) unsigned not null comment '??????'
812 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
813
  , UpdateDate datetime not null comment '?X?V???t'
814 198 h-you
  , constraint constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
815 271 h-you
) comment '?H??????????f?[?^' ;
816 84 h-you
817 198 h-you
create index LedgerDetail_Index01
818
  on constructionledgerdetail(ConstructionCode);
819 84 h-you
820 198 h-you
create index LedgerDetail_Index02
821
  on constructionledgerdetail(GroupCount);
822 84 h-you
823 198 h-you
create index LedgerDetail_Index03
824 302 h-you
  on constructionledgerdetail(LineCount);
825
826
create index LedgerDetail_Index04
827 198 h-you
  on constructionledgerdetail(SourceCode);
828 84 h-you
829 302 h-you
create index LedgerDetail_Index05
830
  on constructionledgerdetail(DetailCount);
831
832 338 h-you
create index LedgerDetail_Index06
833
  on constructionledgerdetail(SalaryFlg);
834
835
create index LedgerDetail_Index07
836
  on constructionledgerdetail(CompanyCode);
837
838 271 h-you
-- ?H?????????s?f?[?^
839 370 h-you
--* BackupToTempTable
840 325 h-you
drop table if exists constructionledgerexcute cascade;
841 84 h-you
842 370 h-you
--* RestoreFromTempTable
843 198 h-you
create table constructionledgerexcute (
844 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
845
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
846 302 h-you
  , LineCount decimal(4,0) unsigned not null comment '?s???'
847 271 h-you
  , ColumnCount decimal(3,0) not null comment '????'
848
  , PaymentAmount decimal(12,0) not null comment '?x?????z'
849
  , TargetMonth date not null comment '???N??'
850
  , EntryDate datetime not null comment '?o?^???t'
851
  , UpdateDate datetime not null comment '?X?V???t'
852 198 h-you
  , constraint constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount)
853 271 h-you
) comment '?H?????????s?f?[?^' ;
854 84 h-you
855 198 h-you
create index LedgerExcute_Index1
856
  on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
857 84 h-you
858 271 h-you
-- ?H???????N???
859 370 h-you
--* BackupToTempTable
860 325 h-you
drop table if exists constructionlink cascade;
861 84 h-you
862 370 h-you
--* RestoreFromTempTable
863 198 h-you
create table constructionlink (
864 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
865
  , FluctuationCode decimal(10,0) not null comment '?q?H?????'
866
  , LinkType decimal(1,0) not null comment '?????N???'
867
  , EntryDate datetime not null comment '?o?^???t'
868
  , UpdateDate datetime not null comment '?X?V???t'
869 198 h-you
  , constraint constructionlink_PKC primary key (ConstructionCode,FluctuationCode)
870 271 h-you
) comment '?H???????N???' ;
871 101 h-you
872 198 h-you
create index ConstructionLink_Index1
873
  on constructionlink(ConstructionCode);
874 101 h-you
875 198 h-you
create index ConstructionLink_Index2
876
  on constructionlink(FluctuationCode);
877 84 h-you
878 198 h-you
create index ConstructionLink_Index3
879
  on constructionlink(LinkType);
880 84 h-you
881 271 h-you
-- ?H????????
882 370 h-you
--* BackupToTempTable
883 325 h-you
drop table if exists constructionmaterialinfo cascade;
884 84 h-you
885 370 h-you
--* RestoreFromTempTable
886 198 h-you
create table constructionmaterialinfo (
887 271 h-you
  CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????'
888
  , MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
889 277 h-you
  , PROCESSDATE datetime default '0000-00-00 00:00:00' not null comment '?????N????'
890 271 h-you
  , RENTCOUNT smallint(5) unsigned comment '??o??'
891
  , REPAYCOUNT smallint(5) unsigned comment '??p??'
892 277 h-you
  , JUNKCOUNT smallint(5) unsigned comment '?j????'
893 271 h-you
  , COMPLETEFLG tinyint(3) unsigned comment '?????t???O'
894
  , ENTRYDATE datetime comment '?o?^???t'
895
  , UPDATEDATE datetime comment '?X?V???t'
896 277 h-you
  , constraint constructionmaterialinfo_PKC primary key (CONSTRUCTIONCODE,MATERIALITEMCODE,PROCESSDATE)
897 271 h-you
) comment '?H????????' ;
898 84 h-you
899 271 h-you
-- ????i?????t?f?[?^
900 370 h-you
--* BackupToTempTable
901 325 h-you
drop table if exists constructionprogressdate cascade;
902 84 h-you
903 370 h-you
--* RestoreFromTempTable
904 198 h-you
create table constructionprogressdate (
905 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H?????'
906
  , ConstructionStatusFlg decimal(2,0) not null comment '???H?????'
907
  , PreviousStatusFlg decimal(2,0) comment '??X?O???'
908
  , ChangeDate datetime not null comment '?????t'
909
  , ChangePersonCode decimal(8,0) not null comment '???S????'
910
  , EntryDate datetime not null comment '?o?^???t'
911
  , UpdateDate datetime not null comment '?X?V???t'
912 342 h-you
  , constraint constructionprogressdate_PKC primary key (ConstructionCode,ChangeDate)
913 271 h-you
) comment '????i?????t?f?[?^' ;
914 84 h-you
915 342 h-you
create index ConstrProg_Index1
916
  on constructionprogressdate(ConstructionCode);
917
918
create index ConstrProg_Index2
919
  on constructionprogressdate(ConstructionStatusFlg);
920
921
create index ConstrProg_Index3
922
  on constructionprogressdate(ChangeDate);
923
924 271 h-you
-- ???}?X?^
925 370 h-you
--* BackupToTempTable
926 325 h-you
drop table if exists constructionspecmaster cascade;
927 84 h-you
928 370 h-you
--* RestoreFromTempTable
929 198 h-you
create table constructionspecmaster (
930 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
931
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
932
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
933
  , ItemName varchar(120) comment '??????'
934
  , SpecName varchar(120) comment '??????'
935
  , UnitName varchar(30) comment '?P?????'
936
  , UnitPrice decimal(9,2) not null comment '?P??'
937
  , DeleteFlg decimal(1,0) not null comment '???t???O'
938
  , EntryDate datetime not null comment '?o?^???t'
939
  , UpdateDate datetime not null comment '?X?V???t'
940 198 h-you
  , constraint constructionspecmaster_PKC primary key (ItemCode,SpecCode)
941 271 h-you
) comment '???}?X?^' ;
942 84 h-you
943 198 h-you
create index ConstructionSpecMaster_Index1
944
  on constructionspecmaster(DisplayOrder);
945 84 h-you
946 271 h-you
-- ???P???}?X?^
947 370 h-you
--* BackupToTempTable
948 325 h-you
drop table if exists constructionspecunitprice cascade;
949 84 h-you
950 370 h-you
--* RestoreFromTempTable
951 198 h-you
create table constructionspecunitprice (
952 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
953
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
954
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
955
  , ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
956
  , UnitPrice decimal(9,2) not null comment '?P??'
957
  , EntryDate datetime not null comment '?o?^???t'
958
  , UpdateDate datetime not null comment '?X?V???t'
959 198 h-you
  , constraint constructionspecunitprice_PKC primary key (ComponentCode,ItemCode,SpecCode,ConstructionTypeCode)
960 271 h-you
) comment '???P???}?X?^' ;
961 84 h-you
962 271 h-you
-- ?H?????}?X?^
963 370 h-you
--* BackupToTempTable
964 325 h-you
drop table if exists constructiontypemaster cascade;
965 84 h-you
966 370 h-you
--* RestoreFromTempTable
967 198 h-you
create table constructiontypemaster (
968 271 h-you
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
969
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
970
  , NameString varchar(100) not null comment '????'
971 353 h-you
  , PublicFlg decimal(1,0) not null comment '?????t???O'
972
  , RepairFlg decimal(1,0) not null comment '?V?z?E???C?t???O'
973 271 h-you
  , SecRank decimal(1,0) not null comment '?????????N'
974
  , ExpensesLink decimal(1,0) not null comment '?o??g?p??'
975
  , DeleteFlg decimal(1,0) not null comment '???t???O'
976
  , EntryDate datetime not null comment '?o?^???t'
977
  , UpdateDate datetime not null comment '?X?V???t'
978 198 h-you
  , constraint constructiontypemaster_PKC primary key (TypeCode)
979 271 h-you
) comment '?H?????}?X?^' ;
980 84 h-you
981 357 h-you
-- ?????o?[?f?[?^
982 370 h-you
--* BackupToTempTable
983 357 h-you
drop table if exists costdataofdepartment cascade;
984
985 370 h-you
--* RestoreFromTempTable
986 357 h-you
create table costdataofdepartment (
987
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
988
  , ConstrYear smallint(5) unsigned not null comment '?H???????E?N??'
989
  , SeqNo decimal(5,0) unsigned not null comment '?f?[?^???'
990
  , CostDate date not null comment '?????t'
991
  , DepartmentName varchar(100) not null comment '??????'
992
  , SuppliersCode decimal(8,0) unsigned not null comment '?o?[??R?[?h'
993
  , SuppliersName varchar(120) comment '?o?[??'
994
  , PaymentContent varchar(100) comment '?o?[???e'
995
  , SendReceiveFlg decimal(1,0) not null comment '?o?[?t???O'
996
  , EntryPrice decimal(12,0) not null comment '???z?i????j'
997
  , EntryTax decimal(12,0) not null comment '???z?i????j'
998
  , Coment varchar(100) comment '???l'
999
  , EntryDate datetime not null comment '?o?^???t'
1000
  , UpdateDate datetime not null comment '?X?V???t'
1001
  , constraint costdataofdepartment_PKC primary key (DepartmentCode,ConstrYear,SeqNo)
1002
) comment '?????o?[?f?[?^' ;
1003
1004 271 h-you
-- ?S??????o??f?[?^
1005 370 h-you
--* BackupToTempTable
1006 325 h-you
drop table if exists costdataofperson cascade;
1007 84 h-you
1008 370 h-you
--* RestoreFromTempTable
1009 198 h-you
create table costdataofperson (
1010 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1011
  , ActionDate date not null comment '?????t'
1012
  , DataType decimal(1,0) not null comment '?f?[?^??'
1013
  , DataAddCount decimal(5,0) unsigned not null comment '?f?[?^??????'
1014
  , TargetMonth varchar(7) not null comment '???N??'
1015
  , ConstructionCode decimal(10,0) unsigned comment '?H???R?[?h'
1016
  , SuppliersCode decimal(5,0) unsigned not null comment '?x????R?[?h'
1017
  , SuppliersName varchar(120) comment '?x??????'
1018
  , PaymentContent varchar(60) comment '?x?????e'
1019
  , PaymentType decimal(1,0) not null comment '?x?????@?t???O'
1020
  , EntryPrice decimal(12,0) not null comment '???z?i????j'
1021
  , EntryPriceInTax decimal(12,0) not null comment '???z?i????j'
1022
  , SlipNumber varchar(12) comment '?`?[???'
1023
  , ComplateFlg decimal(1,0) not null comment '???????t???O'
1024
  , ApprovalFlg decimal(1,0) not null comment '???F?t???O'
1025
  , EntryDate datetime not null comment '?o?^???t'
1026
  , UpdateDate datetime not null comment '?X?V???t'
1027 198 h-you
  , constraint costdataofperson_PKC primary key (PersonCode,ActionDate,DataType,DataAddCount)
1028 271 h-you
) comment '?S??????o??f?[?^' ;
1029 84 h-you
1030 198 h-you
create index CostDataOfPerson_Index1
1031
  on costdataofperson(TargetMonth);
1032 84 h-you
1033 198 h-you
create index CostDataOfPerson_Index2
1034
  on costdataofperson(ConstructionCode);
1035 84 h-you
1036 271 h-you
-- ??????o?^?\???f?[?^
1037 370 h-you
--* BackupToTempTable
1038 325 h-you
drop table if exists costomerregist cascade;
1039 84 h-you
1040 370 h-you
--* RestoreFromTempTable
1041 198 h-you
create table costomerregist (
1042 332 h-you
  CreatePersonCode decimal(8,0) unsigned not null comment '?\??????'
1043 271 h-you
  , CreateDate date not null comment '????'
1044
  , SeqNo decimal(2,0) not null comment '?L?[?A??'
1045
  , DataMode decimal(1,0) not null comment '?f?[?^??'
1046
  , SourceCotegory decimal(5,0) unsigned not null comment '???????'
1047
  , SourceCode decimal(5,0) unsigned not null comment '??????R?[?h'
1048
  , PetitionPeriod decimal(4,0) unsigned not null comment '?????'
1049
  , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
1050
  , CorporateStatusName varchar(100) comment '?@?l?i????'
1051
  , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
1052
  , OrderersName1 varchar(60) not null comment '???????1'
1053
  , OrderersName2 varchar(60) comment '????????Q'
1054
  , DepartmentName varchar(60) comment '??????'
1055 332 h-you
  , PersonName varchar(60) comment '?S?????'
1056 271 h-you
  , ZipCode varchar(8) comment '?X????'
1057
  , Address1 varchar(60) comment '?Z???P'
1058
  , Address2 varchar(60) comment '?Z??2'
1059
  , Address3 varchar(60) comment '?Z??3'
1060
  , PhoneNumber varchar(13) comment '?d?b???'
1061
  , FaxNumber varchar(13) comment 'FAX???'
1062
  , MailAddress varchar(257) comment '???[???A?h???X'
1063
  , Note varchar(300) comment '???l'
1064
  , OrderCotegory decimal(5,0) unsigned not null comment '???????'
1065
  , OrderDate date not null comment '?\????'
1066
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
1067 332 h-you
  , CreateDepartmentCode decimal(5,0) unsigned not null comment '?\???????R?[?h'
1068
  , CreateDepartmentName varchar(60) comment '?\????????'
1069 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
1070
  , UpdateDate datetime not null comment '?X?V???t'
1071 332 h-you
  , constraint costomerregist_PKC primary key (CreatePersonCode,CreateDate,SeqNo)
1072 271 h-you
) comment '??????o?^?\???f?[?^' ;
1073 84 h-you
1074 198 h-you
create index CostomerRegist_Index1
1075
  on costomerregist(PetitionPeriod);
1076 84 h-you
1077 332 h-you
create index CostomerRegist_Index2
1078
  on costomerregist(CreatePersonCode);
1079
1080
create index CostomerRegist_Index3
1081
  on costomerregist(CreateDepartmentCode);
1082
1083 271 h-you
-- ????f?[?^
1084 370 h-you
--* BackupToTempTable
1085 325 h-you
drop table if exists dailydataconstruction cascade;
1086 84 h-you
1087 370 h-you
--* RestoreFromTempTable
1088 198 h-you
create table dailydataconstruction (
1089 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1090
  , DailyDataDate date not null comment '???????'
1091
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1092
  , Weather varchar(60) comment '?V?C'
1093
  , EntryDate datetime not null comment '?o?^???t'
1094
  , UpdateDate datetime not null comment '?X?V???t'
1095 198 h-you
  , constraint dailydataconstruction_PKC primary key (PersonCode,DailyDataDate,ConstructionCode)
1096 271 h-you
) comment '????f?[?^' ;
1097 84 h-you
1098 198 h-you
create index DailyDataConstruction_Index1
1099
  on dailydataconstruction(PersonCode);
1100 101 h-you
1101 198 h-you
create index DailyDataConstruction_Index2
1102
  on dailydataconstruction(DailyDataDate);
1103 101 h-you
1104 198 h-you
create index DailyDataConstruction_Index3
1105
  on dailydataconstruction(ConstructionCode);
1106 84 h-you
1107 271 h-you
-- ????f?[?^ (????)
1108 370 h-you
--* BackupToTempTable
1109 325 h-you
drop table if exists dailydatadetail cascade;
1110 84 h-you
1111 370 h-you
--* RestoreFromTempTable
1112 198 h-you
create table dailydatadetail (
1113 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1114
  , DailyDataDate date not null comment '???????'
1115
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1116
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1117
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
1118
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1119
  , TodayHeadCount decimal(4,1) not null comment '?????l????'
1120
  , TotalHeadCount decimal(5,1) not null comment '??v?l????'
1121
  , TodayWork varchar(100) comment '?????????e'
1122
  , NextdayWork varchar(100) comment '?????????e'
1123
  , NextdayHeadCount decimal(4,1) not null comment '?????l????'
1124
  , EntryDate datetime not null comment '?o?^???t'
1125
  , UpdateDate datetime not null comment '?X?V???t'
1126 198 h-you
  , constraint dailydatadetail_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
1127 271 h-you
) comment '????f?[?^ (????)' ;
1128 84 h-you
1129 198 h-you
create index DailyDataDetail_Index
1130
  on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
1131 84 h-you
1132 271 h-you
-- ????f?[?^ (??????)
1133 370 h-you
--* BackupToTempTable
1134 325 h-you
drop table if exists dailydatafield cascade;
1135 84 h-you
1136 370 h-you
--* RestoreFromTempTable
1137 198 h-you
create table dailydatafield (
1138 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1139
  , DailyDataDate date not null comment '???????'
1140
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1141
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1142
  , PatrolTime datetime not null comment '?????'
1143
  , ContentsText varchar(200) comment '???e'
1144
  , EntryDate datetime not null comment '?o?^???t'
1145
  , UpdateDate datetime not null comment '?X?V???t'
1146 198 h-you
  , constraint dailydatafield_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
1147 271 h-you
) comment '????f?[?^ (??????)' ;
1148 84 h-you
1149 198 h-you
create index DailyDataField_Index
1150
  on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
1151 84 h-you
1152 271 h-you
-- ????f?[?^ (????)
1153 370 h-you
--* BackupToTempTable
1154 325 h-you
drop table if exists dailydatamaterials cascade;
1155 84 h-you
1156 370 h-you
--* RestoreFromTempTable
1157 198 h-you
create table dailydatamaterials (
1158 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1159
  , DailyDataDate date not null comment '???????'
1160
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1161
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1162
  , Materials varchar(100) comment '?????'
1163
  , Quantity varchar(100) comment '????'
1164
  , Production varchar(100) comment '??????'
1165
  , Delivery varchar(100) comment '?[?????'
1166
  , QualityControl varchar(100) comment '?i?????????'
1167
  , EntryDate datetime not null comment '?o?^???t'
1168
  , UpdateDate datetime not null comment '?X?V???t'
1169 198 h-you
  , constraint dailydatamaterials_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
1170 271 h-you
) comment '????f?[?^ (????)' ;
1171 84 h-you
1172 198 h-you
create index DailyDataMaterials_Index
1173
  on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
1174 84 h-you
1175 271 h-you
-- ????f?[?^ (??????w??)
1176 370 h-you
--* BackupToTempTable
1177 325 h-you
drop table if exists dailydatasubcontractors cascade;
1178 84 h-you
1179 370 h-you
--* RestoreFromTempTable
1180 198 h-you
create table dailydatasubcontractors (
1181 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1182
  , DailyDataDate date not null comment '???????'
1183
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1184
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1185
  , Attendee varchar(100) comment '?o???'
1186
  , ContentsText varchar(200) comment '???e'
1187
  , EntryDate datetime not null comment '?o?^???t'
1188
  , UpdateDate datetime not null comment '?X?V???t'
1189 198 h-you
  , constraint dailydatasubcontractors_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
1190 271 h-you
) comment '????f?[?^ (??????w??)' ;
1191 84 h-you
1192 198 h-you
create index DailyDataSubcontractors_Index
1193
  on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
1194 84 h-you
1195 271 h-you
-- ????f?[?^ (???)
1196 370 h-you
--* BackupToTempTable
1197 325 h-you
drop table if exists dailydatavehicles cascade;
1198 84 h-you
1199 370 h-you
--* RestoreFromTempTable
1200 198 h-you
create table dailydatavehicles (
1201 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
1202
  , DailyDataDate date not null comment '???????'
1203
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1204
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1205
  , Model varchar(100) comment '?@??'
1206
  , Performance varchar(100) comment '???\'
1207
  , Owner varchar(100) comment '???L???'
1208
  , Driver varchar(100) comment '?????^?]??'
1209
  , StartWorkingTime datetime not null comment '??????J?n'
1210
  , EndWorkingTime datetime not null comment '??????I??'
1211
  , EntryDate datetime not null comment '?o?^???t'
1212
  , UpdateDate datetime not null comment '?X?V???t'
1213 198 h-you
  , constraint dailydatavehicles_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
1214 271 h-you
) comment '????f?[?^ (???)' ;
1215 84 h-you

1216 198 h-you
create index DailyDataVehicles_Index
1217
  on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
1218 84 h-you

1219 271 h-you
-- ???}?X?^
1220 370 h-you
--* BackupToTempTable
1221 325 h-you
drop table if exists daymaster cascade;
1222 84 h-you

1223 370 h-you
--* RestoreFromTempTable
1224 198 h-you
create table daymaster (
1225 271 h-you
  days smallint(6) not null comment '??'
1226 338 h-you
  , constraint daymaster_PKC primary key (days)
1227 271 h-you
) comment '???}?X?^' ;
1228 84 h-you

1229 271 h-you
-- ?????}?X?^
1230 370 h-you
--* BackupToTempTable
1231 325 h-you
drop table if exists deadlinemaster cascade;
1232 106 bit

1233 370 h-you
--* RestoreFromTempTable
1234 106 bit
create table deadlinemaster (
1235 271 h-you
  LABOURKIND decimal(1,0) default '0' not null comment '??????'
1236
  , DEADLINE decimal(2,0) comment '????'
1237
  , PAYDAY decimal(2,0) comment '?x????'
1238
  , NOTE varchar(120) comment '???l'
1239
  , DELETEFLG decimal(1,0) comment '???t???O'
1240
  , ENTRYDATE datetime comment '?o?^???t'
1241
  , UPDATEDATE datetime comment '?X?V???t'
1242 106 bit
  , constraint deadlinemaster_PKC primary key (LABOURKIND)
1243 271 h-you
) comment '?????}?X?^' ;
1244 106 bit

1245 271 h-you
-- ?????o???}?X?^
1246 370 h-you
--* BackupToTempTable
1247 325 h-you
drop table if exists departmentexpensesmaster cascade;
1248 198 h-you

1249 370 h-you
--* RestoreFromTempTable
1250 198 h-you
create table departmentexpensesmaster (
1251 271 h-you
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1252
  , ExpensesPeriod smallint(6) not null comment '?????'
1253 342 h-you
  , NameCode decimal(5,0) unsigned not null comment '?o??R?[?h'
1254
  , NameString varchar(100) not null comment '????'
1255 271 h-you
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1256
  , ExpensesRaito decimal(4,2) not null comment '?o??'
1257
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1258
  , EntryDate datetime not null comment '?o?^???t'
1259
  , UpdateDate datetime not null comment '?X?V???t'
1260 198 h-you
  , constraint departmentexpensesmaster_PKC primary key (DepartmentCode,ExpensesPeriod,NameCode)
1261 271 h-you
) comment '?????o???}?X?^' ;
1262 198 h-you

1263 271 h-you
-- ?????}?X?^
1264 370 h-you
--* BackupToTempTable
1265 325 h-you
drop table if exists departmentmaster cascade;
1266 198 h-you

1267 370 h-you
--* RestoreFromTempTable
1268 198 h-you
create table departmentmaster (
1269 271 h-you
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1270
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1271
  , DepartmentString varchar(100) not null comment '??????'
1272
  , ActionScheduleFlg decimal(1,0) not null comment '?s???\??\???t???O'
1273
  , StaffAssignFlg decimal(1,0) not null comment '?l???z?u?\???t???O'
1274 338 h-you
  , StartDate datetime not null comment '?J?n???t'
1275
  , CompDate datetime not null comment '?I?????t'
1276 271 h-you
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1277
  , EntryDate datetime not null comment '?o?^???t'
1278
  , UpdateDate datetime not null comment '?X?V???t'
1279 198 h-you
  , constraint departmentmaster_PKC primary key (DepartmentCode)
1280 271 h-you
) comment '?????}?X?^' ;
1281 198 h-you

1282
create index DepartmentMaster_index1
1283
  on departmentmaster(DisplayOrder);
1284

1285 271 h-you
-- ?????m?F???F?f?[?^
1286 370 h-you
--* BackupToTempTable
1287 325 h-you
drop table if exists depositapprovalinfo cascade;
1288 198 h-you

1289 370 h-you
--* RestoreFromTempTable
1290 106 bit
create table depositapprovalinfo (
1291 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1292
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1293
  , TARGETDATE decimal(6,0) not null comment '???N??'
1294
  , SEQNO decimal(3,0) not null comment '?A??'
1295
  , LINECOUNT decimal(3,0) not null comment '?s???'
1296
  , APPROVALNO decimal(3,0) not null comment '???F????'
1297
  , APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
1298
  , APPROVALPERSONNAME varchar(20) comment '???F???'
1299
  , APPROVALAUTHORITY decimal(1,0) comment '???F??????'
1300
  , APPROVALDATE date comment '???F???t'
1301
  , ENTRYDATE datetime comment '?o?^???t'
1302
  , UPDATEDATE datetime comment '?X?V???t'
1303 106 bit
  , constraint depositapprovalinfo_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
1304 271 h-you
) comment '?????m?F???F?f?[?^' ;
1305 106 bit

1306 271 h-you
-- ?????f?[?^
1307 370 h-you
--* BackupToTempTable
1308 325 h-you
drop table if exists depositdata cascade;
1309 106 bit

1310 370 h-you
--* RestoreFromTempTable
1311 106 bit
create table depositdata (
1312 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1313
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1314
  , TARGETDATE decimal(6,0) not null comment '???N??'
1315
  , SEQNO decimal(3,0) not null comment '?A??'
1316
  , BUSINESSPERIOD decimal(4,0) comment '?c???'
1317
  , DEPOSITDATE date comment '??????'
1318
  , DEPOSITAMOUNT decimal(12,0) comment '???????z'
1319
  , DEPOSITAMOUNTCASH decimal(10,0) comment '???????z?i?????j'
1320
  , DEPOSITAMOUNTBILL decimal(10,0) comment '???????z?i??`?j'
1321
  , DEPOSITPERSONCODE decimal(8,0) not null comment '?????S????R?[?h'
1322
  , NOTE varchar(120) comment '???l'
1323
  , ENTRYDATE datetime comment '?o?^???t'
1324
  , UPDATEDATE datetime comment '?X?V???t'
1325 106 bit
  , constraint depositdata_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO)
1326 271 h-you
) comment '?????f?[?^' ;
1327 106 bit

1328 271 h-you
-- ????????f?[?^
1329 370 h-you
--* BackupToTempTable
1330 325 h-you
drop table if exists depositdatadetail cascade;
1331 106 bit

1332 370 h-you
--* RestoreFromTempTable
1333 106 bit
create table depositdatadetail (
1334 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1335
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1336
  , TARGETDATE decimal(6,0) not null comment '???N??'
1337
  , REQUESTNO decimal(10,0) not null comment '????No'
1338
  , ORDERNO decimal(2,0) comment '??t???'
1339
  , DEPOSITAMOUNT decimal(10,0) comment '???????z'
1340
  , DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'
1341
  , CNSTRPRICE decimal(10,0) comment '?????'
1342
  , FEES decimal(10,0) comment '????'
1343
  , OTHERADJUSTMENTS decimal(10,0) comment '?????'
1344
  , DIFFERENCEAMOUNT decimal(10,0) comment '????'
1345
  , CONFIRMATIONPERSONCODE decimal(8,0) comment '?m?F?S????R?[?h'
1346
  , CONFIRMATIONDATE date comment '?S????m?F???t'
1347
  , CONFIRMATIONENDFLG decimal(1,0) comment '?m?F?????t???O'
1348
  , NOTE varchar(120) comment '???l'
1349
  , ENTRYDATE datetime comment '?o?^???t'
1350
  , UPDATEDATE datetime comment '?X?V???t'
1351 184 bit
  , constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO)
1352 271 h-you
) comment '????????f?[?^' ;
1353 106 bit

1354 271 h-you
-- ???}?X?^
1355 370 h-you
--* BackupToTempTable
1356 325 h-you
drop table if exists divisionmaster cascade;
1357 198 h-you

1358 370 h-you
--* RestoreFromTempTable
1359 198 h-you
create table divisionmaster (
1360 271 h-you
  DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
1361
  , NameCode decimal(5,0) unsigned not null comment '????R?[?h'
1362
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1363
  , NameString varchar(100) not null comment '????'
1364
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1365
  , EntryDate datetime not null comment '?o?^???t'
1366
  , UpdateDate datetime not null comment '?X?V???t'
1367 198 h-you
  , constraint divisionmaster_PKC primary key (DivisionCode,NameCode)
1368 271 h-you
) comment '???}?X?^' ;
1369 198 h-you

1370 271 h-you
-- ??Z?\?Z???f?[?^
1371 370 h-you
--* BackupToTempTable
1372 325 h-you
drop table if exists estimatebudget cascade;
1373 198 h-you

1374 370 h-you
--* RestoreFromTempTable
1375 198 h-you
create table estimatebudget (
1376 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1377
  , ConstructionTime decimal(5,2) unsigned not null comment '?H??'
1378
  , IntegratedCode decimal(8,0) not null comment '??Z??'
1379
  , DataCreateDate datetime not null comment '?f?[?^??????'
1380
  , RetValue1 decimal(12,0) not null comment '?\???i'
1381
  , RetValue2 decimal(12,0) not null comment '????H????'
1382
  , RetValue3 decimal(12,0) not null comment '????????????'
1383
  , RetValue4 decimal(12,0) not null comment '????????????'
1384
  , RetPercent decimal(5,2) not null comment '???????'
1385
  , EntryDate datetime not null comment '?o?^???t'
1386
  , UpdateDate datetime not null comment '?X?V???t'
1387 198 h-you
  , constraint estimatebudget_PKC primary key (ConstructionCode)
1388 271 h-you
) comment '??Z?\?Z???f?[?^' ;
1389 198 h-you

1390 271 h-you
-- ??Z?\?Z????f?[?^????
1391 370 h-you
--* BackupToTempTable
1392 325 h-you
drop table if exists estimatebudgetdetail cascade;
1393 198 h-you

1394 370 h-you
--* RestoreFromTempTable
1395 198 h-you
create table estimatebudgetdetail (
1396 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1397
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
1398
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1399
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1400
  , ItemCode decimal(5,0) unsigned comment '?H??L?['
1401
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1402
  , FirstString varchar(120) comment '???????'
1403
  , SecondString varchar(120) comment '?H????E???????'
1404
  , Content varchar(120) comment '???e'
1405
  , EstimatePrice decimal(12,0) not null comment '????????z'
1406
  , NegotiationPrice decimal(12,0) not null comment '????????z'
1407
  , Notes varchar(120) comment '???????'
1408
  , EntryDate datetime not null comment '?o?^???t'
1409
  , UpdateDate datetime not null comment '?X?V???t'
1410 198 h-you
  , constraint estimatebudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
1411 271 h-you
) comment '??Z?\?Z????f?[?^????' ;
1412 198 h-you

1413 271 h-you
-- ??Z????f?[?^
1414 370 h-you
--* BackupToTempTable
1415 325 h-you
drop table if exists estimatedata cascade;
1416 198 h-you

1417 370 h-you
--* RestoreFromTempTable
1418 198 h-you
create table estimatedata (
1419 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1420
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1421
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1422
  , FixedItemCode varchar(1) comment '?????L?['
1423
  , ItemName varchar(120) comment '??????'
1424
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
1425
  , PriceValue decimal(14,0) not null comment '???z'
1426
  , note varchar(60) comment '???l'
1427
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
1428
  , InputFlg decimal(1,0) not null comment '????t???O'
1429
  , EntryDate datetime not null comment '?o?^???t'
1430
  , UpdateDate datetime not null comment '?X?V???t'
1431 198 h-you
  , constraint estimatedata_PKC primary key (ConstructionCode,LineCount)
1432 271 h-you
) comment '??Z????f?[?^' ;
1433 198 h-you

1434
create index EstimateData_Index1
1435
  on estimatedata(ConstructionCode,FixedItemCode);
1436

1437 271 h-you
-- ??Z????y?[?W?f?[?^
1438 370 h-you
--* BackupToTempTable
1439 325 h-you
drop table if exists estimatedatabody cascade;
1440 198 h-you

1441 370 h-you
--* RestoreFromTempTable
1442 198 h-you
create table estimatedatabody (
1443 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1444
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
1445
  , Category decimal(1,0) not null comment '?y?[?W??'
1446
  , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?['
1447
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1448
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1449
  , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?['
1450
  , PageTitle varchar(120) not null comment '?y?[?W?\????'
1451
  , DetailLineCount decimal(3,0) unsigned not null comment '????s???'
1452
  , EntryDate datetime not null comment '?o?^???t'
1453
  , UpdateDate datetime not null comment '?X?V???t'
1454 198 h-you
  , constraint estimatedatabody_PKC primary key (ConstructionCode,PageCount)
1455 271 h-you
) comment '??Z????y?[?W?f?[?^' ;
1456 198 h-you

1457
create index EstimateDataBody_Index1
1458
  on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
1459

1460 271 h-you
-- ??Z????f?[?^????
1461 370 h-you
--* BackupToTempTable
1462 325 h-you
drop table if exists estimatedatadetail cascade;
1463 198 h-you

1464 370 h-you
--* RestoreFromTempTable
1465 198 h-you
create table estimatedatadetail (
1466 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1467
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
1468
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1469
  , DataType decimal(1,0) not null comment '?f?[?^???'
1470
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1471
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1472
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
1473
  , ItemName varchar(120) comment '??????'
1474
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
1475
  , Unitcount decimal(8,2) not null comment '????'
1476
  , UnitName varchar(30) comment '?P?????'
1477
  , UnitPrice decimal(9,2) not null comment '?P??'
1478
  , LineTotal decimal(12,0) not null comment '???z'
1479
  , note varchar(60) comment '???l'
1480
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1481
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
1482
  , InputFlg decimal(1,0) comment '????t???O'
1483
  , EntryDate datetime not null comment '?o?^???t'
1484
  , UpdateDate datetime not null comment '?X?V???t'
1485 198 h-you
  , constraint estimatedatadetail_PKC primary key (ConstructionCode,PageCount,LineCount)
1486 271 h-you
) comment '??Z????f?[?^????' ;
1487 198 h-you

1488
create index EstimateDataDetail_Index1
1489
  on estimatedatadetail(ConstructionCode,PageCount);
1490

1491 271 h-you
-- ?o???}?X?^
1492 370 h-you
--* BackupToTempTable
1493 325 h-you
drop table if exists expensesmaster cascade;
1494 198 h-you

1495 370 h-you
--* RestoreFromTempTable
1496 198 h-you
create table expensesmaster (
1497 271 h-you
  DivisionCode smallint(6) not null comment '?H?????R?[?h'
1498
  , NameCode smallint(6) not null comment '?o????R?[?h'
1499
  , DisplayOrder smallint(6) not null comment '?\????'
1500
  , ExpensesRatio decimal(4,2) not null comment '?o??'
1501
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1502
  , EntryDate datetime not null comment '?o?^???t'
1503
  , UpdateDate datetime not null comment '?X?V???t'
1504 198 h-you
  , constraint expensesmaster_PKC primary key (DivisionCode,NameCode)
1505 271 h-you
) comment '?o???}?X?^' ;
1506 198 h-you

1507 271 h-you
-- ???x???}?X?^
1508 370 h-you
--* BackupToTempTable
1509 325 h-you
drop table if exists holidaycalendermaster cascade;
1510 198 h-you

1511 370 h-you
--* RestoreFromTempTable
1512 198 h-you
create table holidaycalendermaster (
1513 271 h-you
  Holiday date not null comment '?x??'
1514
  , BusinessYear smallint(5) unsigned not null comment '?c??N?x'
1515
  , TargetMonth tinyint(3) unsigned not null comment '?Y????'
1516
  , TargetDay tinyint(3) unsigned not null comment '?Y????'
1517 198 h-you
  , constraint holidaycalendermaster_PKC primary key (Holiday)
1518 271 h-you
) comment '???x???}?X?^' ;
1519 198 h-you

1520
create index HolidayCalender_Index1
1521
  on holidaycalendermaster(BusinessYear);
1522

1523
create index HolidayCalenderMaster_Index2
1524
  on holidaycalendermaster(TargetMonth);
1525

1526
create index HolidayCalenderMaster_Index3
1527
  on holidaycalendermaster(TargetDay);
1528

1529 271 h-you
-- ?????????????
1530 370 h-you
--* BackupToTempTable
1531 325 h-you
drop table if exists inputsearchlogdata cascade;
1532 198 h-you

1533 370 h-you
--* RestoreFromTempTable
1534 198 h-you
create table inputsearchlogdata (
1535 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1536
  , UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
1537
  , DisplayOrder decimal(4,0) unsigned not null comment '?\????'
1538
  , DataType decimal(1,0) not null comment '?f?[?^???'
1539
  , InputCode decimal(10,0) comment '????R?[?h'
1540 198 h-you
  , constraint inputsearchlogdata_PKC primary key (ConstructionCode,UsedProcessNo,DisplayOrder)
1541 271 h-you
) comment '?????????????' ;
1542 198 h-you

1543
create index InputSearchLogData_Index1
1544
  on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
1545

1546 271 h-you
-- ???????f?[?^
1547 370 h-you
--* BackupToTempTable
1548 325 h-you
drop table if exists invoicedata cascade;
1549 106 bit

1550 370 h-you
--* RestoreFromTempTable
1551 106 bit
create table invoicedata (
1552 271 h-you
  INVOICENO decimal(9,0) not null comment '??????No'
1553
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
1554
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1555
  , REQUESTMONTH decimal(6,0) not null comment '??????'
1556
  , SEQNO decimal(2,0) not null comment '?A??'
1557
  , CRETATEDATE date not null comment '????'
1558
  , REQUESTDATE date not null comment '??????'
1559
  , REQUESTNAME varchar(120) comment '??????'
1560
  , TOTALAMOUNT decimal(10,0) comment '???????v???z'
1561
  , TAXAMOUNT decimal(10,0) comment '???????z'
1562
  , COMMENT1 varchar(60) comment '?R?????g1'
1563
  , COMMENT2 varchar(60) comment '?R?????g2'
1564
  , COMMENT3 varchar(60) not null comment '?R?????g3'
1565
  , COMMENT4 varchar(60) not null comment '?R?????g4'
1566
  , COMMENT5 varchar(60) not null comment '?R?????g5'
1567
  , COMPLETEFLG decimal(1,0) default '0' not null comment '?????t???O'
1568
  , ENTRYDATE datetime not null comment '?o?^?N????'
1569
  , UPDATEDATE datetime not null comment '?X?V?N????'
1570 106 bit
  , constraint invoicedata_PKC primary key (INVOICENO)
1571 271 h-you
) comment '???????f?[?^' ;
1572 106 bit

1573
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
1574

1575 271 h-you
-- ??????
1576 370 h-you
--* BackupToTempTable
1577 325 h-you
drop table if exists materialinfo cascade;
1578 106 bit

1579 370 h-you
--* RestoreFromTempTable
1580 106 bit
create table materialinfo (
1581 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1582
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
1583
  , RENTCOUNT smallint(5) unsigned comment '??o??\??'
1584
  , DELETEFLG smallint(5) unsigned comment '???t???O'
1585
  , ENTRYDATE datetime comment '?o?^???t'
1586
  , UPDATEDATE datetime comment '?X?V???t'
1587 106 bit
  , constraint materialinfo_PKC primary key (MATERIALITEMCODE)
1588 271 h-you
) comment '??????' ;
1589 106 bit

1590 271 h-you
-- ????i??}?X?^
1591 370 h-you
--* BackupToTempTable
1592 325 h-you
drop table if exists materialitemmaster cascade;
1593 106 bit

1594 370 h-you
--* RestoreFromTempTable
1595 106 bit
create table materialitemmaster (
1596 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1597
  , MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
1598
  , MATERIALITEMNAME varchar(40) comment '????i?????'
1599
  , DISPLAYORDER smallint(5) unsigned comment '?\????'
1600
  , DELETEFLG tinyint(3) unsigned comment '???t???O'
1601
  , ENTRYDATE datetime comment '?o?^???t'
1602
  , UPDATEDATE datetime comment '?X?V???t'
1603
  , VERSIONNO decimal(8,0) default '0' not null comment '?o?[?W???????'
1604 106 bit
  , constraint materialitemmaster_PKC primary key (MATERIALITEMCODE)
1605 271 h-you
) comment '????i??}?X?^' ;
1606 106 bit

1607 271 h-you
-- ??????}?X?^
1608 370 h-you
--* BackupToTempTable
1609 325 h-you
drop table if exists materialkindmaster cascade;
1610 106 bit

1611 370 h-you
--* RestoreFromTempTable
1612 106 bit
create table materialkindmaster (
1613 271 h-you
  MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
1614
  , MATERIALKINDNAME varchar(40) comment '?????????'
1615
  , DISPLAYORDER smallint(5) unsigned comment '?\????'
1616
  , DELETEFLG tinyint(3) unsigned comment '???t???O'
1617
  , ENTRYDATE datetime comment '?o?^???t'
1618
  , UPDATEDATE datetime comment '?X?V???t'
1619 106 bit
  , constraint materialkindmaster_PKC primary key (MATERIALKINDCODE)
1620 271 h-you
) comment '??????}?X?^' ;
1621 106 bit

1622 271 h-you
-- ??????????
1623 370 h-you
--* BackupToTempTable
1624 325 h-you
drop table if exists materialrecordinfo cascade;
1625 106 bit

1626 370 h-you
--* RestoreFromTempTable
1627 106 bit
create table materialrecordinfo (
1628 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1629
  , PROCESSDATE date default '0000-00-00' not null comment '?????N????'
1630
  , SEQNO smallint(5) unsigned default 0 not null comment '?A??'
1631
  , RECKIND tinyint(3) unsigned comment '???R?[?h??'
1632
  , CONSTRUCTIONCODE int(10) unsigned comment '?H?????'
1633
  , PERSONCODE int(10) unsigned comment '?S????R?[?h'
1634
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
1635
  , REPAYPLANDATE date comment '??p?\??N????'
1636
  , COMMENTTEXT varchar(80) comment '?R?????g'
1637
  , ENTRYDATE datetime comment '?o?^???t'
1638
  , UPDATEDATE datetime comment '?X?V???t'
1639 106 bit
  , constraint materialrecordinfo_PKC primary key (MATERIALITEMCODE,PROCESSDATE,SEQNO)
1640 271 h-you
) comment '??????????' ;
1641 106 bit

1642 271 h-you
-- ?f??????b?Z?[?W
1643 370 h-you
--* BackupToTempTable
1644 325 h-you
drop table if exists messageboarddata cascade;
1645 198 h-you

1646 370 h-you
--* RestoreFromTempTable
1647 198 h-you
create table messageboarddata (
1648 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1649
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1650
  , FromCode decimal(8,0) unsigned not null comment '???????R?[?h'
1651
  , FromName varchar(60) not null comment '???????'
1652
  , MessageTitile varchar(100) comment '?`???^?C?g??'
1653
  , MessageContent varchar(1333) not null comment '?`?????e'
1654
  , LinkType decimal(2,0) not null comment '?????N????^?C?v'
1655
  , LinkMessage varchar(200) comment '?????N??????'
1656
  , LinkCode varchar(30) comment '?????N?L?['
1657
  , WritingDate datetime not null comment '?????????'
1658
  , PersonCode decimal(8,0) not null comment '??????S????R?[?h'
1659
  , ShareFlag decimal(2,0) not null comment '???????t???O'
1660
  , MessageColor varchar(8) comment '?????F'
1661
  , BackColor varchar(8) comment '?o?b?N?J???['
1662
  , MessageFlag decimal(1,0) not null comment '???b?Z?[?W?t???O'
1663
  , EntryDate datetime not null comment '?o?^???t'
1664
  , UpdateDate datetime not null comment '?X?V???t'
1665 198 h-you
  , constraint messageboarddata_PKC primary key (RecordNumber,BranchNumber)
1666 271 h-you
) comment '?f??????b?Z?[?W' ;
1667 198 h-you

1668
create index MessageBoardData_Index1
1669
  on messageboarddata(WritingDate);
1670

1671
create index MessageBoardData_Index2
1672
  on messageboarddata(MessageFlag);
1673

1674 271 h-you
-- ?f???????e?[?u??
1675 370 h-you
--* BackupToTempTable
1676 325 h-you
drop table if exists messageboardterget cascade;
1677 198 h-you

1678 370 h-you
--* RestoreFromTempTable
1679 198 h-you
create table messageboardterget (
1680 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1681
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1682
  , SeqNum decimal(3,0) unsigned not null comment '????'
1683
  , ToCode decimal(8,0) not null comment '????R?[?h'
1684
  , ToName varchar(60) not null comment '????'
1685
  , EntryDate datetime not null comment '?o?^???t'
1686
  , UpdateDate datetime not null comment '?X?V???t'
1687 198 h-you
  , constraint messageboardterget_PKC primary key (RecordNumber,BranchNumber,SeqNum)
1688 271 h-you
) comment '?f???????e?[?u??' ;
1689 198 h-you

1690
create index MessageBoardTerget_Index1
1691
  on messageboardterget(RecordNumber,BranchNumber);
1692

1693 271 h-you
-- ?f??????b?Z?[?W?{??????
1694 370 h-you
--* BackupToTempTable
1695 325 h-you
drop table if exists messagebrowsinghistory cascade;
1696 198 h-you

1697 370 h-you
--* RestoreFromTempTable
1698 198 h-you
create table messagebrowsinghistory (
1699 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1700
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1701
  , SeqNum decimal(3,0) unsigned not null comment '????'
1702
  , BrowsingCode decimal(8,0) not null comment '?{????R?[?h'
1703
  , BrowsingDate datetime not null comment '?{?????t'
1704
  , EntryDate datetime not null comment '?o?^???t'
1705
  , UpdateDate datetime not null comment '?X?V???t'
1706 198 h-you
  , constraint messagebrowsinghistory_PKC primary key (RecordNumber,BranchNumber,SeqNum)
1707 271 h-you
) comment '?f??????b?Z?[?W?{??????' ;
1708 198 h-you

1709 271 h-you
-- ???}?X?^
1710 370 h-you
--* BackupToTempTable
1711 325 h-you
drop table if exists monthmaster cascade;
1712 198 h-you

1713 370 h-you
--* RestoreFromTempTable
1714 198 h-you
create table monthmaster (
1715 271 h-you
  month smallint(6) not null comment '??'
1716 338 h-you
  , constraint monthmaster_PKC primary key (month)
1717 271 h-you
) comment '???}?X?^' ;
1718 198 h-you

1719 271 h-you
-- ??????}?X?^
1720 370 h-you
--* BackupToTempTable
1721 325 h-you
drop table if exists orderersmaster cascade;
1722 198 h-you

1723 370 h-you
--* RestoreFromTempTable
1724 198 h-you
create table orderersmaster (
1725 271 h-you
  OrderCotegory decimal(5,0) unsigned not null comment '???????'
1726
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
1727
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1728
  , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
1729
  , CorporateStatusName varchar(100) comment '?@?l?i????'
1730
  , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
1731
  , OrderersName1 varchar(60) not null comment '???????1'
1732
  , OrderersName2 varchar(60) comment '????????Q'
1733
  , DepartmentName varchar(60) comment '??????'
1734
  , ChargePersonName varchar(60) comment '?S?????'
1735
  , ZipCode varchar(8) comment '?X????'
1736
  , Address1 varchar(60) comment '?Z???P'
1737
  , Address2 varchar(60) comment '?Z??2'
1738
  , Address3 varchar(60) comment '?Z??3'
1739
  , PhoneNumber varchar(13) comment '?d?b???'
1740
  , FaxNumber varchar(13) comment 'FAX???'
1741
  , MailAddress varchar(257) comment '???[???A?h???X'
1742
  , Note varchar(300) comment '???l'
1743
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1744
  , EntryDate datetime not null comment '?o?^???t'
1745
  , UpdateDate datetime not null comment '?X?V???t'
1746 198 h-you
  , constraint orderersmaster_PKC primary key (OrderCotegory,OrderersCode)
1747 271 h-you
) comment '??????}?X?^' ;
1748 198 h-you

1749 271 h-you
-- ????z?f?[?^
1750 370 h-you
--* BackupToTempTable
1751 325 h-you
drop table if exists orderspricedata cascade;
1752 198 h-you

1753 370 h-you
--* RestoreFromTempTable
1754 198 h-you
create table orderspricedata (
1755 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1756
  , ChangeNo decimal(3,0) unsigned not null comment '??X???'
1757
  , ChangeDate date not null comment '??X??'
1758
  , ChangePersonCode decimal(8,0) unsigned not null comment '??X??R?[?h'
1759
  , ChangePersonName varchar(60) comment '??X???'
1760
  , BeforeValue decimal(14,0) not null comment '??X?O???????z'
1761
  , BeforeValueInTax decimal(14,0) not null comment '??X?O???????z'
1762
  , AfterValue decimal(14,0) not null comment '??X????????z'
1763
  , AfterValueInTax decimal(14,0) not null comment '??X????????z'
1764
  , ChangeComment varchar(200) comment '??X???R'
1765
  , EntryDate datetime not null comment '?o?^???t'
1766
  , UpdateDate datetime not null comment '?X?V???t'
1767 198 h-you
  , constraint orderspricedata_PKC primary key (ConstructionCode,ChangeNo)
1768 271 h-you
) comment '????z?f?[?^' ;
1769 198 h-you

1770 271 h-you
-- ?x?????F???f?[?^
1771 370 h-you
--* BackupToTempTable
1772 325 h-you
drop table if exists paymentapprovalinfo cascade;
1773 106 bit

1774 370 h-you
--* RestoreFromTempTable
1775 106 bit
create table paymentapprovalinfo (
1776 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1777
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
1778
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
1779
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
1780
  , APPROVALNO decimal(3,0) default '0' not null comment '???F????'
1781
  , APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
1782
  , APPROVALPERSONNAME varchar(20) comment '???F???'
1783
  , APPROVALAUTHORITY decimal(1,0) comment '???F??????'
1784
  , APPROVALDATE date comment '???F???t'
1785
  , ENTRYDATE datetime comment '?o?^???t'
1786
  , UPDATEDATE datetime comment '?X?V???t'
1787 106 bit
  , constraint paymentapprovalinfo_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
1788 271 h-you
) comment '?x?????F???f?[?^' ;
1789 106 bit

1790 271 h-you
-- ?x??????f?[?^
1791 370 h-you
--* BackupToTempTable
1792 325 h-you
drop table if exists paymentdatadetail cascade;
1793 106 bit

1794 370 h-you
--* RestoreFromTempTable
1795 106 bit
create table paymentdatadetail (
1796 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1797
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
1798
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
1799
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
1800
  , BILLPRICE decimal(10,0) comment '???????z'
1801
  , DISCOUNTPRICE decimal(10,0) comment '?l???????z'
1802
  , OFFSETPRICE decimal(10,0) comment '???E???z'
1803
  , NEXTCOPRICE decimal(10,0) comment '????J?z'
1804
  , HIGHWPRICE decimal(10,0) comment '??????'
1805
  , HARDWPRICE decimal(10,0) comment '??????'
1806
  , INDSWASTETAX decimal(10,0) comment '?Y?p??'
1807
  , CNSTRPRICE decimal(10,0) comment '?????'
1808
  , CNSTRPRICEEXIST decimal(1,0) comment '??????L??'
1809
  , APPROVALPERSONCODE decimal(8,0) comment '???F?S????R?[?h'
1810
  , APPROVALDATE date comment '?S??????F???t'
1811
  , APPROVALENDFLG decimal(1,0) comment '???F?????t???O'
1812
  , ENTRYDATE datetime comment '?o?^???t'
1813
  , UPDATEDATE datetime comment '?X?V???t'
1814 106 bit
  , constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
1815 271 h-you
) comment '?x??????f?[?^' ;
1816 106 bit

1817 322 h-you
create index PayDataDetail_Index1
1818
  on paymentdatadetail(TARGETDATE);
1819

1820
create index PayDataDetail_Index2
1821
  on paymentdatadetail(APPROVALPERSONCODE);
1822

1823 302 h-you
-- ?H??????????f?[?^
1824 370 h-you
--* BackupToTempTable
1825 325 h-you
drop table if exists periodavoidance cascade;
1826 302 h-you

1827 370 h-you
--* RestoreFromTempTable
1828 302 h-you
create table periodavoidance (
1829
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1830
  , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
1831
  , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???'
1832
  , EntryDate datetime not null comment '?o?^???t'
1833
  , UpdateDate datetime not null comment '?X?V???t'
1834
  , constraint periodavoidance_PKC primary key (ConstructionCode,ConstructionStatusFlg,FieldNo)
1835
) comment '?H??????????f?[?^' ;
1836

1837
create index PeriodAvoidance_Index1
1838
  on periodavoidance(ConstructionCode);
1839

1840
create index PeriodAvoidance_Index2
1841
  on periodavoidance(ConstructionStatusFlg);
1842

1843
create index PeriodAvoidance_Index3
1844
  on periodavoidance(FieldNo);
1845

1846 271 h-you
-- ?S??????F?f?[?^
1847 370 h-you
--* BackupToTempTable
1848 325 h-you
drop table if exists personapproval cascade;
1849 198 h-you

1850 370 h-you
--* RestoreFromTempTable
1851 198 h-you
create table personapproval (
1852 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1853
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1854
  , OrderDate date not null comment '??t??'
1855
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1856
  , SeqNo decimal(2,0) not null comment '?}??'
1857
  , PersonCodeApproval decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
1858
  , PetitionApprovalDate datetime not null comment '?\???E???F???t'
1859
  , ApprovalLimitDates datetime not null comment '???F??]??'
1860
  , ApprovalStatus decimal(1,0) not null comment '???F???'
1861
  , InputComment varchar(300) comment '?R?????g'
1862
  , EntryDate datetime not null comment '?o?^???t'
1863
  , UpdateDate datetime not null comment '?X?V???t'
1864 198 h-you
  , constraint personapproval_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,SeqNo)
1865 271 h-you
) comment '?S??????F?f?[?^' ;
1866 198 h-you

1867 271 h-you
-- ?S??????F?R?????g?f?[?^
1868 370 h-you
--* BackupToTempTable
1869 325 h-you
drop table if exists personapprovalcomment cascade;
1870 198 h-you

1871 370 h-you
--* RestoreFromTempTable
1872 198 h-you
create table personapprovalcomment (
1873 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1874
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1875
  , OrderDate date not null comment '??t??'
1876
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1877
  , CommentNo decimal(2,0) not null comment '?R?????g???'
1878
  , ParentNo decimal(2,0) not null comment '?e?R?????g???'
1879
  , ApproValComment varchar(300) comment '?w???E?A???R?????g'
1880
  , EntryDate datetime not null comment '?o?^???t'
1881
  , UpdateDate datetime not null comment '?X?V???t'
1882 198 h-you
  , constraint personapprovalcomment_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,CommentNo)
1883 271 h-you
) comment '?S??????F?R?????g?f?[?^' ;
1884 198 h-you

1885 271 h-you
-- ?S??????????}?X?^
1886 370 h-you
--* BackupToTempTable
1887 325 h-you
drop table if exists persondepartmentmaster cascade;
1888 198 h-you

1889 370 h-you
--* RestoreFromTempTable
1890 198 h-you
create table persondepartmentmaster (
1891 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1892
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1893
  , AffiliationFlg decimal(1,0) not null comment '?????t???O'
1894
  , EntryDate datetime not null comment '?o?^???t'
1895
  , UpdateDate datetime not null comment '?X?V???t'
1896 198 h-you
  , constraint persondepartmentmaster_PKC primary key (PersonCode,DepartmentCode)
1897 271 h-you
) comment '?S??????????}?X?^' ;
1898 198 h-you

1899
create index PersonDepartmentMaster_Index1
1900
  on persondepartmentmaster(PersonCode);
1901

1902
create index PersonDepartmentMaster_Index2
1903
  on persondepartmentmaster(DepartmentCode);
1904

1905 271 h-you
-- ?S????}?X?^
1906 370 h-you
--* BackupToTempTable
1907 325 h-you
drop table if exists personinchargemaster cascade;
1908 198 h-you

1909 370 h-you
--* RestoreFromTempTable
1910 198 h-you
create table personinchargemaster (
1911 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1912
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
1913
  , PersonName varchar(60) not null comment '?S?????'
1914
  , StartDate date not null comment '?g?p?J?n?N????'
1915
  , EndDate date comment '?g?p?I???N????'
1916
  , PassWord varchar(16) comment '?p?X???[?h'
1917
  , SecurityManagement decimal(1,0) not null comment '?@????'
1918
  , SecCode decimal(2,0) unsigned not null comment '???????'
1919
  , MsgBackColor varchar(8) comment '???b?Z?[?W?w?i?F'
1920
  , DisplayString varchar(20) comment '?\???E???????'
1921
  , DepartmentCode decimal(5,0) unsigned comment '?????R?[?h'
1922
  , MonthlySalary decimal(11,0) not null comment '???????z'
1923
  , YearSalary decimal(12,0) not null comment '?N????z'
1924
  , Qualification varchar(120) comment '???i?????'
1925
  , SealPrintName varchar(5) comment '???\????'
1926
  , EmployeeClassFlg decimal(1,0) not null comment '?????'
1927
  , LedgerFlg decimal(1,0) not null comment '???v?Z???t???O'
1928
  , CommutingDistance decimal(5,2) not null comment '??????'
1929
  , CommuteCosts decimal(5,0) not null comment '??????'
1930
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1931
  , EntryDate datetime not null comment '?o?^???t'
1932
  , UpdateDate datetime not null comment '?X?V???t'
1933 198 h-you
  , constraint personinchargemaster_PKC primary key (PersonCode)
1934 271 h-you
) comment '?S????}?X?^' ;
1935 198 h-you

1936
create index PersonInChargeMaster_Index1
1937
  on personinchargemaster(StartDate);
1938

1939
create index PersonInChargeMaster_Index2
1940
  on personinchargemaster(DepartmentCode);
1941

1942 271 h-you
-- ?S??????^?}?X?^
1943 370 h-you
--* BackupToTempTable
1944 325 h-you
drop table if exists personsalarymaster cascade;
1945 198 h-you

1946 370 h-you
--* RestoreFromTempTable
1947 198 h-you
create table personsalarymaster (
1948 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1949
  , StartDate date not null comment '?g?p?J?n?N????'
1950
  , MonthlySalary decimal(11,0) not null comment '???????z'
1951
  , YearSalary decimal(12,0) not null comment '?N????z'
1952
  , EntryDate datetime not null comment '?o?^???t'
1953
  , UpdateDate datetime not null comment '?X?V???t'
1954 198 h-you
  , constraint personsalarymaster_PKC primary key (PersonCode,StartDate)
1955 271 h-you
) comment '?S??????^?}?X?^' ;
1956 198 h-you

1957
create index PersonSalaryMaster_Index1
1958
  on personsalarymaster(PersonCode);
1959

1960
create index PersonSalaryMaster_Index2
1961
  on personsalarymaster(StartDate);
1962

1963 342 h-you
create index PersonSalaryMaster_Index3
1964
  on personsalarymaster(MonthlySalary);
1965

1966 271 h-you
-- ?w???????f?[?^
1967 370 h-you
--* BackupToTempTable
1968 325 h-you
drop table if exists pointingoutcomment cascade;
1969 198 h-you

1970 370 h-you
--* RestoreFromTempTable
1971 198 h-you
create table pointingoutcomment (
1972 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1973
  , ProcessNo smallint(6) not null comment '????????i??????j'
1974
  , SeqNo smallint(6) not null comment '????'
1975
  , PageCount smallint(6) not null comment '?y?[?W???'
1976
  , PersonCode decimal(8,0) not null comment '?L????R?[?h'
1977
  , DrowColor varchar(8) comment '?`??F'
1978
  , CommentMessage varchar(1000) comment '???b?Z?[?W'
1979
  , StartPointX smallint(6) not null comment '?w?E?????u?w'
1980
  , StartPointY smallint(6) not null comment '?w?E?????u?x'
1981
  , CurrentPointX smallint(6) not null comment '??????u?w'
1982
  , CurrentPointY smallint(6) not null comment '??????u?x'
1983
  , CurrentWidth smallint(6) not null comment '?\???T?C?YWidth'
1984
  , CurrentHeight smallint(6) not null comment '?\???T?C?YHeigth'
1985
  , EntryDate datetime not null comment '?o?^???t'
1986
  , UpdateDate datetime not null comment '?X?V???t'
1987 198 h-you
  , constraint pointingoutcomment_PKC primary key (ConstructionCode,ProcessNo,SeqNo)
1988 271 h-you
) comment '?w???????f?[?^' ;
1989 198 h-you

1990 271 h-you
-- ?????????????c???^?f?[?^
1991 370 h-you
--* BackupToTempTable
1992 325 h-you
drop table if exists proceedingsdata cascade;
1993 198 h-you

1994 370 h-you
--* RestoreFromTempTable
1995 198 h-you
create table proceedingsdata (
1996 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1997
  , ProceedingsDataDate date not null comment '?c???^????'
1998
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
1999
  , EndMeetingTime decimal(4,0) unsigned not null comment '??c????I??'
2000
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
2001
  , PalceFlag decimal(1,0) not null comment '???n?t???O'
2002
  , MeetingPalce varchar(120) comment '???????'
2003
  , EntryDate datetime not null comment '?o?^???t'
2004
  , UpdateDate datetime not null comment '?X?V???t'
2005 198 h-you
  , constraint proceedingsdata_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime)
2006 271 h-you
) comment '?????????????c???^?f?[?^' ;
2007 198 h-you

2008 271 h-you
-- ?????????????c???^?f?[?^?i?o???j
2009 370 h-you
--* BackupToTempTable
2010 325 h-you
drop table if exists proceedingsdataattend cascade;
2011 198 h-you

2012 370 h-you
--* RestoreFromTempTable
2013 198 h-you
create table proceedingsdataattend (
2014 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2015
  , ProceedingsDataDate date not null comment '?c???^????'
2016
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
2017
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
2018
  , Department varchar(20) comment '?o??????'
2019
  , AttendName varchar(10) comment '?o??????'
2020
  , EntryDate datetime not null comment '?o?^???t'
2021
  , UpdateDate datetime not null comment '?X?V???t'
2022 198 h-you
  , constraint proceedingsdataattend_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
2023 271 h-you
) comment '?????????????c???^?f?[?^?i?o???j' ;
2024 198 h-you

2025 271 h-you
-- ?????????????c???^?f?[?^?i????j
2026 370 h-you
--* BackupToTempTable
2027 325 h-you
drop table if exists proceedingsdatadetail cascade;
2028 198 h-you

2029 370 h-you
--* RestoreFromTempTable
2030 198 h-you
create table proceedingsdatadetail (
2031 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2032
  , ProceedingsDataDate date not null comment '?c???^????'
2033
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
2034
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
2035
  , TitleNo varchar(5) comment '?c????'
2036
  , Title varchar(20) comment '?c??'
2037
  , ContentsText varchar(50) comment '???e'
2038
  , EntryDate datetime not null comment '?o?^???t'
2039
  , UpdateDate datetime not null comment '?X?V???t'
2040 198 h-you
  , constraint proceedingsdatadetail_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
2041 271 h-you
) comment '?????????????c???^?f?[?^?i????j' ;
2042 198 h-you

2043 271 h-you
-- ???F?f?[?^
2044 370 h-you
--* BackupToTempTable
2045 325 h-you
drop table if exists processapproval cascade;
2046 198 h-you

2047 370 h-you
--* RestoreFromTempTable
2048 198 h-you
create table processapproval (
2049 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2050
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
2051
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
2052
  , SeqNo decimal(2,0) not null comment '?}??'
2053
  , PersonCode decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
2054
  , PetitionApprovalDate datetime not null comment '?\???E???F???t'
2055
  , ApprovalLimitDates datetime not null comment '???F??]??'
2056
  , ApprovalStatus decimal(1,0) not null comment '???F???'
2057
  , InputComment varchar(300) comment '?R?????g'
2058
  , EntryDate datetime not null comment '?o?^???t'
2059
  , UpdateDate datetime not null comment '?X?V???t'
2060 198 h-you
  , constraint processapproval_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SeqNo)
2061 271 h-you
) comment '???F?f?[?^' ;
2062 198 h-you

2063 271 h-you
-- ???F?R?????g?f?[?^
2064 370 h-you
--* BackupToTempTable
2065 325 h-you
drop table if exists processapprovalcomment cascade;
2066 198 h-you

2067 370 h-you
--* RestoreFromTempTable
2068 198 h-you
create table processapprovalcomment (
2069 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2070
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
2071
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
2072
  , CommentNo decimal(2,0) not null comment '?R?????g???'
2073
  , ParentNo decimal(2,0) not null comment '?e?R?????g???'
2074
  , ApproValComment varchar(300) comment '?w???E?A???R?????g'
2075
  , EntryDate datetime not null comment '?o?^???t'
2076
  , UpdateDate datetime not null comment '?X?V???t'
2077 198 h-you
  , constraint processapprovalcomment_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,CommentNo)
2078 271 h-you
) comment '???F?R?????g?f?[?^' ;
2079 198 h-you

2080 271 h-you
-- ???F????f?[?^
2081 370 h-you
--* BackupToTempTable
2082 325 h-you
drop table if exists processapprovaldetail cascade;
2083 198 h-you

2084 370 h-you
--* RestoreFromTempTable
2085 198 h-you
create table processapprovaldetail (
2086 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2087
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
2088
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
2089
  , SerialNo decimal(2,0) unsigned not null comment '?}??'
2090
  , LinkCode decimal(10,0) not null comment '?????N???'
2091
  , EntryDate datetime not null comment '?o?^???t'
2092
  , UpdateDate datetime not null comment '?X?V???t'
2093 198 h-you
  , constraint processapprovaldetail_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SerialNo)
2094 271 h-you
) comment '???F????f?[?^' ;
2095 198 h-you

2096 271 h-you
-- ?N?????}?X?^
2097 370 h-you
--* BackupToTempTable
2098 325 h-you
drop table if exists processexcutemaster cascade;
2099 198 h-you

2100 370 h-you
--* RestoreFromTempTable
2101 198 h-you
create table processexcutemaster (
2102 271 h-you
  SecCode decimal(2,0) unsigned not null comment '???????'
2103
  , ExecCode decimal(4,0) unsigned not null comment '?N?????????'
2104
  , EditFlg decimal(1,0) not null comment '??W?t???O'
2105
  , EntryDate datetime not null comment '?o?^???t'
2106
  , UpdateDate datetime not null comment '?X?V???t'
2107 198 h-you
  , constraint processexcutemaster_PKC primary key (SecCode,ExecCode)
2108 271 h-you
) comment '?N?????}?X?^' ;
2109 198 h-you

2110
create index ProcessExcuteMaster_Index1
2111
  on processexcutemaster(SecCode);
2112

2113
create index ProcessExcuteMaster_Index2
2114
  on processexcutemaster(ExecCode);
2115

2116 271 h-you
-- ???????f?[?^
2117 370 h-you
--* BackupToTempTable
2118 325 h-you
drop table if exists purchaseorder cascade;
2119 198 h-you

2120 370 h-you
--* RestoreFromTempTable
2121 198 h-you
create table purchaseorder (
2122 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2123
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
2124
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
2125
  , CreateDate date comment '?????t'
2126
  , OrderPrice decimal(12,0) not null comment '???????z'
2127
  , LastRowStringDate date not null comment '??I?s?\?????t'
2128
  , OrderSheetType decimal(1,0) not null comment '???E?{???t???O'
2129
  , PaymentTerms decimal(1,0) not null comment '?x????????'
2130
  , CashRatio decimal(4,1) not null comment '?????????i???j'
2131
  , BillPeriod decimal(4,0) not null comment '??`????'
2132
  , PrePayments decimal(1,0) not null comment '?O????'
2133
  , PrePaymentsDays decimal(3,0) not null comment '?O????????'
2134
  , PrePaymentsPrice decimal(12,0) not null comment '?O???????z'
2135
  , PartialPayment decimal(1,0) not null comment '??????'
2136
  , PartialPaymentMounth decimal(2,0) unsigned not null comment '???????????'
2137
  , PartialPaymentDay1 decimal(2,0) unsigned not null comment '???????????'
2138
  , PartialPaymentDay2 decimal(2,0) unsigned not null comment '???????x????'
2139
  , PartialPaymentPrice decimal(12,0) not null comment '?????????z'
2140
  , CompletionPayment decimal(1,0) not null comment '???n??????x??'
2141
  , CompletionPaymentDays decimal(3,0) unsigned not null comment '???n??????x??????'
2142
  , CompletionPaymentPrice decimal(12,0) not null comment '???n??????x?????z'
2143
  , LeadEngineerCode decimal(8,0) comment '??C?Z?p??R?[?h'
2144 277 h-you
  , LeadEngineerName varchar(60) comment '??C?Z?p???'
2145 271 h-you
  , SafetyOfficerCode decimal(8,0) comment '???S?????R?[?h'
2146
  , SafetyOfficerName varchar(60) comment '???S??????'
2147
  , WorkersCount decimal(3,0) unsigned comment '??????'
2148
  , PrintoutDate date not null comment '????N????'
2149
  , EntryDate datetime not null comment '?o?^???t'
2150
  , UpdateDate datetime not null comment '?X?V???t'
2151 198 h-you
  , constraint purchaseorder_PKC primary key (ConstructionCode,SeqNo)
2152 271 h-you
) comment '???????f?[?^' ;
2153 198 h-you

2154 271 h-you
-- ?????????t?f?[?^
2155 370 h-you
--* BackupToTempTable
2156 325 h-you
drop table if exists purchaseorderdate cascade;
2157 198 h-you

2158 370 h-you
--* RestoreFromTempTable
2159 198 h-you
create table purchaseorderdate (
2160 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2161
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
2162
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
2163
  , SendDate date not null comment '???????X????'
2164
  , ReturnDate date not null comment '???????????'
2165
  , ReturnCheckDate date not null comment '??????????m?F??'
2166
  , EntryDate datetime not null comment '?o?^???t'
2167
  , UpdateDate datetime not null comment '?X?V???t'
2168 198 h-you
  , constraint purchaseorderdate_PKC primary key (ConstructionCode,SeqNo)
2169 271 h-you
) comment '?????????t?f?[?^' ;
2170 198 h-you

2171 271 h-you
-- ??????????f?[?^
2172 370 h-you
--* BackupToTempTable
2173 325 h-you
drop table if exists purchaseorderdetail cascade;
2174 198 h-you

2175 370 h-you
--* RestoreFromTempTable
2176 198 h-you
create table purchaseorderdetail (
2177 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2178
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
2179
  , GroupCount decimal(1,0) not null comment '?O???[?v???'
2180
  , LineCount decimal(3,0) unsigned not null comment '?s???'
2181
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
2182
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2183
  , FirstString varchar(120) comment '?H??E?i??'
2184
  , SecondString varchar(120) comment '???e????'
2185
  , UnitCount decimal(8,2) not null comment '????'
2186
  , UnitName varchar(30) comment '?P??'
2187
  , UnitPrice decimal(10,0) not null comment '?P??'
2188
  , OrdersLinePrice decimal(12,0) comment '???z'
2189 302 h-you
  , SourceCode decimal(10,0) unsigned not null comment '???H?????'
2190
  , SourceDetailCnt decimal(4,0) unsigned not null comment '????????'
2191
  , DataTypeFlag decimal(1,0) unsigned not null comment '?f?[?^?^?C?v?t???O'
2192 357 h-you
  , StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
2193 271 h-you
  , EntryDate datetime not null comment '?o?^???t'
2194
  , UpdateDate datetime not null comment '?X?V???t'
2195 198 h-you
  , constraint purchaseorderdetail_PKC primary key (ConstructionCode,SeqNo,GroupCount,LineCount)
2196 271 h-you
) comment '??????????f?[?^' ;
2197 198 h-you

2198
create index POrderDetail_Index1
2199
  on purchaseorderdetail(SourceCode);
2200

2201 368 h-you
-- ???R?[?h??????
2202 370 h-you
--* BackupToTempTable
2203 368 h-you
drop table if exists recordkey cascade;
2204

2205 370 h-you
--* RestoreFromTempTable
2206 368 h-you
create table recordkey (
2207
  KeyNo decimal(2,0) unsigned not null comment '?L?[?R?[?h'
2208
  , RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
2209
  , EntryDate datetime not null comment '?o?^???t'
2210
  , UpdateDate datetime not null comment '?X?V???t'
2211
  , constraint recordkey_PKC primary key (KeyNo,RecordNumber)
2212
) comment '???R?[?h??????' ;
2213

2214 370 h-you
-- ?????????f?[?^
2215
--* BackupToTempTable
2216
drop table if exists reminvoicedata cascade;
2217

2218
--* RestoreFromTempTable
2219
create table reminvoicedata (
2220
  InvoiceNo decimal(9,0) not null comment '??????No'
2221
  , RemPerson decimal(8,0) not null comment '???S????R?[?h'
2222
  , RemDate date not null comment '?????t'
2223
  , RemComment varchar(300) comment '?????R'
2224
  , EntryDate datetime not null comment '?o?^?N????'
2225
  , UpdateDate datetime not null comment '?X?V?N????'
2226
  , constraint reminvoicedata_PKC primary key (InvoiceNo)
2227
) comment '?????????f?[?^' ;
2228

2229
-- ????????????f?[?^
2230
--* BackupToTempTable
2231
drop table if exists reminvoicedatadetail cascade;
2232

2233
--* RestoreFromTempTable
2234
create table reminvoicedatadetail (
2235
  InvoiceNo decimal(9,0) not null comment '??????No'
2236
  , SeqNo smallint(5) unsigned not null comment '?A??'
2237
  , RequestNo decimal(9,0) not null comment '????No'
2238
  , EntryDate datetime not null comment '?o?^?N????'
2239
  , UpdateDate datetime not null comment '?X?V?N????'
2240
  , constraint reminvoicedatadetail_PKC primary key (InvoiceNo,SeqNo)
2241
) comment '????????????f?[?^' ;
2242

2243 271 h-you
-- ?????f?[?^
2244 370 h-you
--* BackupToTempTable
2245 325 h-you
drop table if exists requestdata cascade;
2246 106 bit

2247 370 h-you
--* RestoreFromTempTable
2248 106 bit
create table requestdata (
2249 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
2250
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
2251
  , CONSTRUCTIONNAME varchar(120) not null comment '?H??????'
2252
  , CONTRACTAMOUNT decimal(10,0) not null comment '???????z'
2253
  , PAIDAMOUNT decimal(10,0) not null comment '????????z'
2254
  , REQUESTAMOUNT0 decimal(10,0) not null comment '???????z?O'
2255
  , REQUESTAMOUNT1 decimal(10,0) not null comment '???????z?P'
2256
  , REQUESTAMOUNT2 decimal(10,0) comment '???????z?Q'
2257
  , REQUESTAMOUNT3 decimal(10,0) comment '???????z?R'
2258
  , REQUESTAMOUNT4 decimal(10,0) comment '???????z?S'
2259
  , REQUESTAMOUNT5 decimal(10,0) comment '???????z?T'
2260
  , REQUESTAMOUNT6 decimal(10,0) comment '???????z?U'
2261
  , UNCLAIMEDAMOUNT decimal(10,0) not null comment '?????c???z'
2262
  , UNPAIDAMOUNT decimal(10,0) not null comment '?????????z'
2263
  , TAXAMOUNT decimal(10,0) not null comment '?????'
2264
  , NOTE varchar(120) not null comment '???l'
2265
  , ENTRYDATE datetime not null comment '?o?^?N????'
2266
  , UPDATEDATE datetime not null comment '?X?V?N????'
2267 106 bit
  , constraint requestdata_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE)
2268 271 h-you
) comment '?????f?[?^' ;
2269 106 bit

2270 271 h-you
-- ?????f?[?^????
2271 370 h-you
--* BackupToTempTable
2272 325 h-you
drop table if exists requestdatadetail cascade;
2273 106 bit

2274 370 h-you
--* RestoreFromTempTable
2275 106 bit
create table requestdatadetail (
2276 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
2277
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
2278
  , CONSTRUCTIONCODE decimal(10,0) not null comment '?H?????'
2279
  , CONSTRUCTIONKIND decimal(1,0) not null comment '?H????'
2280
  , REQUESTAMOUNT decimal(10,0) not null comment '???????z'
2281
  , TAXAMOUNT decimal(10,0) not null comment '?????'
2282
  , ENTRYDATE datetime not null comment '?o?^?N????'
2283
  , UPDATEDATE datetime not null comment '?X?V?N????'
2284 106 bit
  , constraint requestdatadetail_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE,CONSTRUCTIONCODE,CONSTRUCTIONKIND)
2285 271 h-you
) comment '?????f?[?^????' ;
2286 106 bit

2287 271 h-you
-- ?????w?b?_
2288 370 h-you
--* BackupToTempTable
2289 325 h-you
drop table if exists requesthead cascade;
2290 106 bit

2291 370 h-you
--* RestoreFromTempTable
2292 106 bit
create table requesthead (
2293 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
2294
  , REQCONSTRUCTIONCODE decimal(10,0) not null comment '?????H?????'
2295
  , ORDERNO decimal(2,0) not null comment '??t???'
2296
  , REQUESTMONTH decimal(6,0) not null comment '??????'
2297
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
2298
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
2299
  , ORDERERSNAME varchar(120) not null comment '???????'
2300
  , REQCONSTRUCTIONNAME varchar(120) not null comment '?????H??????'
2301
  , REQUESTTOTALAMOUNT decimal(10,0) not null comment '???????z???v'
2302
  , REQUESTAMOUNT decimal(10,0) not null comment '???????z'
2303
  , TAXAMOUNT decimal(10,0) not null comment '?????'
2304
  , UNPAIDAMOUNT decimal(10,0) comment '??????'
2305
  , NOTE varchar(120) comment '???l'
2306
  , ASSIGNEDFLG decimal(1,0) comment '??????t???O'
2307
  , INVOICENO decimal(9,0) not null comment '??????No'
2308
  , ENTRYDATE datetime not null comment '?o?^?N????'
2309
  , UPDATEDATE datetime not null comment '?X?V?N????'
2310 106 bit
  , constraint requesthead_PKC primary key (REQUESTNO)
2311 271 h-you
) comment '?????w?b?_' ;
2312 106 bit

2313
alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
2314

2315 271 h-you
-- ?????????t?f?[?^
2316 370 h-you
--* BackupToTempTable
2317 325 h-you
drop table if exists requestorderdate cascade;
2318 106 bit

2319 370 h-you
--* RestoreFromTempTable
2320 198 h-you
create table requestorderdate (
2321 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2322
  , InvoiceNo decimal(9,0) not null comment '??????No'
2323
  , SendDate date not null comment '???????????X????'
2324
  , EntryDate datetime not null comment '?o?^???t'
2325
  , UpdateDate datetime not null comment '?X?V???t'
2326 239 h-you
  , constraint requestorderdate_PKC primary key (ConstructionCode,InvoiceNo)
2327 271 h-you
) comment '?????????t?f?[?^' ;
2328 109 bit

2329 271 h-you
-- ????O???t?f?[?^
2330 370 h-you
--* BackupToTempTable
2331 325 h-you
drop table if exists salesgraphdata cascade;
2332 198 h-you

2333 370 h-you
--* RestoreFromTempTable
2334 198 h-you
create table salesgraphdata (
2335 271 h-you
  GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h'
2336
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
2337
  , SalesDataDays date not null comment '????N??'
2338
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
2339
  , DataName varchar(100) not null comment '?f?[?^?\??????'
2340
  , SalesAmount decimal(10,0) not null comment '????f?[?^'
2341
  , AdministrativeExpense decimal(10,0) not null comment '???E?????o??'
2342
  , GrossProfit decimal(10,0) not null comment '?e???v'
2343
  , NetIncome decimal(10,0) not null comment '?????v(???v)'
2344
  , EntryDate datetime not null comment '?o?^???t'
2345
  , UpdateDate datetime not null comment '?X?V???t'
2346 198 h-you
  , constraint salesgraphdata_PKC primary key (GraphDataCode,ConstructionPeriod,SalesDataDays)
2347 271 h-you
) comment '????O???t?f?[?^' ;
2348 198 h-you

2349
create index SalesGraphData_Idx1
2350
  on salesgraphdata(DisplayOrder);
2351

2352
create index SalesGraphData_idx2
2353
  on salesgraphdata(ConstructionPeriod);
2354

2355 271 h-you
-- ?????}?X?^
2356 370 h-you
--* BackupToTempTable
2357 325 h-you
drop table if exists securitymaster cascade;
2358 198 h-you

2359 370 h-you
--* RestoreFromTempTable
2360 198 h-you
create table securitymaster (
2361 271 h-you
  SecCode decimal(2,0) unsigned not null comment '???????'
2362
  , DisplayOrder decimal(2,0) not null comment '?\????'
2363
  , SecName varchar(60) not null comment '????????'
2364
  , SecRank decimal(1,0) not null comment '?????????N'
2365
  , SecRange decimal(1,0) not null comment '???????'
2366
  , GeneralAffairs decimal(1,0) not null comment '????????t???O'
2367
  , SelectBackColor varchar(8) not null comment '?I??w?i?F'
2368
  , EntryDate datetime not null comment '?o?^???t'
2369
  , UpdateDate datetime not null comment '?X?V???t'
2370 198 h-you
  , constraint securitymaster_PKC primary key (SecCode)
2371 271 h-you
) comment '?????}?X?^' ;
2372 198 h-you

2373
create index SecurityMaster_Index1
2374
  on securitymaster(DisplayOrder);
2375

2376
create index SecurityMaster_Index2
2377
  on securitymaster(SecRank);
2378

2379
create index SecurityMaster_Index3
2380
  on securitymaster(SecRange);
2381

2382 271 h-you
-- ???S?p?g???[???f?[?^
2383 370 h-you
--* BackupToTempTable
2384 325 h-you
drop table if exists sfpdata cascade;
2385 239 h-you

2386 370 h-you
--* RestoreFromTempTable
2387 239 h-you
create table sfpdata (
2388 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2389
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
2390
  , RequestDate datetime not null comment '?p?g???[???v??????'
2391
  , PersonCode decimal(8,0) unsigned not null comment '?\????R?[?h'
2392
  , StringValue varchar(300) comment '?R?????g'
2393
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
2394
  , EntryDate datetime not null comment '?o?^???t'
2395
  , UpdateDate datetime not null comment '?X?V???t'
2396 239 h-you
  , constraint sfpdata_PKC primary key (ConstructionCode,DataCount)
2397 271 h-you
) comment '???S?p?g???[???f?[?^' ;
2398 239 h-you

2399
create index SFPData_Index1
2400
  on sfpdata(RequestDate);
2401

2402 271 h-you
-- ???S?p?g???[??????f?[?^
2403 370 h-you
--* BackupToTempTable
2404 325 h-you
drop table if exists sfpdatadetail cascade;
2405 239 h-you

2406 370 h-you
--* RestoreFromTempTable
2407 239 h-you
create table sfpdatadetail (
2408 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
2409
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
2410
  , SeqNo decimal(2,0) unsigned not null comment '?f?[?^?}??'
2411
  , CompanyCode decimal(8,0) unsigned not null comment '??????R?[?h'
2412
  , EntryDate datetime not null comment '?o?^???t'
2413
  , UpdateDate datetime not null comment '?X?V???t'
2414 239 h-you
  , constraint sfpdatadetail_PKC primary key (ConstructionCode,DataCount,SeqNo)
2415 271 h-you
) comment '???S?p?g???[??????f?[?^' ;
2416 239 h-you

2417 271 h-you
-- ??????{?H?H??o?^?\???f?[?^
2418 370 h-you
--* BackupToTempTable
2419 325 h-you
drop table if exists subconstrjobitemregist cascade;
2420 198 h-you

2421 370 h-you
--* RestoreFromTempTable
2422 198 h-you
create table subconstrjobitemregist (
2423 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2424
  , CreateDate date not null comment '????'
2425
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
2426
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
2427
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2428
  , EntryDate datetime not null comment '?o?^???t'
2429
  , UpdateDate datetime not null comment '?X?V???t'
2430 198 h-you
  , constraint subconstrjobitemregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
2431 271 h-you
) comment '??????{?H?H??o?^?\???f?[?^' ;
2432 198 h-you

2433 271 h-you
-- ??????E?????N?o?^?\???f?[?^
2434 370 h-you
--* BackupToTempTable
2435 325 h-you
drop table if exists subconstrjoblinkregist cascade;
2436 198 h-you

2437 370 h-you
--* RestoreFromTempTable
2438 198 h-you
create table subconstrjoblinkregist (
2439 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2440
  , CreateDate date not null comment '????'
2441
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
2442
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
2443
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
2444
  , EntryDate datetime not null comment '?o?^???t'
2445
  , UpdateDate datetime not null comment '?X?V???t'
2446 198 h-you
  , constraint subconstrjoblinkregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
2447 271 h-you
) comment '??????E?????N?o?^?\???f?[?^' ;
2448 198 h-you

2449 271 h-you
-- ??????o?^?\???f?[?^
2450 370 h-you
--* BackupToTempTable
2451 325 h-you
drop table if exists subconstrregist cascade;
2452 198 h-you

2453 370 h-you
--* RestoreFromTempTable
2454 198 h-you
create table subconstrregist (
2455 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2456
  , CreateDate date not null comment '????'
2457
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
2458
  , DataMode decimal(1,0) comment '?f?[?^??'
2459
  , SourceCode decimal(8,0) not null comment '??????R?[?h'
2460
  , PetitionPeriod decimal(4,0) unsigned not null comment '?\???N?x'
2461
  , CorporateStatusName varchar(40) comment '?@?l?i????'
2462
  , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u'
2463
  , CompanyName varchar(100) not null comment '???????'
2464
  , CEOPositionName varchar(60) comment '??\???E??'
2465
  , CEOName varchar(60) comment '??\?????'
2466
  , ContactPersonName varchar(60) comment '?S???????'
2467
  , ZipCode varchar(8) comment '?X????'
2468
  , Address1 varchar(60) comment '?Z???P'
2469
  , Address2 varchar(60) comment '?Z??2'
2470
  , Address3 varchar(60) comment '?Z??3'
2471
  , CellPhoneNumber varchar(13) comment '?g??d?b???'
2472
  , MailAddress varchar(257) comment '???[???A?h???X'
2473
  , PhoneNumber varchar(13) comment '?d?b???'
2474
  , FaxNumber varchar(13) comment 'FAX???'
2475
  , JapaneseSyllabary varchar(2) comment '50?????'
2476
  , StartDate date not null comment '????J?n?N????'
2477
  , Note varchar(300) comment '???l'
2478
  , labourKind decimal(1,0) not null comment '?x???????E????'
2479
  , OrderDate date comment '?\????'
2480
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
2481
  , EntryDate datetime not null comment '?o?^???t'
2482
  , UpdateDate datetime not null comment '?X?V???t'
2483 198 h-you
  , constraint subconstrregist_PKC primary key (PersonCode,CreateDate,SeqNo)
2484 271 h-you
) comment '??????o?^?\???f?[?^' ;
2485 198 h-you

2486 271 h-you
-- ??????H??}?X?^
2487 370 h-you
--* BackupToTempTable
2488 325 h-you
drop table if exists subcontractoritemmaster cascade;
2489 198 h-you

2490 370 h-you
--* RestoreFromTempTable
2491 198 h-you
create table subcontractoritemmaster (
2492 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2493
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2494
  , ItemName varchar(120) not null comment '?H????'
2495
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2496
  , EntryDate datetime not null comment '?o?^???t'
2497
  , UpdateDate datetime not null comment '?X?V???t'
2498 198 h-you
  , constraint subcontractoritemmaster_PKC primary key (ItemCode)
2499 271 h-you
) comment '??????H??}?X?^' ;
2500 198 h-you

2501 271 h-you
-- ??????E??}?X?^
2502 370 h-you
--* BackupToTempTable
2503 325 h-you
drop table if exists subcontractorjobcategory cascade;
2504 198 h-you

2505 370 h-you
--* RestoreFromTempTable
2506 198 h-you
create table subcontractorjobcategory (
2507 271 h-you
  JobCategoryCode decimal(5,0) not null comment '?E??L?['
2508
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2509
  , JobCategoryName varchar(120) not null comment '?E????'
2510
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2511
  , EntryDate datetime not null comment '?o?^???t'
2512
  , UpdateDate datetime not null comment '?X?V???t'
2513 198 h-you
  , constraint subcontractorjobcategory_PKC primary key (JobCategoryCode)
2514 271 h-you
) comment '??????E??}?X?^' ;
2515 198 h-you

2516 271 h-you
-- ??????{?H?H??f?[?^
2517 370 h-you
--* BackupToTempTable
2518 325 h-you
drop table if exists subcontractorjobitem cascade;
2519 198 h-you

2520 370 h-you
--* RestoreFromTempTable
2521 198 h-you
create table subcontractorjobitem (
2522 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2523
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2524
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2525
  , EntryDate datetime not null comment '?o?^???t'
2526
  , UpdateDate datetime not null comment '?X?V???t'
2527 198 h-you
  , constraint subcontractorjobitem_PKC primary key (CompanyCode,ItemCode)
2528 271 h-you
) comment '??????{?H?H??f?[?^' ;
2529 198 h-you

2530
create index SubContractorJobItem_Index1
2531
  on subcontractorjobitem(CompanyCode);
2532

2533
create index SubContractorJobItem_Index2
2534
  on subcontractorjobitem(ItemCode);
2535

2536 271 h-you
-- ??????E?????N?}?X?^
2537 370 h-you
--* BackupToTempTable
2538 325 h-you
drop table if exists subcontractorjoblink cascade;
2539 198 h-you

2540 370 h-you
--* RestoreFromTempTable
2541 198 h-you
create table subcontractorjoblink (
2542 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2543
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
2544
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2545
  , EntryDate datetime not null comment '?o?^???t'
2546
  , UpdateDate datetime not null comment '?X?V???t'
2547 198 h-you
  , constraint subcontractorjoblink_PKC primary key (CompanyCode,JobCategoryCode)
2548 271 h-you
) comment '??????E?????N?}?X?^' ;
2549 198 h-you

2550
create index SubContractorJobLink_Index1
2551
  on subcontractorjoblink(CompanyCode);
2552

2553
create index SubContractorJobLink_Index2
2554
  on subcontractorjoblink(JobCategoryCode);
2555

2556 271 h-you
-- ??????}?X?^
2557 370 h-you
--* BackupToTempTable
2558 325 h-you
drop table if exists subcontractormaster cascade;
2559 198 h-you

2560 370 h-you
--* RestoreFromTempTable
2561 198 h-you
create table subcontractormaster (
2562 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2563
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
2564
  , CorporateStatusName varchar(40) comment '?@?l?i????'
2565
  , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u'
2566
  , CompanyName varchar(100) not null comment '???????'
2567
  , CEOPositionName varchar(60) comment '??\???E??'
2568
  , CEOName varchar(60) comment '??\?????'
2569
  , ContactPersonName varchar(60) comment '?S???????'
2570
  , ZipCode varchar(8) comment '?X????'
2571
  , Address1 varchar(60) comment '?Z???P'
2572
  , Address2 varchar(60) comment '?Z??2'
2573
  , Address3 varchar(60) comment '?Z??3'
2574
  , CellPhoneNumber varchar(13) comment '?g??d?b???'
2575
  , MailAddress varchar(257) comment '???[???A?h???X'
2576
  , PhoneNumber varchar(13) comment '?d?b???'
2577
  , FaxNumber varchar(13) comment 'FAX???'
2578
  , JapaneseSyllabary varchar(2) comment '50?????'
2579
  , StartDate date not null comment '????J?n?N????'
2580
  , Note varchar(300) comment '???l'
2581
  , labourKind decimal(1,0) not null comment '?x???????E????'
2582
  , DeleteFlg decimal(1,0) default '0' not null comment '???t???O'
2583
  , EntryDate datetime not null comment '?o?^???t'
2584
  , UpdateDate datetime not null comment '?X?V???t'
2585 198 h-you
  , constraint subcontractormaster_PKC primary key (CompanyCode)
2586 271 h-you
) comment '??????}?X?^' ;
2587 198 h-you

2588
create index SubContractorMaster_Index1
2589
  on subcontractormaster(JapaneseSyllabary);
2590

2591 271 h-you
-- ?d????}?X?^
2592 370 h-you
--* BackupToTempTable
2593 325 h-you
drop table if exists suppliersmaster cascade;
2594 198 h-you

2595 370 h-you
--* RestoreFromTempTable
2596 198 h-you
create table suppliersmaster (
2597 271 h-you
  SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h'
2598
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2599
  , SuppliersName1 varchar(60) not null comment '?d????1'
2600
  , SuppliersName2 varchar(60) comment '?d?????Q'
2601
  , ZipCode varchar(8) comment '?X????'
2602
  , Address1 varchar(60) comment '?Z???P'
2603
  , Address2 varchar(60) comment '?Z??2'
2604
  , Address3 varchar(60) comment '?Z??3'
2605
  , PhoneNumber varchar(13) comment '?d?b???'
2606
  , FaxNumber varchar(13) comment 'FAX???'
2607
  , Note varchar(300) comment '???l'
2608
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2609
  , EntryDate datetime not null comment '?o?^???t'
2610
  , UpdateDate datetime not null comment '?X?V???t'
2611 198 h-you
  , constraint suppliersmaster_PKC primary key (SuppliersCode)
2612 271 h-you
) comment '?d????}?X?^' ;
2613 198 h-you

2614 271 h-you
-- ?V?X?e???N???m?F?f?[?^
2615 370 h-you
--* BackupToTempTable
2616 325 h-you
drop table if exists systemexecute cascade;
2617 198 h-you

2618 370 h-you
--* RestoreFromTempTable
2619 198 h-you
create table systemexecute (
2620 271 h-you
  PrimaryCode tinyint(4) not null comment '?L?[????'
2621
  , TargetDate date not null comment '?N?????t'
2622
  , SystemVersion int(11) not null comment '?{??E????o?[?W????'
2623
  , UpDateCopyVersion int(11) not null comment '?R?s?[?o?[?W????'
2624
  , EntryDate datetime not null comment '?o?^???t'
2625
  , UpdateDate datetime not null comment '?X?V???t'
2626 198 h-you
  , constraint systemexecute_PKC primary key (PrimaryCode)
2627 271 h-you
) comment '?V?X?e???N???m?F?f?[?^' ;
2628 198 h-you

2629 271 h-you
-- ????}?X?^
2630 370 h-you
--* BackupToTempTable
2631 325 h-you
drop table if exists systemmaster cascade;
2632 198 h-you

2633 370 h-you
--* RestoreFromTempTable
2634 198 h-you
create table systemmaster (
2635 271 h-you
  SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
2636
  , CompanyName1 varchar(60) not null comment '?????P'
2637
  , CompanyName2 varchar(60) comment '?????Q'
2638
  , CEOName varchar(60) not null comment '??\?????'
2639
  , CEOPositionName varchar(60) comment '??\???E??'
2640
  , ZipCode varchar(8) not null comment '?X????'
2641
  , Address1 varchar(60) not null comment '?Z???P'
2642
  , Address2 varchar(60) comment '?Z??2'
2643
  , Address3 varchar(60) comment '?Z??3'
2644
  , PhoneNumber varchar(13) not null comment '?d?b???'
2645
  , FaxNumber varchar(13) comment 'FAX???'
2646
  , HomePageURL varchar(120) comment '?z?[???y?[?WURL'
2647
  , ConsumptionTax decimal(4,2) not null comment '?????'
2648
  , CooperationRate decimal(4,2) not null comment '???????'
2649
  , StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
2650
  , FuelPrice decimal(5,2) not null comment '?R???L???P??'
2651
  , AreaDistance decimal(5,2) not null comment '????u????????'
2652
  , ExcelSavePath varchar(120) comment 'Excel????p?X'
2653
  , BusinessPeriod smallint(6) not null comment '????c?????'
2654 324 h-you
  , ConstrYear smallint(6) not null comment '????H???N?x'
2655
  , BusinessBeginDate datetime not null comment '?c????????'
2656
  , ConstrBeginDate datetime not null comment '?H???N?x?????'
2657
  , BusinessCompDate datetime not null comment '?c?????????'
2658
  , ConstrCompDate datetime not null comment '?H???N?x??????'
2659 271 h-you
  , ConstructionNoBase decimal(1,0) not null comment '?H????????l'
2660
  , SloganString1 varchar(100) comment '?W??1'
2661
  , SloganString2 varchar(100) comment '?W??2'
2662
  , SloganString3 varchar(100) comment '?W??3'
2663
  , EntryDate datetime not null comment '?o?^???t'
2664
  , UpdateDate datetime not null comment '?X?V???t'
2665 198 h-you
  , constraint systemmaster_PKC primary key (SystemCode)
2666 271 h-you
) comment '????}?X?^' ;
2667 198 h-you

2668 271 h-you
-- ?????}?X?^
2669 370 h-you
--* BackupToTempTable
2670 325 h-you
drop table if exists termmaster cascade;
2671 198 h-you

2672 370 h-you
--* RestoreFromTempTable
2673 198 h-you
create table termmaster (
2674 271 h-you
  ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
2675
  , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???'
2676
  , SeqNo decimal(2,0) not null comment '?}??'
2677
  , DisplayOrder decimal(2,0) not null comment '?\????'
2678
  , CheckSchdule decimal(1,0) not null comment '?`?F?b?N?^?C?~???O'
2679
  , TermDays decimal(3,0) not null comment '?o???'
2680
  , SendTitile varchar(100) comment '?^?C?g??'
2681
  , SendMessage varchar(100) comment '???b?Z?[?W'
2682
  , BackColor varchar(8) comment '?w?i?F'
2683
  , ForeColor varchar(8) comment '?????F'
2684
  , EntryDate datetime not null comment '?o?^???t'
2685
  , UpdateDate datetime not null comment '?X?V???t'
2686 198 h-you
  , constraint termmaster_PKC primary key (ConstructionStatusFlg,FieldNo,SeqNo)
2687 271 h-you
) comment '?????}?X?^' ;
2688 198 h-you

2689
create index TermMaster_Index1
2690
  on termmaster(DisplayOrder);
2691

2692 271 h-you
-- ?o?????f?[?^
2693 370 h-you
--* BackupToTempTable
2694 325 h-you
drop table if exists tranceportdailydata cascade;
2695 198 h-you

2696 370 h-you
--* RestoreFromTempTable
2697 198 h-you
create table tranceportdailydata (
2698 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
2699
  , AttendanceDate date not null comment '???????'
2700
  , StartDistance decimal(7,1) not null comment '?????o???L????'
2701
  , ComplateDistance decimal(7,1) not null comment '?????I???L????'
2702
  , TotalDistance decimal(6,1) not null comment '???????v?L????'
2703
  , OfficeGoFlg decimal(1,0) not null comment '???????o??t???O'
2704
  , OfficeOutFlg decimal(1,0) not null comment '???????A??t???O'
2705
  , TrancePayGoFlg decimal(1,0) not null comment '?L?????o??t???O'
2706
  , TrancePayOutFlg decimal(1,0) not null comment '?L?????A??t???O'
2707
  , WareHouseFlg decimal(1,0) not null comment '????u??t???O'
2708
  , EntryDate datetime not null comment '?o?^???t'
2709
  , UpdateDate datetime not null comment '?X?V???t'
2710 198 h-you
  , constraint tranceportdailydata_PKC primary key (PersonCode,AttendanceDate)
2711 271 h-you
) comment '?o?????f?[?^' ;
2712 198 h-you

2713
create index TranceportDailyData_Index1
2714
  on tranceportdailydata(AttendanceDate);
2715

2716 271 h-you
-- ?H?????o???}?X?^
2717 370 h-you
--* BackupToTempTable
2718 325 h-you
drop table if exists typeexpensesmaster cascade;
2719 198 h-you

2720 370 h-you
--* RestoreFromTempTable
2721 198 h-you
create table typeexpensesmaster (
2722 271 h-you
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
2723
  , ExpensesPeriod smallint(6) not null comment '?????'
2724
  , NameCode decimal(5,0) unsigned not null comment '?o????R?[?h'
2725
  , ExpensesRaito decimal(4,2) not null comment '?o??'
2726
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2727
  , EntryDate datetime not null comment '?o?^???t'
2728
  , UpdateDate datetime not null comment '?X?V???t'
2729 198 h-you
  , constraint typeexpensesmaster_PKC primary key (TypeCode,ExpensesPeriod,NameCode)
2730 271 h-you
) comment '?H?????o???}?X?^' ;
2731 198 h-you

2732 271 h-you
-- ?P??}?X?^
2733 370 h-you
--* BackupToTempTable
2734 325 h-you
drop table if exists unitmaster cascade;
2735 198 h-you

2736 370 h-you
--* RestoreFromTempTable
2737 198 h-you
create table unitmaster (
2738 271 h-you
  UnitKey decimal(5,0) unsigned not null comment '?P??L?['
2739
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2740
  , UnitName varchar(30) not null comment '?P?????'
2741
  , EntryDate datetime not null comment '?o?^???t'
2742
  , UpdateDate datetime not null comment '?X?V???t'
2743 198 h-you
  , constraint unitmaster_PKC primary key (UnitKey)
2744 271 h-you
) comment '?P??}?X?^' ;
2745 198 h-you

2746
create index UnitMaster_Index1
2747
  on unitmaster(DisplayOrder);
2748

2749 271 h-you
-- ????}?X?^
2750 370 h-you
--* BackupToTempTable
2751 325 h-you
drop table if exists vehiclemaster cascade;
2752 198 h-you

2753 370 h-you
--* RestoreFromTempTable
2754 198 h-you
create table vehiclemaster (
2755 271 h-you
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2756
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2757
  , VehicleName varchar(100) not null comment '???????'
2758
  , RegistrationNumber varchar(30) comment '?o?^???'
2759
  , IdentificationNumber varchar(30) comment '?????'
2760
  , ModelCode varchar(30) comment '?^??'
2761
  , DepartmentCode decimal(5,0) unsigned not null comment '???????'
2762
  , VehicleScheduleFlg decimal(1,0) not null comment '????\??\???t???O'
2763
  , PurchaseDate date comment '?w????'
2764
  , PurchaseName varchar(30) comment '?w????'
2765
  , PurchaseContactPersons varchar(30) comment '?w????S????'
2766
  , PurchasePhone varchar(13) comment '?w????d?b???'
2767
  , LeaseDate date comment '???[?X?J?n??'
2768
  , LeaseDestination varchar(30) comment '???[?X??'
2769
  , LeaseContactPersons varchar(30) comment '???[?X??S????'
2770
  , LeasePhone varchar(13) comment '???[?X??d?b???'
2771
  , InsuranceCompany varchar(30) comment '?C???????'
2772
  , InsuranceContactPersons varchar(30) comment '?C???????S????'
2773
  , InsurancePhone varchar(13) comment '?C???????d?b???'
2774
  , Note varchar(300) comment '???l'
2775
  , EntryDate datetime comment '?o?^???t'
2776
  , UpdateDate datetime comment '?X?V???t'
2777 198 h-you
  , constraint vehiclemaster_PKC primary key (VehicleCode)
2778 271 h-you
) comment '????}?X?^' ;
2779 198 h-you

2780 271 h-you
-- ????L?^?f?[?^
2781 370 h-you
--* BackupToTempTable
2782 325 h-you
drop table if exists vehiclerecorddata cascade;
2783 198 h-you

2784 370 h-you
--* RestoreFromTempTable
2785 198 h-you
create table vehiclerecorddata (
2786 271 h-you
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2787
  , DivisionCode decimal(2,0) unsigned not null comment '?f?[?^??'
2788
  , SeqNo decimal(2,0) not null comment '?}??'
2789
  , RecordDate date comment '???n??'
2790
  , Mileage mediumint(9) comment '???s????'
2791
  , Content varchar(100) comment '???e'
2792
  , PaymentCost decimal(10,0) comment '??p'
2793
  , EntryDate datetime not null comment '?o?^???t'
2794
  , UpdateDate datetime not null comment '?X?V???t'
2795 198 h-you
  , constraint vehiclerecorddata_PKC primary key (VehicleCode,DivisionCode,SeqNo)
2796 271 h-you
) comment '????L?^?f?[?^' ;
2797 198 h-you

2798 271 h-you
-- ????\??f?[?^
2799 370 h-you
--* BackupToTempTable
2800 325 h-you
drop table if exists vehiclescheduledata cascade;
2801 198 h-you

2802 370 h-you
--* RestoreFromTempTable
2803 198 h-you
create table vehiclescheduledata (
2804 271 h-you
  TargetDate date not null comment '????'
2805
  , VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2806
  , MorningAfternoon decimal(1,0) not null comment '??O?E???'
2807
  , PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2808
  , TargetYear year(4) not null comment '?Y???N'
2809
  , TargetMonth tinyint(3) unsigned not null comment '?Y????'
2810
  , TargetDay year(4) not null comment '?Y????'
2811
  , EntryDate datetime not null comment '?o?^???t'
2812
  , UpdateDate datetime not null comment '?X?V???t'
2813 198 h-you
  , constraint vehiclescheduledata_PKC primary key (TargetDate,VehicleCode,MorningAfternoon)
2814 271 h-you
) comment '????\??f?[?^' ;
2815 198 h-you

2816
create index VehicleScheduleData_Index1
2817
  on vehiclescheduledata(TargetYear);
2818

2819
create index VehicleScheduleData_Index2
2820
  on vehiclescheduledata(TargetMonth);
2821

2822
create index VehicleScheduleData_Index3
2823
  on vehiclescheduledata(TargetDay);
2824

2825 271 h-you
-- ?N?}?X?^
2826 370 h-you
--* BackupToTempTable
2827 325 h-you
drop table if exists yearmaster cascade;
2828 198 h-you

2829 370 h-you
--* RestoreFromTempTable
2830 198 h-you
create table yearmaster (
2831 271 h-you
  years smallint(6) not null comment '?N'
2832 338 h-you
  , constraint yearmaster_PKC primary key (years)
2833 271 h-you
) comment '?N?}?X?^' ;