プロジェクト

全般

プロフィール

統計
| リビジョン:

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

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

1 198 h-you
-- Project Name : noname
2 276 h-you
-- Date/Time    : 2017/09/27 8:32:51
3 198 h-you
-- Author       : Horiuchi
4
-- RDBMS Type   : MySQL
5
-- Application  : A5:SQL Mk-2
6 84 h-you
7 271 h-you
-- ?S????s???\??f?[?^
8 198 h-you
drop table if exists actionscheduledata cascade;
9 84 h-you
10 198 h-you
create table actionscheduledata (
11 271 h-you
  TargetDate date not null comment '????'
12
  , PersonCode decimal(8,0) not null comment '?S????R?[?h'
13
  , ActionSchedule varchar(30) comment '?s???\??'
14
  , TargetYear year(4) not null comment '?Y???N'
15
  , TargetMonth year(4) not null comment '?Y????'
16
  , TargetDay year(4) not null comment '?Y????'
17
  , EntryDate datetime not null comment '?o?^???t'
18
  , UpdateDate datetime not null comment '?X?V???t'
19 198 h-you
  , constraint actionscheduledata_PKC primary key (TargetDate,PersonCode)
20 271 h-you
) comment '?S????s???\??f?[?^' ;
21 84 h-you
22 198 h-you
create index ActionScheduleData_Index1
23
  on actionscheduledata(TargetYear);
24 84 h-you
25 198 h-you
create index ActionScheduleData_Index2
26
  on actionscheduledata(TargetMonth);
27 84 h-you
28 198 h-you
create index ActionScheduleData_Index3
29
  on actionscheduledata(TargetDay);
30 84 h-you
31 271 h-you
-- ???F?o?H?}?X?^
32 198 h-you
drop table if exists approvalmaster cascade;
33 84 h-you
34 198 h-you
create table approvalmaster (
35 271 h-you
  ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
36
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
37
  , SeqNo decimal(2,0) not null comment '?}??'
38
  , DisplayOrder decimal(2,0) not null comment '?\????'
39
  , ApprovalPerson decimal(8,0) unsigned not null comment '???F??R?[?h'
40
  , ApprovalAuthority decimal(1,0) not null comment '???F??????'
41
  , EntryDate datetime not null comment '?o?^???t'
42
  , UpdateDate datetime not null comment '?X?V???t'
43 198 h-you
  , constraint approvalmaster_PKC primary key (ApprovalCode,DepartmentCode,SeqNo)
44 271 h-you
) comment '???F?o?H?}?X?^' ;
45 84 h-you
46 271 h-you
-- ?o?????f?[?^
47 198 h-you
drop table if exists attendancedailydata cascade;
48 84 h-you
49 198 h-you
create table attendancedailydata (
50 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
51
  , AttendanceDate date not null comment '???????'
52
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
53 276 h-you
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
54 271 h-you
  , ActionResult varchar(30) not null comment '?s??????'
55
  , StartTime datetime comment '?J?n????'
56
  , CompTime datetime comment '?I??????'
57
  , DayTimes decimal(4,1) not null comment '????????v????'
58
  , WorkingComment varchar(120) comment '?R?????g'
59
  , NightFlg decimal(1,0) not null comment '?????t???O'
60
  , EntryDate datetime not null comment '?o?^???t'
61
  , UpdateDate datetime not null comment '?X?V???t'
62 198 h-you
  , constraint attendancedailydata_PKC primary key (PersonCode,AttendanceDate,SeqNo)
63 271 h-you
) comment '?o?????f?[?^' ;
64 84 h-you
65 271 h-you
-- ?o?????f?[?^
66 198 h-you
drop table if exists attendancedata cascade;
67 84 h-you
68 198 h-you
create table attendancedata (
69 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
70
  , AttendanceMonth date not null comment '?o?????N??'
71
  , LastDays decimal(2,0) unsigned not null comment '??????I??'
72
  , AttendDayCount decimal(2,0) unsigned not null comment '?o?????'
73
  , TotalOverTimes decimal(4,1) not null comment '?c??????'
74
  , OrderDate date not null comment '?\????'
75
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
76
  , EntryDate datetime not null comment '?o?^???t'
77
  , UpdateDate datetime not null comment '?X?V???t'
78 198 h-you
  , constraint attendancedata_PKC primary key (PersonCode,AttendanceMonth)
79 271 h-you
) comment '?o?????f?[?^' ;
80 84 h-you
81 271 h-you
-- ??s?c????}?X?^
82 198 h-you
drop table if exists bankbusinessdaymaster cascade;
83 84 h-you
84 198 h-you
create table bankbusinessdaymaster (
85 271 h-you
  YEARMONTH decimal(6,0) default '0' not null comment '?N??'
86
  , BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???'
87
  , NOTE varchar(120) comment '???l'
88
  , DELETEFLG decimal(1,0) comment '???t???O'
89
  , ENTRYDATE datetime comment '?o?^?N????'
90
  , UPDATEDATE datetime comment '?X?V?N????'
91 198 h-you
  , constraint bankbusinessdaymaster_PKC primary key (YEARMONTH,BANKBUSINESSDAY)
92 271 h-you
) comment '??s?c????}?X?^' ;
93 84 h-you
94 271 h-you
-- ???????f?[?^
95 198 h-you
drop table if exists billingdata cascade;
96 84 h-you
97 198 h-you
create table billingdata (
98 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
99
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
100
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
101
  , BILLPRICE decimal(10,0) comment '???????z'
102
  , ENTRYDATE datetime comment '?o?^?N????'
103
  , UPDATEDATE datetime comment '?X?V?N????'
104 198 h-you
  , constraint billingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO)
105 271 h-you
) comment '???????f?[?^' ;
106 198 h-you
107 271 h-you
-- ??????????f?[?^
108 198 h-you
drop table if exists billingdatadetail cascade;
109
110
create table billingdatadetail (
111 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
112
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
113
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
114
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
115
  , CONSTRUCTIONCODE decimal(10,0) comment '?H?????'
116
  , CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '?s???'
117
  , CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '????'
118
  , FIELDNAME varchar(120) comment '????'
119
  , BILLPRICE decimal(10,0) comment '???????z'
120
  , HIGHWPRICE decimal(10,0) comment '??????'
121
  , HARDWPRICE decimal(10,0) comment '??????'
122
  , INDSWASTETAX decimal(10,0) comment '?Y?p??'
123
  , NOTE varchar(120) comment '???l'
124
  , ENTRYDATE datetime comment '?o?^?N????'
125
  , UPDATEDATE datetime comment '?X?V?N????'
126 198 h-you
  , constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
127 271 h-you
) comment '??????????f?[?^' ;
128 198 h-you
129 271 h-you
-- ???????x???T?}???[?f?[?^
130 198 h-you
drop table if exists billingpaymentsummary cascade;
131
132
create table billingpaymentsummary (
133 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
134
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
135
  , CHARGEPAYMENTKIND decimal(1,0) default '0' not null comment '?????x????'
136
  , PAYDAY date comment '?x????'
137
  , BILLPRICESTOTAL decimal(10,0) comment '???????z???v'
138
  , CONSUMPTIONTAXRATE decimal(6,3) comment '??????'
139
  , CONSUMPTIONTAXPRICE decimal(10,0) comment '?????z'
140
  , HIGHWPRICESTOTAL decimal(10,0) comment '???????v'
141
  , HARDWPRICESTOTAL decimal(10,0) comment '???????v'
142
  , INDSWASTETAXSTOTAL decimal(10,0) comment '?Y?p????v'
143
  , CNSTRPRICERATE decimal(6,3) comment '???????'
144
  , CNSTRPRICESTOTAL decimal(10,0) comment '????????v'
145
  , BILLINGPRICETOTAL decimal(10,0) comment '???????z???v'
146
  , ENTRYDATE datetime comment '?o?^?N????'
147
  , UPDATEDATE datetime comment '?X?V?N????'
148 198 h-you
  , constraint billingpaymentsummary_PKC primary key (COMPANYCODE,TARGETDATE,CHARGEPAYMENTKIND)
149 271 h-you
) comment '???????x???T?}???[?f?[?^' ;
150 198 h-you
151 271 h-you
-- ?H???????f?[?^?y???p?z
152 198 h-you
drop table if exists bk_constructionledger cascade;
153 84 h-you
154 198 h-you
create table bk_constructionledger (
155 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
156
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
157
  , CreatorCode decimal(8,0) comment '????R?[?h'
158
  , CreatorName varchar(60) comment '?????'
159
  , CreateDate date not null comment '????'
160
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
161
  , ConstructionStart date not null comment '?_??H???J?n'
162
  , ConstructionEnd date not null comment '?_??H??????'
163
  , OrdersDecisionPrice decimal(14,0) not null comment '??????????z'
164
  , CompanyExpenses decimal(10,0) not null comment '???o???v'
165
  , DepartmentExpenses decimal(10,0) not null comment '?????o???v'
166
  , SalesExpenses decimal(10,0) not null comment '?c??o???v'
167
  , TotalPayment decimal(10,0) not null comment '???x???z'
168
  , GrossProfit decimal(10,0) not null comment '?e??'
169
  , Allowance decimal(10,0) not null comment '???^'
170
  , NetProfit decimal(10,0) not null comment '?????v'
171
  , ComplateFlg decimal(1,0) not null comment '????????t???O'
172
  , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O'
173
  , EntryDate datetime not null comment '?o?^???t'
174
  , UpdateDate datetime not null comment '?X?V???t'
175 198 h-you
  , constraint bk_constructionledger_PKC primary key (ConstructionCode)
176 271 h-you
) comment '?H???????f?[?^?y???p?z' ;
177 84 h-you
178 271 h-you
-- ?H??????????f?[?^?y???p?z
179 198 h-you
drop table if exists bk_constructionledgerdetail cascade;
180 84 h-you
181 198 h-you
create table bk_constructionledgerdetail (
182 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
183
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
184
  , LineCount decimal(5,0) unsigned not null comment '?s???'
185
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
186
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
187
  , FirstString varchar(120) comment '???????'
188
  , SecondString varchar(120) comment '?H?????e'
189
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
190
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
191
  , CompanyName varchar(120) comment '?????????'
192
  , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z'
193
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
194
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
195
  , PaymentBurden decimal(12,0) not null comment '?x????U?z'
196
  , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O'
197
  , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O'
198
  , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O'
199
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
200
  , SalaryDays decimal(4,0) not null comment '???^?U??????'
201
  , OperatingFlg decimal(1,0) not null comment '?S?????t???O'
202
  , SourceCode decimal(10,0) unsigned not null comment '???H?????'
203
  , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??'
204
  , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^'
205
  , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O'
206
  , EntryDate datetime not null comment '?o?^???t'
207
  , UpdateDate datetime not null comment '?X?V???t'
208 198 h-you
  , constraint bk_constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
209 271 h-you
) comment '?H??????????f?[?^?y???p?z' ;
210 84 h-you
211 271 h-you
-- ?H?????????s?f?[?^?y???p?z
212 198 h-you
drop table if exists bk_constructionledgerexcute cascade;
213 84 h-you
214 198 h-you
create table bk_constructionledgerexcute (
215 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
216
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
217
  , LineCount decimal(5,0) unsigned not null comment '?s???'
218
  , ColumnCount decimal(3,0) not null comment '????'
219
  , PaymentAmount decimal(12,0) not null comment '?x?????z'
220
  , TargetMonth date not null comment '???N??'
221
  , EntryDate datetime not null comment '?o?^???t'
222
  , UpdateDate datetime not null comment '?X?V???t'
223 198 h-you
  , constraint bk_constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount)
224 271 h-you
) comment '?H?????????s?f?[?^?y???p?z' ;
225 84 h-you
226 271 h-you
-- ??Z????f?[?^?y???p?z
227 198 h-you
drop table if exists bk_estimatedata cascade;
228 84 h-you
229 198 h-you
create table bk_estimatedata (
230 271 h-you
  SaveDate datetime not null comment '?????t'
231
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
232
  , LineCount decimal(3,0) unsigned not null comment '?s???'
233
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
234
  , FixedItemCode varchar(1) comment '?????L?['
235
  , ItemName varchar(120) comment '??????'
236
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
237
  , PriceValue decimal(14,0) not null comment '???z'
238
  , note varchar(60) comment '???l'
239
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
240
  , InputFlg decimal(1,0) not null comment '????t???O'
241
  , EntryDate datetime not null comment '?o?^???t'
242
  , UpdateDate datetime not null comment '?X?V???t'
243 198 h-you
  , constraint bk_estimatedata_PKC primary key (SaveDate,ConstructionCode,LineCount)
244 271 h-you
) comment '??Z????f?[?^?y???p?z' ;
245 84 h-you
246 271 h-you
-- ??Z????y?[?W?f?[?^?y???p?z
247 198 h-you
drop table if exists bk_estimatedatabody cascade;
248 84 h-you
249 198 h-you
create table bk_estimatedatabody (
250 271 h-you
  SaveDate datetime not null comment '?????t'
251
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
252
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
253
  , Category decimal(1,0) not null comment '?y?[?W??'
254
  , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?['
255
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
256
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
257
  , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?['
258
  , PageTitle varchar(120) not null comment '?y?[?W?\????'
259
  , DetailLineCount decimal(3,0) unsigned not null comment '????s???'
260
  , EntryDate datetime not null comment '?o?^???t'
261
  , UpdateDate datetime not null comment '?X?V???t'
262 198 h-you
  , constraint bk_estimatedatabody_PKC primary key (SaveDate,ConstructionCode,PageCount)
263 271 h-you
) comment '??Z????y?[?W?f?[?^?y???p?z' ;
264 84 h-you
265 271 h-you
-- ??Z????f?[?^????y???p?z
266 198 h-you
drop table if exists bk_estimatedatadetail cascade;
267 84 h-you
268 198 h-you
create table bk_estimatedatadetail (
269 271 h-you
  SaveDate datetime not null comment '?????t'
270
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
271
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
272
  , LineCount decimal(3,0) unsigned not null comment '?s???'
273
  , DataType decimal(1,0) not null comment '?f?[?^???'
274
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
275
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
276
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
277
  , ItemName varchar(120) comment '??????'
278
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
279
  , Unitcount decimal(8,2) not null comment '????'
280
  , UnitName varchar(30) comment '?P?????'
281
  , UnitPrice decimal(9,2) not null comment '?P??'
282
  , LineTotal decimal(12,0) not null comment '???z'
283
  , note varchar(60) comment '???l'
284
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
285
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
286
  , InputFlg decimal(1,0) comment '????t???O'
287
  , EntryDate datetime not null comment '?o?^???t'
288
  , UpdateDate datetime not null comment '?X?V???t'
289 198 h-you
  , constraint bk_estimatedatadetail_PKC primary key (SaveDate,ConstructionCode,PageCount,LineCount)
290 271 h-you
) comment '??Z????f?[?^????y???p?z' ;
291 84 h-you
292 271 h-you
-- ?@?l?i?}?X?^
293 198 h-you
drop table if exists businesstypemaster cascade;
294 84 h-you
295 198 h-you
create table businesstypemaster (
296 271 h-you
  BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h'
297
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
298
  , BusinessTypeName varchar(100) not null comment '???'
299
  , EntryDate datetime not null comment '?o?^???t'
300
  , UpdateDate datetime not null comment '?X?V???t'
301 198 h-you
  , constraint businesstypemaster_PKC primary key (BusinessTypeCode)
302 271 h-you
) comment '?@?l?i?}?X?^' ;
303 198 h-you
304
create index BusinessTypeMaster_Index1
305
  on businesstypemaster(DisplayOrder);
306
307 271 h-you
-- ????????}?X?^
308 198 h-you
drop table if exists commoncostlarge cascade;
309 84 h-you
310 198 h-you
create table commoncostlarge (
311 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
312
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
313
  , LargeName varchar(50) not null comment '???????'
314
  , CommentText varchar(120) comment '????????'
315
  , DeleteFlg decimal(1,0) not null comment '???t???O'
316
  , EntryDate datetime not null comment '?o?^???t'
317
  , UpdateDate datetime not null comment '?X?V???t'
318 198 h-you
  , constraint commoncostlarge_PKC primary key (LargeCode)
319 271 h-you
) comment '????????}?X?^' ;
320 84 h-you
321 271 h-you
-- ?????H???A?}?X?^
322 198 h-you
drop table if exists commoncostlinkms cascade;
323 84 h-you
324 198 h-you
create table commoncostlinkms (
325 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
326
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
327
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
328
  , EntryDate datetime comment '?o?^???t'
329
  , UpdateDate datetime comment '?X?V???t'
330 198 h-you
  , constraint commoncostlinkms_PKC primary key (LargeCode,MiddleCode,ItemCode)
331 271 h-you
) comment '?????H???A?}?X?^' ;
332 84 h-you
333 271 h-you
-- ?????????}?X?^
334 198 h-you
drop table if exists commoncostmiddle cascade;
335 84 h-you
336 198 h-you
create table commoncostmiddle (
337 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
338
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
339
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
340
  , MiddleName varchar(50) not null comment '?????????'
341
  , CommentText varchar(120) comment '????????'
342
  , DeleteFlg decimal(1,0) not null comment '???t???O'
343
  , EntryDate datetime not null comment '?o?^???t'
344
  , UpdateDate datetime not null comment '?X?V???t'
345 198 h-you
  , constraint commoncostmiddle_PKC primary key (LargeCode,MiddleCode)
346 271 h-you
) comment '?????????}?X?^' ;
347 84 h-you
348 271 h-you
-- ?????????L?[?}?X?^
349 198 h-you
drop table if exists commoncostmiddlesearchword cascade;
350 84 h-you
351 198 h-you
create table commoncostmiddlesearchword (
352 271 h-you
  LargeCode decimal(5,0) unsigned not null comment '????L?['
353
  , MiddleCode decimal(5,0) unsigned not null comment '??????L?['
354
  , SeqNo decimal(5,0) unsigned not null comment '????'
355
  , SearchWord varchar(50) not null comment '????????'
356
  , EntryDate datetime not null comment '?o?^???t'
357
  , UpdateDate datetime not null comment '?X?V???t'
358 198 h-you
  , constraint commoncostmiddlesearchword_PKC primary key (LargeCode,MiddleCode,SeqNo)
359 271 h-you
) comment '?????????L?[?}?X?^' ;
360 84 h-you
361 271 h-you
-- ?\???H???A?}?X?^
362 198 h-you
drop table if exists componentlinkmaster cascade;
363 84 h-you
364 198 h-you
create table componentlinkmaster (
365 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
366
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
367
  , DisplayOrder decimal(5,0) unsigned comment '?\????'
368
  , EntryDate datetime not null comment '?o?^???t'
369
  , UpdateDate datetime not null comment '?X?V???t'
370 198 h-you
  , constraint componentlinkmaster_PKC primary key (ComponentCode,ItemCode)
371 271 h-you
) comment '?\???H???A?}?X?^' ;
372 84 h-you
373 198 h-you
create index ComponentLinkMaster_Index1
374
  on componentlinkmaster(ComponentCode);
375 84 h-you
376 198 h-you
create index ComponentLinkMaster_Index2
377
  on componentlinkmaster(ItemCode);
378 84 h-you
379 271 h-you
-- ?\???}?X?^
380 198 h-you
drop table if exists componentmaster cascade;
381 84 h-you
382 198 h-you
create table componentmaster (
383 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
384
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
385
  , ComponentName varchar(120) not null comment '?\??????'
386
  , SubItemsFlg decimal(1,0) comment '???????t???O'
387
  , DirectInputFlg decimal(1,0) comment '???????t???O'
388
  , MyExpensesFlg decimal(1,0) comment '????o??t???O'
389
  , DeleteFlg decimal(1,0) not null comment '???t???O'
390
  , EntryDate datetime not null comment '?o?^???t'
391
  , UpdateDate datetime not null comment '?X?V???t'
392 198 h-you
  , constraint componentmaster_PKC primary key (ComponentCode)
393 271 h-you
) comment '?\???}?X?^' ;
394 84 h-you
395 198 h-you
create index ComponentMaster_Index1
396
  on componentmaster(DisplayOrder);
397 84 h-you
398 271 h-you
-- ?\???H??????A?}?X?^
399 198 h-you
drop table if exists componenttotypemaster cascade;
400 84 h-you
401 198 h-you
create table componenttotypemaster (
402 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
403
  , TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
404
  , Dummy decimal(1,0) not null comment '?_?~?[????'
405
  , EntryDate datetime not null comment '?o?^???t'
406
  , UpdateDate datetime not null comment '?X?V???t'
407 198 h-you
  , constraint componenttotypemaster_PKC primary key (ComponentCode,TypeCode)
408 271 h-you
) comment '?\???H??????A?}?X?^' ;
409 84 h-you
410 198 h-you
create index ComponentToTypeMaster_Index1
411
  on componenttotypemaster(ComponentCode);
412 84 h-you
413 198 h-you
create index ComponentToTypeMaster_Index2
414
  on componenttotypemaster(TypeCode);
415 84 h-you
416 271 h-you
-- ?H????{???
417 198 h-you
drop table if exists constructionbaseinfo cascade;
418 84 h-you
419 198 h-you
create table constructionbaseinfo (
420 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
421
  , TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O'
422
  , JoinFlg decimal(1,0) not null comment '?????_??H???t???O'
423
  , ConstructionYear smallint(5) unsigned not null comment '?H???N?x'
424
  , ConstructionPeriod smallint(5) unsigned not null comment '?H??????'
425
  , RequestedDate date comment '??????'
426
  , EstimatesSubmitDeadline date comment '?????o????'
427
  , EstimatesSubmittedDate date comment '?????o??'
428
  , ProvisionalOrderDate date comment '?????'
429
  , OrderDate date comment '???'
430
  , OrderStartingDate date comment '?J?n?\???'
431
  , OrderCompletionDate date comment '?????\???'
432
  , PreparationStartDate date comment '?{?H?????J?n??'
433
  , ConstructionStartingDate date comment '?{?H?J?n??'
434
  , ConstructionCompletionDate date comment '?{?H??????'
435
  , NonOrderDate date comment '????'
436
  , OrdersDecisionPrice decimal(12,0) not null comment '??????????z'
437
  , OrdersDecisionPriceInTax decimal(12,0) not null comment '??????????z'
438
  , SalesPersonCode decimal(8,0) comment '?c??S?????'
439
  , ConstructionPersonCode decimal(8,0) not null comment '?H???S????'
440
  , ConstrSubPersonCode decimal(8,0) not null comment '?H?????S????'
441
  , ConstructionInstructor decimal(8,0) not null comment '?H???w????'
442
  , TransferConstruction decimal(8,0) not null comment '?H??????R?[?h'
443
  , TransferConstructionDate date comment '?H??????'
444
  , OrderersDivision decimal(5,0) not null comment '???????'
445
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
446
  , EstimatesExpirationDate date comment '????L??????'
447
  , ConstructionPeriodStart date comment '?_??H???J?n??'
448
  , ConstructionPeriodEnd date comment '?_??H??????'
449
  , ConstructionPeriodStart2 date comment '?_??H???J?n?i???????j'
450
  , ConstructionPeriodEnd2 date comment '?_??H???????i???????j'
451
  , StartDate date comment '?H???J?n??'
452
  , EndDate date comment '?H???I????'
453
  , PurchaseOrderMailingDate date comment '???????X????'
454
  , PurchaseOrderReturnDate date comment '???????????'
455
  , PurchaseOrderReturnCheckDate date comment '??????????m?F??'
456
  , ConsumptionTaxFlg decimal(1,0) not null comment '?????t???O'
457
  , PrimeContractorFlg decimal(1,0) not null comment '?????t???O'
458
  , SalesCostFlg decimal(1,0) not null comment '?c??o?????t???O'
459
  , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
460
  , ConstructionType decimal(5,0) not null comment '?H?????R?[?h'
461
  , EstimateType decimal(1,0) not null comment '??????'
462
  , BillingStartDate date not null comment '?????????J?n??'
463
  , BillingDate date not null comment '??????'
464
  , BillingSplitFlg decimal(1,0) not null comment '??????t???O'
465
  , BillingSendDate date comment '???????X??/??n????'
466
  , LedgerComplateDate date not null comment '?H????????????????t'
467
  , EntryDate datetime not null comment '?o?^???t'
468
  , UpdateDate datetime not null comment '?X?V???t'
469 198 h-you
  , constraint constructionbaseinfo_PKC primary key (ConstructionCode)
470 271 h-you
) comment '?H????{???' ;
471 84 h-you
472 198 h-you
create index BaseInfo_Index1
473
  on constructionbaseinfo(ConstructionStatusFlg);
474 84 h-you
475 198 h-you
create index BaseInfo_Index2
476
  on constructionbaseinfo(EstimateType);
477 84 h-you
478 198 h-you
create index BaseInfo_Index3
479
  on constructionbaseinfo(SalesPersonCode);
480 84 h-you
481 198 h-you
create index BaseInfo_Index4
482
  on constructionbaseinfo(ConstructionPersonCode);
483 84 h-you
484 198 h-you
create index BaseInfo_Index5
485
  on constructionbaseinfo(ConstructionInstructor);
486 84 h-you
487 198 h-you
create index BaseInfo_Index6
488
  on constructionbaseinfo(ConstructionPeriod);
489 84 h-you
490 271 h-you
-- ?H????{????
491 198 h-you
drop table if exists constructionbaseinfodetail cascade;
492 84 h-you
493 198 h-you
create table constructionbaseinfodetail (
494 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
495
  , DetailNo decimal(2,0) not null comment '??????'
496
  , DetailString varchar(120) comment '??????e'
497
  , EntryDate datetime not null comment '?o?^???t'
498
  , UpdateDate datetime not null comment '?X?V???t'
499 198 h-you
  , constraint constructionbaseinfodetail_PKC primary key (ConstructionCode,DetailNo)
500 271 h-you
) comment '?H????{????' ;
501 84 h-you
502 198 h-you
create index BaseInfoDetail_Idx1
503
  on constructionbaseinfodetail(ConstructionCode);
504 84 h-you
505 198 h-you
create index BaseInfoDetail_Idx2
506
  on constructionbaseinfodetail(DetailNo);
507 84 h-you
508 271 h-you
-- ?H???{?H?\?Z?f?[?^
509 198 h-you
drop table if exists constructionbudget cascade;
510 84 h-you
511 198 h-you
create table constructionbudget (
512 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
513
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
514
  , CreatorName varchar(60) comment '?????'
515
  , CreatorCosts decimal(11,0) not null comment '??????^'
516
  , AssistantCode decimal(8,0) not null comment '???S????R?[?h'
517
  , AssistantName varchar(60) comment '???S?????'
518
  , AssistantCosts decimal(11,0) not null comment '???S??????^'
519
  , InstructorCode decimal(8,0) not null comment '?H???w?????R?[?h'
520
  , InstructorName varchar(60) comment '?H???w??????'
521
  , InstructorCosts decimal(11,0) not null comment '?H???w???????^'
522
  , CreateDate date not null comment '????'
523
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
524
  , ConstructionStart date not null comment '?_??H???J?n'
525
  , ConstructionEnd date not null comment '?_??H??????'
526
  , InstructorTimes decimal(5,2) not null comment '?w???????????'
527
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
528
  , SalaryDays decimal(4,0) not null comment '?U??????'
529
  , A_SalaryFlg decimal(1,0) not null comment '???S??????^?U????'
530
  , A_SalaryDays decimal(4,0) not null comment '???S????U??????'
531
  , I_SalaryFlg decimal(1,0) not null comment '?w???????^?U????'
532
  , I_SalaryDays decimal(4,0) not null comment '?w?????U??????'
533
  , OrdersDecisionPrice decimal(12,0) not null comment '??????????z'
534
  , EntryDate datetime not null comment '?o?^???t'
535
  , UpdateDate datetime not null comment '?X?V???t'
536 198 h-you
  , constraint constructionbudget_PKC primary key (ConstructionCode)
537 271 h-you
) comment '?H???{?H?\?Z?f?[?^' ;
538 84 h-you
539 271 h-you
-- ?H???{?H?\?Z?f?[?^????
540 198 h-you
drop table if exists constructionbudgetdetail cascade;
541 84 h-you
542 198 h-you
create table constructionbudgetdetail (
543 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
544
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
545
  , LineCount decimal(3,0) unsigned not null comment '?s???'
546
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
547
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
548
  , FirstString varchar(120) comment '???????'
549
  , SecondString varchar(120) comment '?H?????e'
550
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
551
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
552
  , CompanyName varchar(120) comment '?????????'
553
  , EstimatePrice decimal(12,0) not null comment '??Z????????z'
554
  , NegotiationPrice decimal(12,0) not null comment '??Z????????z'
555
  , OrderDesiredAmount decimal(12,0) not null comment '??????]???z'
556
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
557
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
558
  , NegotiateFlg decimal(1,0) not null comment '?????????t???O'
559
  , EntryDate datetime not null comment '?o?^???t'
560
  , UpdateDate datetime not null comment '?X?V???t'
561 198 h-you
  , constraint constructionbudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
562 271 h-you
) comment '?H???{?H?\?Z?f?[?^????' ;
563 84 h-you
564 271 h-you
-- ?H??}?X?^
565 198 h-you
drop table if exists constructionitemmaster cascade;
566 84 h-you
567 198 h-you
create table constructionitemmaster (
568 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
569
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
570
  , ItemName varchar(120) not null comment '?H????'
571
  , SubItemsFlg decimal(1,0) comment '???????t???O'
572
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
573
  , DeleteFlg decimal(1,0) not null comment '???t???O'
574
  , EntryDate datetime not null comment '?o?^???t'
575
  , UpdateDate datetime not null comment '?X?V???t'
576 198 h-you
  , constraint constructionitemmaster_PKC primary key (ItemCode)
577 271 h-you
) comment '?H??}?X?^' ;
578 84 h-you
579 271 h-you
-- ?H???????f?[?^
580 198 h-you
drop table if exists constructionledger cascade;
581 84 h-you
582 198 h-you
create table constructionledger (
583 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
584
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
585
  , CreatorCode decimal(8,0) comment '????R?[?h'
586
  , CreatorName varchar(60) comment '?????'
587
  , CreateDate date not null comment '????'
588
  , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j'
589
  , ConstructionStart date not null comment '?_??H???J?n'
590
  , ConstructionEnd date not null comment '?_??H??????'
591
  , OrdersDecisionPrice decimal(14,0) not null comment '??????????z'
592
  , CompanyExpenses decimal(10,0) not null comment '???o???v'
593
  , DepartmentExpenses decimal(10,0) not null comment '?????o???v'
594
  , SalesExpenses decimal(10,0) not null comment '?c??o???v'
595
  , TotalPayment decimal(10,0) not null comment '???x???z'
596
  , GrossProfit decimal(10,0) not null comment '?e??'
597
  , Allowance decimal(10,0) not null comment '???^'
598
  , NetProfit decimal(10,0) not null comment '?????v'
599
  , ComplateFlg decimal(1,0) not null comment '????????t???O'
600
  , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O'
601
  , EntryDate datetime not null comment '?o?^???t'
602
  , UpdateDate datetime not null comment '?X?V???t'
603 198 h-you
  , constraint constructionledger_PKC primary key (ConstructionCode)
604 271 h-you
) comment '?H???????f?[?^' ;
605 84 h-you
606 271 h-you
-- ?H??????????f?[?^
607 198 h-you
drop table if exists constructionledgerdetail cascade;
608 84 h-you
609 198 h-you
create table constructionledgerdetail (
610 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
611
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
612
  , LineCount decimal(3,0) unsigned not null comment '?s???'
613
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
614
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
615
  , FirstString varchar(120) comment '???????'
616
  , SecondString varchar(120) comment '?H?????e'
617
  , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v'
618
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
619
  , CompanyName varchar(120) comment '?????????'
620
  , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z'
621
  , ExecutionAmount decimal(12,0) not null comment '???s???z'
622
  , AmountConfigRate decimal(5,2) not null comment '???z?\????'
623
  , PaymentBurden decimal(12,0) not null comment '?x????U?z'
624
  , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O'
625
  , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O'
626
  , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O'
627
  , SalaryFlg decimal(1,0) not null comment '???^?U????'
628
  , SalaryDays decimal(4,0) not null comment '???^?U??????'
629
  , OperatingFlg decimal(1,0) not null comment '?S?????t???O'
630
  , SourceCode decimal(10,0) unsigned not null comment '???H?????'
631
  , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??'
632
  , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^'
633
  , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O'
634
  , EntryDate datetime not null comment '?o?^???t'
635
  , UpdateDate datetime not null comment '?X?V???t'
636 198 h-you
  , constraint constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
637 271 h-you
) comment '?H??????????f?[?^' ;
638 84 h-you
639 198 h-you
create index LedgerDetail_Index01
640
  on constructionledgerdetail(ConstructionCode);
641 84 h-you
642 198 h-you
create index LedgerDetail_Index02
643
  on constructionledgerdetail(GroupCount);
644 84 h-you
645 198 h-you
create index LedgerDetail_Index03
646
  on constructionledgerdetail(SourceCode);
647 84 h-you
648 271 h-you
-- ?H?????????s?f?[?^
649 198 h-you
drop table if exists constructionledgerexcute cascade;
650 84 h-you
651 198 h-you
create table constructionledgerexcute (
652 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
653
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
654
  , LineCount decimal(3,0) unsigned not null comment '?s???'
655
  , ColumnCount decimal(3,0) not null comment '????'
656
  , PaymentAmount decimal(12,0) not null comment '?x?????z'
657
  , TargetMonth date not null comment '???N??'
658
  , EntryDate datetime not null comment '?o?^???t'
659
  , UpdateDate datetime not null comment '?X?V???t'
660 198 h-you
  , constraint constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount)
661 271 h-you
) comment '?H?????????s?f?[?^' ;
662 84 h-you
663 198 h-you
create index LedgerExcute_Index1
664
  on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
665 84 h-you
666 271 h-you
-- ?H???????N???
667 198 h-you
drop table if exists constructionlink cascade;
668 84 h-you
669 198 h-you
create table constructionlink (
670 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
671
  , FluctuationCode decimal(10,0) not null comment '?q?H?????'
672
  , LinkType decimal(1,0) not null comment '?????N???'
673
  , EntryDate datetime not null comment '?o?^???t'
674
  , UpdateDate datetime not null comment '?X?V???t'
675 198 h-you
  , constraint constructionlink_PKC primary key (ConstructionCode,FluctuationCode)
676 271 h-you
) comment '?H???????N???' ;
677 101 h-you
678 198 h-you
create index ConstructionLink_Index1
679
  on constructionlink(ConstructionCode);
680 101 h-you
681 198 h-you
create index ConstructionLink_Index2
682
  on constructionlink(FluctuationCode);
683 84 h-you
684 198 h-you
create index ConstructionLink_Index3
685
  on constructionlink(LinkType);
686 84 h-you
687 271 h-you
-- ?H????????
688 198 h-you
drop table if exists constructionmaterialinfo cascade;
689 84 h-you
690 198 h-you
create table constructionmaterialinfo (
691 271 h-you
  CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????'
692
  , MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
693
  , RENTCOUNT smallint(5) unsigned comment '??o??'
694
  , REPAYCOUNT smallint(5) unsigned comment '??p??'
695
  , COMPLETEFLG tinyint(3) unsigned comment '?????t???O'
696
  , ENTRYDATE datetime comment '?o?^???t'
697
  , UPDATEDATE datetime comment '?X?V???t'
698 198 h-you
  , constraint constructionmaterialinfo_PKC primary key (CONSTRUCTIONCODE,MATERIALITEMCODE)
699 271 h-you
) comment '?H????????' ;
700 84 h-you
701 271 h-you
-- ????i?????t?f?[?^
702 198 h-you
drop table if exists constructionprogressdate cascade;
703 84 h-you
704 198 h-you
create table constructionprogressdate (
705 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H?????'
706
  , ConstructionStatusFlg decimal(2,0) not null comment '???H?????'
707
  , PreviousStatusFlg decimal(2,0) comment '??X?O???'
708
  , ChangeDate datetime not null comment '?????t'
709
  , ChangePersonCode decimal(8,0) not null comment '???S????'
710
  , EntryDate datetime not null comment '?o?^???t'
711
  , UpdateDate datetime not null comment '?X?V???t'
712 198 h-you
  , constraint constructionprogressdate_PKC primary key (ConstructionCode,ConstructionStatusFlg)
713 271 h-you
) comment '????i?????t?f?[?^' ;
714 84 h-you
715 271 h-you
-- ???}?X?^
716 198 h-you
drop table if exists constructionspecmaster cascade;
717 84 h-you
718 198 h-you
create table constructionspecmaster (
719 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
720
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
721
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
722
  , ItemName varchar(120) comment '??????'
723
  , SpecName varchar(120) comment '??????'
724
  , UnitName varchar(30) comment '?P?????'
725
  , UnitPrice decimal(9,2) not null comment '?P??'
726
  , DeleteFlg decimal(1,0) not null comment '???t???O'
727
  , EntryDate datetime not null comment '?o?^???t'
728
  , UpdateDate datetime not null comment '?X?V???t'
729 198 h-you
  , constraint constructionspecmaster_PKC primary key (ItemCode,SpecCode)
730 271 h-you
) comment '???}?X?^' ;
731 84 h-you
732 198 h-you
create index ConstructionSpecMaster_Index1
733
  on constructionspecmaster(DisplayOrder);
734 84 h-you
735 271 h-you
-- ???P???}?X?^
736 198 h-you
drop table if exists constructionspecunitprice cascade;
737 84 h-you
738 198 h-you
create table constructionspecunitprice (
739 271 h-you
  ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
740
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
741
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
742
  , ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h'
743
  , UnitPrice decimal(9,2) not null comment '?P??'
744
  , EntryDate datetime not null comment '?o?^???t'
745
  , UpdateDate datetime not null comment '?X?V???t'
746 198 h-you
  , constraint constructionspecunitprice_PKC primary key (ComponentCode,ItemCode,SpecCode,ConstructionTypeCode)
747 271 h-you
) comment '???P???}?X?^' ;
748 84 h-you
749 271 h-you
-- ?H?????}?X?^
750 198 h-you
drop table if exists constructiontypemaster cascade;
751 84 h-you
752 198 h-you
create table constructiontypemaster (
753 271 h-you
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
754
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
755
  , NameString varchar(100) not null comment '????'
756
  , PublicFlg decimal(1,0) not null comment '?H?????t???O'
757
  , SecRank decimal(1,0) not null comment '?????????N'
758
  , ExpensesLink decimal(1,0) not null comment '?o??g?p??'
759
  , DeleteFlg decimal(1,0) not null comment '???t???O'
760
  , EntryDate datetime not null comment '?o?^???t'
761
  , UpdateDate datetime not null comment '?X?V???t'
762 198 h-you
  , constraint constructiontypemaster_PKC primary key (TypeCode)
763 271 h-you
) comment '?H?????}?X?^' ;
764 84 h-you
765 271 h-you
-- ?S??????o??f?[?^
766 198 h-you
drop table if exists costdataofperson cascade;
767 84 h-you
768 198 h-you
create table costdataofperson (
769 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
770
  , ActionDate date not null comment '?????t'
771
  , DataType decimal(1,0) not null comment '?f?[?^??'
772
  , DataAddCount decimal(5,0) unsigned not null comment '?f?[?^??????'
773
  , TargetMonth varchar(7) not null comment '???N??'
774
  , ConstructionCode decimal(10,0) unsigned comment '?H???R?[?h'
775
  , SuppliersCode decimal(5,0) unsigned not null comment '?x????R?[?h'
776
  , SuppliersName varchar(120) comment '?x??????'
777
  , PaymentContent varchar(60) comment '?x?????e'
778
  , PaymentType decimal(1,0) not null comment '?x?????@?t???O'
779
  , EntryPrice decimal(12,0) not null comment '???z?i????j'
780
  , EntryPriceInTax decimal(12,0) not null comment '???z?i????j'
781
  , SlipNumber varchar(12) comment '?`?[???'
782
  , ComplateFlg decimal(1,0) not null comment '???????t???O'
783
  , ApprovalFlg decimal(1,0) not null comment '???F?t???O'
784
  , EntryDate datetime not null comment '?o?^???t'
785
  , UpdateDate datetime not null comment '?X?V???t'
786 198 h-you
  , constraint costdataofperson_PKC primary key (PersonCode,ActionDate,DataType,DataAddCount)
787 271 h-you
) comment '?S??????o??f?[?^' ;
788 84 h-you
789 198 h-you
create index CostDataOfPerson_Index1
790
  on costdataofperson(TargetMonth);
791 84 h-you
792 198 h-you
create index CostDataOfPerson_Index2
793
  on costdataofperson(ConstructionCode);
794 84 h-you
795 271 h-you
-- ??????o?^?\???f?[?^
796 198 h-you
drop table if exists costomerregist cascade;
797 84 h-you
798 198 h-you
create table costomerregist (
799 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
800
  , CreateDate date not null comment '????'
801
  , SeqNo decimal(2,0) not null comment '?L?[?A??'
802
  , DataMode decimal(1,0) not null comment '?f?[?^??'
803
  , SourceCotegory decimal(5,0) unsigned not null comment '???????'
804
  , SourceCode decimal(5,0) unsigned not null comment '??????R?[?h'
805
  , PetitionPeriod decimal(4,0) unsigned not null comment '?????'
806
  , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
807
  , CorporateStatusName varchar(100) comment '?@?l?i????'
808
  , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
809
  , OrderersName1 varchar(60) not null comment '???????1'
810
  , OrderersName2 varchar(60) comment '????????Q'
811
  , DepartmentName varchar(60) comment '??????'
812
  , ChargePersonName varchar(60) comment '?S?????'
813
  , ZipCode varchar(8) comment '?X????'
814
  , Address1 varchar(60) comment '?Z???P'
815
  , Address2 varchar(60) comment '?Z??2'
816
  , Address3 varchar(60) comment '?Z??3'
817
  , PhoneNumber varchar(13) comment '?d?b???'
818
  , FaxNumber varchar(13) comment 'FAX???'
819
  , MailAddress varchar(257) comment '???[???A?h???X'
820
  , Note varchar(300) comment '???l'
821
  , OrderCotegory decimal(5,0) unsigned not null comment '???????'
822
  , OrderDate date not null comment '?\????'
823
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
824
  , EntryDate datetime not null comment '?o?^???t'
825
  , UpdateDate datetime not null comment '?X?V???t'
826 198 h-you
  , constraint costomerregist_PKC primary key (PersonCode,CreateDate,SeqNo)
827 271 h-you
) comment '??????o?^?\???f?[?^' ;
828 84 h-you
829 198 h-you
create index CostomerRegist_Index1
830
  on costomerregist(PetitionPeriod);
831 84 h-you
832 271 h-you
-- ????f?[?^
833 198 h-you
drop table if exists dailydataconstruction cascade;
834 84 h-you
835 198 h-you
create table dailydataconstruction (
836 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
837
  , DailyDataDate date not null comment '???????'
838
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
839
  , Weather varchar(60) comment '?V?C'
840
  , EntryDate datetime not null comment '?o?^???t'
841
  , UpdateDate datetime not null comment '?X?V???t'
842 198 h-you
  , constraint dailydataconstruction_PKC primary key (PersonCode,DailyDataDate,ConstructionCode)
843 271 h-you
) comment '????f?[?^' ;
844 84 h-you
845 198 h-you
create index DailyDataConstruction_Index1
846
  on dailydataconstruction(PersonCode);
847 101 h-you
848 198 h-you
create index DailyDataConstruction_Index2
849
  on dailydataconstruction(DailyDataDate);
850 101 h-you
851 198 h-you
create index DailyDataConstruction_Index3
852
  on dailydataconstruction(ConstructionCode);
853 84 h-you
854 271 h-you
-- ????f?[?^ (????)
855 198 h-you
drop table if exists dailydatadetail cascade;
856 84 h-you
857 198 h-you
create table dailydatadetail (
858 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
859
  , DailyDataDate date not null comment '???????'
860
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
861
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
862
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
863
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
864
  , TodayHeadCount decimal(4,1) not null comment '?????l????'
865
  , TotalHeadCount decimal(5,1) not null comment '??v?l????'
866
  , TodayWork varchar(100) comment '?????????e'
867
  , NextdayWork varchar(100) comment '?????????e'
868
  , NextdayHeadCount decimal(4,1) not null comment '?????l????'
869
  , EntryDate datetime not null comment '?o?^???t'
870
  , UpdateDate datetime not null comment '?X?V???t'
871 198 h-you
  , constraint dailydatadetail_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
872 271 h-you
) comment '????f?[?^ (????)' ;
873 84 h-you
874 198 h-you
create index DailyDataDetail_Index
875
  on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
876 84 h-you
877 271 h-you
-- ????f?[?^ (??????)
878 198 h-you
drop table if exists dailydatafield cascade;
879 84 h-you
880 198 h-you
create table dailydatafield (
881 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
882
  , DailyDataDate date not null comment '???????'
883
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
884
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
885
  , PatrolTime datetime not null comment '?????'
886
  , ContentsText varchar(200) comment '???e'
887
  , EntryDate datetime not null comment '?o?^???t'
888
  , UpdateDate datetime not null comment '?X?V???t'
889 198 h-you
  , constraint dailydatafield_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
890 271 h-you
) comment '????f?[?^ (??????)' ;
891 84 h-you
892 198 h-you
create index DailyDataField_Index
893
  on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
894 84 h-you
895 271 h-you
-- ????f?[?^ (????)
896 198 h-you
drop table if exists dailydatamaterials cascade;
897 84 h-you
898 198 h-you
create table dailydatamaterials (
899 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
900
  , DailyDataDate date not null comment '???????'
901
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
902
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
903
  , Materials varchar(100) comment '?????'
904
  , Quantity varchar(100) comment '????'
905
  , Production varchar(100) comment '??????'
906
  , Delivery varchar(100) comment '?[?????'
907
  , QualityControl varchar(100) comment '?i?????????'
908
  , EntryDate datetime not null comment '?o?^???t'
909
  , UpdateDate datetime not null comment '?X?V???t'
910 198 h-you
  , constraint dailydatamaterials_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
911 271 h-you
) comment '????f?[?^ (????)' ;
912 84 h-you
913 198 h-you
create index DailyDataMaterials_Index
914
  on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
915 84 h-you
916 271 h-you
-- ????f?[?^ (??????w??)
917 198 h-you
drop table if exists dailydatasubcontractors cascade;
918 84 h-you
919 198 h-you
create table dailydatasubcontractors (
920 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
921
  , DailyDataDate date not null comment '???????'
922
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
923
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
924
  , Attendee varchar(100) comment '?o???'
925
  , ContentsText varchar(200) comment '???e'
926
  , EntryDate datetime not null comment '?o?^???t'
927
  , UpdateDate datetime not null comment '?X?V???t'
928 198 h-you
  , constraint dailydatasubcontractors_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
929 271 h-you
) comment '????f?[?^ (??????w??)' ;
930 84 h-you
931 198 h-you
create index DailyDataSubcontractors_Index
932
  on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
933 84 h-you
934 271 h-you
-- ????f?[?^ (???)
935 198 h-you
drop table if exists dailydatavehicles cascade;
936 84 h-you
937 198 h-you
create table dailydatavehicles (
938 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
939
  , DailyDataDate date not null comment '???????'
940
  , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
941
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
942
  , Model varchar(100) comment '?@??'
943
  , Performance varchar(100) comment '???\'
944
  , Owner varchar(100) comment '???L???'
945
  , Driver varchar(100) comment '?????^?]??'
946
  , StartWorkingTime datetime not null comment '??????J?n'
947
  , EndWorkingTime datetime not null comment '??????I??'
948
  , EntryDate datetime not null comment '?o?^???t'
949
  , UpdateDate datetime not null comment '?X?V???t'
950 198 h-you
  , constraint dailydatavehicles_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
951 271 h-you
) comment '????f?[?^ (???)' ;
952 84 h-you

953 198 h-you
create index DailyDataVehicles_Index
954
  on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
955 84 h-you

956 271 h-you
-- ???}?X?^
957 198 h-you
drop table if exists daymaster cascade;
958 84 h-you

959 198 h-you
create table daymaster (
960 271 h-you
  days smallint(6) not null comment '??'
961
) comment '???}?X?^' ;
962 84 h-you

963 198 h-you
create index day_Index1
964
  on daymaster(days);
965 84 h-you

966 271 h-you
-- ?????}?X?^
967 106 bit
drop table if exists deadlinemaster cascade;
968

969
create table deadlinemaster (
970 271 h-you
  LABOURKIND decimal(1,0) default '0' not null comment '??????'
971
  , DEADLINE decimal(2,0) comment '????'
972
  , PAYDAY decimal(2,0) comment '?x????'
973
  , NOTE varchar(120) comment '???l'
974
  , DELETEFLG decimal(1,0) comment '???t???O'
975
  , ENTRYDATE datetime comment '?o?^???t'
976
  , UPDATEDATE datetime comment '?X?V???t'
977 106 bit
  , constraint deadlinemaster_PKC primary key (LABOURKIND)
978 271 h-you
) comment '?????}?X?^' ;
979 106 bit

980 271 h-you
-- ?????o???}?X?^
981 198 h-you
drop table if exists departmentexpensesmaster cascade;
982

983
create table departmentexpensesmaster (
984 271 h-you
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
985
  , ExpensesPeriod smallint(6) not null comment '?????'
986
  , NameCode decimal(5,0) unsigned not null comment '?o????R?[?h'
987
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
988
  , ExpensesRaito decimal(4,2) not null comment '?o??'
989
  , DeleteFlg decimal(1,0) not null comment '???t???O'
990
  , EntryDate datetime not null comment '?o?^???t'
991
  , UpdateDate datetime not null comment '?X?V???t'
992 198 h-you
  , constraint departmentexpensesmaster_PKC primary key (DepartmentCode,ExpensesPeriod,NameCode)
993 271 h-you
) comment '?????o???}?X?^' ;
994 198 h-you

995 271 h-you
-- ?????}?X?^
996 198 h-you
drop table if exists departmentmaster cascade;
997

998
create table departmentmaster (
999 271 h-you
  DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1000
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1001
  , DepartmentString varchar(100) not null comment '??????'
1002
  , ActionScheduleFlg decimal(1,0) not null comment '?s???\??\???t???O'
1003
  , StaffAssignFlg decimal(1,0) not null comment '?l???z?u?\???t???O'
1004
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1005
  , EntryDate datetime not null comment '?o?^???t'
1006
  , UpdateDate datetime not null comment '?X?V???t'
1007 198 h-you
  , constraint departmentmaster_PKC primary key (DepartmentCode)
1008 271 h-you
) comment '?????}?X?^' ;
1009 198 h-you

1010
create index DepartmentMaster_index1
1011
  on departmentmaster(DisplayOrder);
1012

1013 271 h-you
-- ?????m?F???F?f?[?^
1014 106 bit
drop table if exists depositapprovalinfo cascade;
1015 198 h-you

1016 106 bit
create table depositapprovalinfo (
1017 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1018
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1019
  , TARGETDATE decimal(6,0) not null comment '???N??'
1020
  , SEQNO decimal(3,0) not null comment '?A??'
1021
  , LINECOUNT decimal(3,0) not null comment '?s???'
1022
  , APPROVALNO decimal(3,0) not null comment '???F????'
1023
  , APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
1024
  , APPROVALPERSONNAME varchar(20) comment '???F???'
1025
  , APPROVALAUTHORITY decimal(1,0) comment '???F??????'
1026
  , APPROVALDATE date comment '???F???t'
1027
  , ENTRYDATE datetime comment '?o?^???t'
1028
  , UPDATEDATE datetime comment '?X?V???t'
1029 106 bit
  , constraint depositapprovalinfo_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
1030 271 h-you
) comment '?????m?F???F?f?[?^' ;
1031 106 bit

1032 271 h-you
-- ?????f?[?^
1033 106 bit
drop table if exists depositdata cascade;
1034

1035
create table depositdata (
1036 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1037
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1038
  , TARGETDATE decimal(6,0) not null comment '???N??'
1039
  , SEQNO decimal(3,0) not null comment '?A??'
1040
  , BUSINESSPERIOD decimal(4,0) comment '?c???'
1041
  , DEPOSITDATE date comment '??????'
1042
  , DEPOSITAMOUNT decimal(12,0) comment '???????z'
1043
  , DEPOSITAMOUNTCASH decimal(10,0) comment '???????z?i?????j'
1044
  , DEPOSITAMOUNTBILL decimal(10,0) comment '???????z?i??`?j'
1045
  , DEPOSITPERSONCODE decimal(8,0) not null comment '?????S????R?[?h'
1046
  , NOTE varchar(120) comment '???l'
1047
  , ENTRYDATE datetime comment '?o?^???t'
1048
  , UPDATEDATE datetime comment '?X?V???t'
1049 106 bit
  , constraint depositdata_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO)
1050 271 h-you
) comment '?????f?[?^' ;
1051 106 bit

1052 271 h-you
-- ????????f?[?^
1053 106 bit
drop table if exists depositdatadetail cascade;
1054

1055
create table depositdatadetail (
1056 271 h-you
  ORDERERSDIVISION decimal(5,0) not null comment '???????'
1057
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1058
  , TARGETDATE decimal(6,0) not null comment '???N??'
1059
  , REQUESTNO decimal(10,0) not null comment '????No'
1060
  , ORDERNO decimal(2,0) comment '??t???'
1061
  , DEPOSITAMOUNT decimal(10,0) comment '???????z'
1062
  , DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'
1063
  , CNSTRPRICE decimal(10,0) comment '?????'
1064
  , FEES decimal(10,0) comment '????'
1065
  , OTHERADJUSTMENTS decimal(10,0) comment '?????'
1066
  , DIFFERENCEAMOUNT decimal(10,0) comment '????'
1067
  , CONFIRMATIONPERSONCODE decimal(8,0) comment '?m?F?S????R?[?h'
1068
  , CONFIRMATIONDATE date comment '?S????m?F???t'
1069
  , CONFIRMATIONENDFLG decimal(1,0) comment '?m?F?????t???O'
1070
  , NOTE varchar(120) comment '???l'
1071
  , ENTRYDATE datetime comment '?o?^???t'
1072
  , UPDATEDATE datetime comment '?X?V???t'
1073 184 bit
  , constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO)
1074 271 h-you
) comment '????????f?[?^' ;
1075 106 bit

1076 271 h-you
-- ???}?X?^
1077 198 h-you
drop table if exists divisionmaster cascade;
1078

1079
create table divisionmaster (
1080 271 h-you
  DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
1081
  , NameCode decimal(5,0) unsigned not null comment '????R?[?h'
1082
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1083
  , NameString varchar(100) not null comment '????'
1084
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1085
  , EntryDate datetime not null comment '?o?^???t'
1086
  , UpdateDate datetime not null comment '?X?V???t'
1087 198 h-you
  , constraint divisionmaster_PKC primary key (DivisionCode,NameCode)
1088 271 h-you
) comment '???}?X?^' ;
1089 198 h-you

1090 271 h-you
-- ??Z?\?Z???f?[?^
1091 198 h-you
drop table if exists estimatebudget cascade;
1092

1093
create table estimatebudget (
1094 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1095
  , ConstructionTime decimal(5,2) unsigned not null comment '?H??'
1096
  , IntegratedCode decimal(8,0) not null comment '??Z??'
1097
  , DataCreateDate datetime not null comment '?f?[?^??????'
1098
  , RetValue1 decimal(12,0) not null comment '?\???i'
1099
  , RetValue2 decimal(12,0) not null comment '????H????'
1100
  , RetValue3 decimal(12,0) not null comment '????????????'
1101
  , RetValue4 decimal(12,0) not null comment '????????????'
1102
  , RetPercent decimal(5,2) not null comment '???????'
1103
  , EntryDate datetime not null comment '?o?^???t'
1104
  , UpdateDate datetime not null comment '?X?V???t'
1105 198 h-you
  , constraint estimatebudget_PKC primary key (ConstructionCode)
1106 271 h-you
) comment '??Z?\?Z???f?[?^' ;
1107 198 h-you

1108 271 h-you
-- ??Z?\?Z????f?[?^????
1109 198 h-you
drop table if exists estimatebudgetdetail cascade;
1110

1111
create table estimatebudgetdetail (
1112 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1113
  , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
1114
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1115
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1116
  , ItemCode decimal(5,0) unsigned comment '?H??L?['
1117
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1118
  , FirstString varchar(120) comment '???????'
1119
  , SecondString varchar(120) comment '?H????E???????'
1120
  , Content varchar(120) comment '???e'
1121
  , EstimatePrice decimal(12,0) not null comment '????????z'
1122
  , NegotiationPrice decimal(12,0) not null comment '????????z'
1123
  , Notes varchar(120) comment '???????'
1124
  , EntryDate datetime not null comment '?o?^???t'
1125
  , UpdateDate datetime not null comment '?X?V???t'
1126 198 h-you
  , constraint estimatebudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
1127 271 h-you
) comment '??Z?\?Z????f?[?^????' ;
1128 198 h-you

1129 271 h-you
-- ??Z????f?[?^
1130 198 h-you
drop table if exists estimatedata cascade;
1131

1132
create table estimatedata (
1133 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1134
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1135
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1136
  , FixedItemCode varchar(1) comment '?????L?['
1137
  , ItemName varchar(120) comment '??????'
1138
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
1139
  , PriceValue decimal(14,0) not null comment '???z'
1140
  , note varchar(60) comment '???l'
1141
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
1142
  , InputFlg decimal(1,0) not null comment '????t???O'
1143
  , EntryDate datetime not null comment '?o?^???t'
1144
  , UpdateDate datetime not null comment '?X?V???t'
1145 198 h-you
  , constraint estimatedata_PKC primary key (ConstructionCode,LineCount)
1146 271 h-you
) comment '??Z????f?[?^' ;
1147 198 h-you

1148
create index EstimateData_Index1
1149
  on estimatedata(ConstructionCode,FixedItemCode);
1150

1151 271 h-you
-- ??Z????y?[?W?f?[?^
1152 198 h-you
drop table if exists estimatedatabody cascade;
1153

1154
create table estimatedatabody (
1155 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1156
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
1157
  , Category decimal(1,0) not null comment '?y?[?W??'
1158
  , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?['
1159
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1160
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1161
  , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?['
1162
  , PageTitle varchar(120) not null comment '?y?[?W?\????'
1163
  , DetailLineCount decimal(3,0) unsigned not null comment '????s???'
1164
  , EntryDate datetime not null comment '?o?^???t'
1165
  , UpdateDate datetime not null comment '?X?V???t'
1166 198 h-you
  , constraint estimatedatabody_PKC primary key (ConstructionCode,PageCount)
1167 271 h-you
) comment '??Z????y?[?W?f?[?^' ;
1168 198 h-you

1169
create index EstimateDataBody_Index1
1170
  on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
1171

1172 271 h-you
-- ??Z????f?[?^????
1173 198 h-you
drop table if exists estimatedatadetail cascade;
1174

1175
create table estimatedatadetail (
1176 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1177
  , PageCount decimal(4,0) unsigned not null comment '?y?[?W???'
1178
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1179
  , DataType decimal(1,0) not null comment '?f?[?^???'
1180
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1181
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1182
  , SpecCode decimal(5,0) unsigned not null comment '???L?['
1183
  , ItemName varchar(120) comment '??????'
1184
  , SpecName varchar(120) comment '???^?i???E?`??E???@'
1185
  , Unitcount decimal(8,2) not null comment '????'
1186
  , UnitName varchar(30) comment '?P?????'
1187
  , UnitPrice decimal(9,2) not null comment '?P??'
1188
  , LineTotal decimal(12,0) not null comment '???z'
1189
  , note varchar(60) comment '???l'
1190
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1191
  , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
1192
  , InputFlg decimal(1,0) comment '????t???O'
1193
  , EntryDate datetime not null comment '?o?^???t'
1194
  , UpdateDate datetime not null comment '?X?V???t'
1195 198 h-you
  , constraint estimatedatadetail_PKC primary key (ConstructionCode,PageCount,LineCount)
1196 271 h-you
) comment '??Z????f?[?^????' ;
1197 198 h-you

1198
create index EstimateDataDetail_Index1
1199
  on estimatedatadetail(ConstructionCode,PageCount);
1200

1201 271 h-you
-- ?o???}?X?^
1202 198 h-you
drop table if exists expensesmaster cascade;
1203

1204
create table expensesmaster (
1205 271 h-you
  DivisionCode smallint(6) not null comment '?H?????R?[?h'
1206
  , NameCode smallint(6) not null comment '?o????R?[?h'
1207
  , DisplayOrder smallint(6) not null comment '?\????'
1208
  , ExpensesRatio decimal(4,2) not null comment '?o??'
1209
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1210
  , EntryDate datetime not null comment '?o?^???t'
1211
  , UpdateDate datetime not null comment '?X?V???t'
1212 198 h-you
  , constraint expensesmaster_PKC primary key (DivisionCode,NameCode)
1213 271 h-you
) comment '?o???}?X?^' ;
1214 198 h-you

1215 271 h-you
-- ???x???}?X?^
1216 198 h-you
drop table if exists holidaycalendermaster cascade;
1217

1218
create table holidaycalendermaster (
1219 271 h-you
  Holiday date not null comment '?x??'
1220
  , BusinessYear smallint(5) unsigned not null comment '?c??N?x'
1221
  , TargetMonth tinyint(3) unsigned not null comment '?Y????'
1222
  , TargetDay tinyint(3) unsigned not null comment '?Y????'
1223 198 h-you
  , constraint holidaycalendermaster_PKC primary key (Holiday)
1224 271 h-you
) comment '???x???}?X?^' ;
1225 198 h-you

1226
create index HolidayCalender_Index1
1227
  on holidaycalendermaster(BusinessYear);
1228

1229
create index HolidayCalenderMaster_Index2
1230
  on holidaycalendermaster(TargetMonth);
1231

1232
create index HolidayCalenderMaster_Index3
1233
  on holidaycalendermaster(TargetDay);
1234

1235 271 h-you
-- ?????????????
1236 198 h-you
drop table if exists inputsearchlogdata cascade;
1237

1238
create table inputsearchlogdata (
1239 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1240
  , UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
1241
  , DisplayOrder decimal(4,0) unsigned not null comment '?\????'
1242
  , DataType decimal(1,0) not null comment '?f?[?^???'
1243
  , InputCode decimal(10,0) comment '????R?[?h'
1244 198 h-you
  , constraint inputsearchlogdata_PKC primary key (ConstructionCode,UsedProcessNo,DisplayOrder)
1245 271 h-you
) comment '?????????????' ;
1246 198 h-you

1247
create index InputSearchLogData_Index1
1248
  on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
1249

1250 271 h-you
-- ???????f?[?^
1251 106 bit
drop table if exists invoicedata cascade;
1252

1253
create table invoicedata (
1254 271 h-you
  INVOICENO decimal(9,0) not null comment '??????No'
1255
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
1256
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1257
  , REQUESTMONTH decimal(6,0) not null comment '??????'
1258
  , SEQNO decimal(2,0) not null comment '?A??'
1259
  , CRETATEDATE date not null comment '????'
1260
  , REQUESTDATE date not null comment '??????'
1261
  , REQUESTNAME varchar(120) comment '??????'
1262
  , TOTALAMOUNT decimal(10,0) comment '???????v???z'
1263
  , TAXAMOUNT decimal(10,0) comment '???????z'
1264
  , COMMENT1 varchar(60) comment '?R?????g1'
1265
  , COMMENT2 varchar(60) comment '?R?????g2'
1266
  , COMMENT3 varchar(60) not null comment '?R?????g3'
1267
  , COMMENT4 varchar(60) not null comment '?R?????g4'
1268
  , COMMENT5 varchar(60) not null comment '?R?????g5'
1269
  , COMPLETEFLG decimal(1,0) default '0' not null comment '?????t???O'
1270
  , ENTRYDATE datetime not null comment '?o?^?N????'
1271
  , UPDATEDATE datetime not null comment '?X?V?N????'
1272 106 bit
  , constraint invoicedata_PKC primary key (INVOICENO)
1273 271 h-you
) comment '???????f?[?^' ;
1274 106 bit

1275
alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
1276

1277 271 h-you
-- ??????
1278 106 bit
drop table if exists materialinfo cascade;
1279

1280
create table materialinfo (
1281 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1282
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
1283
  , RENTCOUNT smallint(5) unsigned comment '??o??\??'
1284
  , DELETEFLG smallint(5) unsigned comment '???t???O'
1285
  , ENTRYDATE datetime comment '?o?^???t'
1286
  , UPDATEDATE datetime comment '?X?V???t'
1287 106 bit
  , constraint materialinfo_PKC primary key (MATERIALITEMCODE)
1288 271 h-you
) comment '??????' ;
1289 106 bit

1290 271 h-you
-- ????i??}?X?^
1291 106 bit
drop table if exists materialitemmaster cascade;
1292

1293
create table materialitemmaster (
1294 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1295
  , MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
1296
  , MATERIALITEMNAME varchar(40) comment '????i?????'
1297
  , DISPLAYORDER smallint(5) unsigned comment '?\????'
1298
  , DELETEFLG tinyint(3) unsigned comment '???t???O'
1299
  , ENTRYDATE datetime comment '?o?^???t'
1300
  , UPDATEDATE datetime comment '?X?V???t'
1301
  , VERSIONNO decimal(8,0) default '0' not null comment '?o?[?W???????'
1302 106 bit
  , constraint materialitemmaster_PKC primary key (MATERIALITEMCODE)
1303 271 h-you
) comment '????i??}?X?^' ;
1304 106 bit

1305 271 h-you
-- ??????}?X?^
1306 106 bit
drop table if exists materialkindmaster cascade;
1307

1308
create table materialkindmaster (
1309 271 h-you
  MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
1310
  , MATERIALKINDNAME varchar(40) comment '?????????'
1311
  , DISPLAYORDER smallint(5) unsigned comment '?\????'
1312
  , DELETEFLG tinyint(3) unsigned comment '???t???O'
1313
  , ENTRYDATE datetime comment '?o?^???t'
1314
  , UPDATEDATE datetime comment '?X?V???t'
1315 106 bit
  , constraint materialkindmaster_PKC primary key (MATERIALKINDCODE)
1316 271 h-you
) comment '??????}?X?^' ;
1317 106 bit

1318 271 h-you
-- ??????????
1319 106 bit
drop table if exists materialrecordinfo cascade;
1320

1321
create table materialrecordinfo (
1322 271 h-you
  MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
1323
  , PROCESSDATE date default '0000-00-00' not null comment '?????N????'
1324
  , SEQNO smallint(5) unsigned default 0 not null comment '?A??'
1325
  , RECKIND tinyint(3) unsigned comment '???R?[?h??'
1326
  , CONSTRUCTIONCODE int(10) unsigned comment '?H?????'
1327
  , PERSONCODE int(10) unsigned comment '?S????R?[?h'
1328
  , MATERIALCOUNT smallint(5) unsigned comment '?????'
1329
  , REPAYPLANDATE date comment '??p?\??N????'
1330
  , COMMENTTEXT varchar(80) comment '?R?????g'
1331
  , ENTRYDATE datetime comment '?o?^???t'
1332
  , UPDATEDATE datetime comment '?X?V???t'
1333 106 bit
  , constraint materialrecordinfo_PKC primary key (MATERIALITEMCODE,PROCESSDATE,SEQNO)
1334 271 h-you
) comment '??????????' ;
1335 106 bit

1336 271 h-you
-- ?f??????b?Z?[?W
1337 198 h-you
drop table if exists messageboarddata cascade;
1338

1339
create table messageboarddata (
1340 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1341
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1342
  , FromCode decimal(8,0) unsigned not null comment '???????R?[?h'
1343
  , FromName varchar(60) not null comment '???????'
1344
  , MessageTitile varchar(100) comment '?`???^?C?g??'
1345
  , MessageContent varchar(1333) not null comment '?`?????e'
1346
  , LinkType decimal(2,0) not null comment '?????N????^?C?v'
1347
  , LinkMessage varchar(200) comment '?????N??????'
1348
  , LinkCode varchar(30) comment '?????N?L?['
1349
  , WritingDate datetime not null comment '?????????'
1350
  , PersonCode decimal(8,0) not null comment '??????S????R?[?h'
1351
  , ShareFlag decimal(2,0) not null comment '???????t???O'
1352
  , MessageColor varchar(8) comment '?????F'
1353
  , BackColor varchar(8) comment '?o?b?N?J???['
1354
  , MessageFlag decimal(1,0) not null comment '???b?Z?[?W?t???O'
1355
  , EntryDate datetime not null comment '?o?^???t'
1356
  , UpdateDate datetime not null comment '?X?V???t'
1357 198 h-you
  , constraint messageboarddata_PKC primary key (RecordNumber,BranchNumber)
1358 271 h-you
) comment '?f??????b?Z?[?W' ;
1359 198 h-you

1360
create index MessageBoardData_Index1
1361
  on messageboarddata(WritingDate);
1362

1363
create index MessageBoardData_Index2
1364
  on messageboarddata(MessageFlag);
1365

1366 271 h-you
-- ?f???????e?[?u??
1367 198 h-you
drop table if exists messageboardterget cascade;
1368

1369
create table messageboardterget (
1370 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1371
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1372
  , SeqNum decimal(3,0) unsigned not null comment '????'
1373
  , ToCode decimal(8,0) not null comment '????R?[?h'
1374
  , ToName varchar(60) not null comment '????'
1375
  , EntryDate datetime not null comment '?o?^???t'
1376
  , UpdateDate datetime not null comment '?X?V???t'
1377 198 h-you
  , constraint messageboardterget_PKC primary key (RecordNumber,BranchNumber,SeqNum)
1378 271 h-you
) comment '?f???????e?[?u??' ;
1379 198 h-you

1380
create index MessageBoardTerget_Index1
1381
  on messageboardterget(RecordNumber,BranchNumber);
1382

1383 271 h-you
-- ?f??????b?Z?[?W?{??????
1384 198 h-you
drop table if exists messagebrowsinghistory cascade;
1385

1386
create table messagebrowsinghistory (
1387 271 h-you
  RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
1388
  , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
1389
  , SeqNum decimal(3,0) unsigned not null comment '????'
1390
  , BrowsingCode decimal(8,0) not null comment '?{????R?[?h'
1391
  , BrowsingDate datetime not null comment '?{?????t'
1392
  , EntryDate datetime not null comment '?o?^???t'
1393
  , UpdateDate datetime not null comment '?X?V???t'
1394 198 h-you
  , constraint messagebrowsinghistory_PKC primary key (RecordNumber,BranchNumber,SeqNum)
1395 271 h-you
) comment '?f??????b?Z?[?W?{??????' ;
1396 198 h-you

1397 271 h-you
-- ???}?X?^
1398 198 h-you
drop table if exists monthmaster cascade;
1399

1400
create table monthmaster (
1401 271 h-you
  month smallint(6) not null comment '??'
1402
) comment '???}?X?^' ;
1403 198 h-you

1404
create index month_Index1
1405
  on monthmaster(month);
1406

1407 271 h-you
-- ??????}?X?^
1408 198 h-you
drop table if exists orderersmaster cascade;
1409

1410
create table orderersmaster (
1411 271 h-you
  OrderCotegory decimal(5,0) unsigned not null comment '???????'
1412
  , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
1413
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
1414
  , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
1415
  , CorporateStatusName varchar(100) comment '?@?l?i????'
1416
  , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
1417
  , OrderersName1 varchar(60) not null comment '???????1'
1418
  , OrderersName2 varchar(60) comment '????????Q'
1419
  , DepartmentName varchar(60) comment '??????'
1420
  , ChargePersonName varchar(60) comment '?S?????'
1421
  , ZipCode varchar(8) comment '?X????'
1422
  , Address1 varchar(60) comment '?Z???P'
1423
  , Address2 varchar(60) comment '?Z??2'
1424
  , Address3 varchar(60) comment '?Z??3'
1425
  , PhoneNumber varchar(13) comment '?d?b???'
1426
  , FaxNumber varchar(13) comment 'FAX???'
1427
  , MailAddress varchar(257) comment '???[???A?h???X'
1428
  , Note varchar(300) comment '???l'
1429
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1430
  , EntryDate datetime not null comment '?o?^???t'
1431
  , UpdateDate datetime not null comment '?X?V???t'
1432 198 h-you
  , constraint orderersmaster_PKC primary key (OrderCotegory,OrderersCode)
1433 271 h-you
) comment '??????}?X?^' ;
1434 198 h-you

1435 271 h-you
-- ????z?f?[?^
1436 198 h-you
drop table if exists orderspricedata cascade;
1437

1438
create table orderspricedata (
1439 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1440
  , ChangeNo decimal(3,0) unsigned not null comment '??X???'
1441
  , ChangeDate date not null comment '??X??'
1442
  , ChangePersonCode decimal(8,0) unsigned not null comment '??X??R?[?h'
1443
  , ChangePersonName varchar(60) comment '??X???'
1444
  , BeforeValue decimal(14,0) not null comment '??X?O???????z'
1445
  , BeforeValueInTax decimal(14,0) not null comment '??X?O???????z'
1446
  , AfterValue decimal(14,0) not null comment '??X????????z'
1447
  , AfterValueInTax decimal(14,0) not null comment '??X????????z'
1448
  , ChangeComment varchar(200) comment '??X???R'
1449
  , EntryDate datetime not null comment '?o?^???t'
1450
  , UpdateDate datetime not null comment '?X?V???t'
1451 198 h-you
  , constraint orderspricedata_PKC primary key (ConstructionCode,ChangeNo)
1452 271 h-you
) comment '????z?f?[?^' ;
1453 198 h-you

1454 271 h-you
-- ?x?????F???f?[?^
1455 106 bit
drop table if exists paymentapprovalinfo cascade;
1456

1457
create table paymentapprovalinfo (
1458 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1459
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
1460
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
1461
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
1462
  , APPROVALNO decimal(3,0) default '0' not null comment '???F????'
1463
  , APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
1464
  , APPROVALPERSONNAME varchar(20) comment '???F???'
1465
  , APPROVALAUTHORITY decimal(1,0) comment '???F??????'
1466
  , APPROVALDATE date comment '???F???t'
1467
  , ENTRYDATE datetime comment '?o?^???t'
1468
  , UPDATEDATE datetime comment '?X?V???t'
1469 106 bit
  , constraint paymentapprovalinfo_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
1470 271 h-you
) comment '?x?????F???f?[?^' ;
1471 106 bit

1472 271 h-you
-- ?x??????f?[?^
1473 106 bit
drop table if exists paymentdatadetail cascade;
1474

1475
create table paymentdatadetail (
1476 271 h-you
  COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
1477
  , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
1478
  , SEQNO decimal(3,0) default '0' not null comment '?A??'
1479
  , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
1480
  , BILLPRICE decimal(10,0) comment '???????z'
1481
  , DISCOUNTPRICE decimal(10,0) comment '?l???????z'
1482
  , OFFSETPRICE decimal(10,0) comment '???E???z'
1483
  , NEXTCOPRICE decimal(10,0) comment '????J?z'
1484
  , HIGHWPRICE decimal(10,0) comment '??????'
1485
  , HARDWPRICE decimal(10,0) comment '??????'
1486
  , INDSWASTETAX decimal(10,0) comment '?Y?p??'
1487
  , CNSTRPRICE decimal(10,0) comment '?????'
1488
  , CNSTRPRICEEXIST decimal(1,0) comment '??????L??'
1489
  , APPROVALPERSONCODE decimal(8,0) comment '???F?S????R?[?h'
1490
  , APPROVALDATE date comment '?S??????F???t'
1491
  , APPROVALENDFLG decimal(1,0) comment '???F?????t???O'
1492
  , ENTRYDATE datetime comment '?o?^???t'
1493
  , UPDATEDATE datetime comment '?X?V???t'
1494 106 bit
  , constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
1495 271 h-you
) comment '?x??????f?[?^' ;
1496 106 bit

1497 271 h-you
-- ?S??????F?f?[?^
1498 198 h-you
drop table if exists personapproval cascade;
1499

1500
create table personapproval (
1501 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1502
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1503
  , OrderDate date not null comment '??t??'
1504
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1505
  , SeqNo decimal(2,0) not null comment '?}??'
1506
  , PersonCodeApproval decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
1507
  , PetitionApprovalDate datetime not null comment '?\???E???F???t'
1508
  , ApprovalLimitDates datetime not null comment '???F??]??'
1509
  , ApprovalStatus decimal(1,0) not null comment '???F???'
1510
  , InputComment varchar(300) comment '?R?????g'
1511
  , EntryDate datetime not null comment '?o?^???t'
1512
  , UpdateDate datetime not null comment '?X?V???t'
1513 198 h-you
  , constraint personapproval_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,SeqNo)
1514 271 h-you
) comment '?S??????F?f?[?^' ;
1515 198 h-you

1516 271 h-you
-- ?S??????F?R?????g?f?[?^
1517 198 h-you
drop table if exists personapprovalcomment cascade;
1518

1519
create table personapprovalcomment (
1520 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1521
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1522
  , OrderDate date not null comment '??t??'
1523
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1524
  , CommentNo decimal(2,0) not null comment '?R?????g???'
1525
  , ParentNo decimal(2,0) not null comment '?e?R?????g???'
1526
  , ApproValComment varchar(300) comment '?w???E?A???R?????g'
1527
  , EntryDate datetime not null comment '?o?^???t'
1528
  , UpdateDate datetime not null comment '?X?V???t'
1529 198 h-you
  , constraint personapprovalcomment_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,CommentNo)
1530 271 h-you
) comment '?S??????F?R?????g?f?[?^' ;
1531 198 h-you

1532 271 h-you
-- ?S??????????}?X?^
1533 198 h-you
drop table if exists persondepartmentmaster cascade;
1534

1535
create table persondepartmentmaster (
1536 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1537
  , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h'
1538
  , AffiliationFlg decimal(1,0) not null comment '?????t???O'
1539
  , EntryDate datetime not null comment '?o?^???t'
1540
  , UpdateDate datetime not null comment '?X?V???t'
1541 198 h-you
  , constraint persondepartmentmaster_PKC primary key (PersonCode,DepartmentCode)
1542 271 h-you
) comment '?S??????????}?X?^' ;
1543 198 h-you

1544
create index PersonDepartmentMaster_Index1
1545
  on persondepartmentmaster(PersonCode);
1546

1547
create index PersonDepartmentMaster_Index2
1548
  on persondepartmentmaster(DepartmentCode);
1549

1550 271 h-you
-- ?S????}?X?^
1551 198 h-you
drop table if exists personinchargemaster cascade;
1552

1553
create table personinchargemaster (
1554 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1555
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
1556
  , PersonName varchar(60) not null comment '?S?????'
1557
  , StartDate date not null comment '?g?p?J?n?N????'
1558
  , EndDate date comment '?g?p?I???N????'
1559
  , PassWord varchar(16) comment '?p?X???[?h'
1560
  , SecurityManagement decimal(1,0) not null comment '?@????'
1561
  , SecCode decimal(2,0) unsigned not null comment '???????'
1562
  , MsgBackColor varchar(8) comment '???b?Z?[?W?w?i?F'
1563
  , DisplayString varchar(20) comment '?\???E???????'
1564
  , DepartmentCode decimal(5,0) unsigned comment '?????R?[?h'
1565
  , MonthlySalary decimal(11,0) not null comment '???????z'
1566
  , YearSalary decimal(12,0) not null comment '?N????z'
1567
  , Qualification varchar(120) comment '???i?????'
1568
  , SealPrintName varchar(5) comment '???\????'
1569
  , EmployeeClassFlg decimal(1,0) not null comment '?????'
1570
  , LedgerFlg decimal(1,0) not null comment '???v?Z???t???O'
1571
  , CommutingDistance decimal(5,2) not null comment '??????'
1572
  , CommuteCosts decimal(5,0) not null comment '??????'
1573
  , DeleteFlg decimal(1,0) not null comment '???t???O'
1574
  , EntryDate datetime not null comment '?o?^???t'
1575
  , UpdateDate datetime not null comment '?X?V???t'
1576 198 h-you
  , constraint personinchargemaster_PKC primary key (PersonCode)
1577 271 h-you
) comment '?S????}?X?^' ;
1578 198 h-you

1579
create index PersonInChargeMaster_Index1
1580
  on personinchargemaster(StartDate);
1581

1582
create index PersonInChargeMaster_Index2
1583
  on personinchargemaster(DepartmentCode);
1584

1585 271 h-you
-- ?S??????^?}?X?^
1586 198 h-you
drop table if exists personsalarymaster cascade;
1587

1588
create table personsalarymaster (
1589 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
1590
  , StartDate date not null comment '?g?p?J?n?N????'
1591
  , MonthlySalary decimal(11,0) not null comment '???????z'
1592
  , YearSalary decimal(12,0) not null comment '?N????z'
1593
  , EntryDate datetime not null comment '?o?^???t'
1594
  , UpdateDate datetime not null comment '?X?V???t'
1595 198 h-you
  , constraint personsalarymaster_PKC primary key (PersonCode,StartDate)
1596 271 h-you
) comment '?S??????^?}?X?^' ;
1597 198 h-you

1598
create index PersonSalaryMaster_Index1
1599
  on personsalarymaster(PersonCode);
1600

1601
create index PersonSalaryMaster_Index2
1602
  on personsalarymaster(StartDate);
1603

1604 271 h-you
-- ?w???????f?[?^
1605 198 h-you
drop table if exists pointingoutcomment cascade;
1606

1607
create table pointingoutcomment (
1608 271 h-you
  ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
1609
  , ProcessNo smallint(6) not null comment '????????i??????j'
1610
  , SeqNo smallint(6) not null comment '????'
1611
  , PageCount smallint(6) not null comment '?y?[?W???'
1612
  , PersonCode decimal(8,0) not null comment '?L????R?[?h'
1613
  , DrowColor varchar(8) comment '?`??F'
1614
  , CommentMessage varchar(1000) comment '???b?Z?[?W'
1615
  , StartPointX smallint(6) not null comment '?w?E?????u?w'
1616
  , StartPointY smallint(6) not null comment '?w?E?????u?x'
1617
  , CurrentPointX smallint(6) not null comment '??????u?w'
1618
  , CurrentPointY smallint(6) not null comment '??????u?x'
1619
  , CurrentWidth smallint(6) not null comment '?\???T?C?YWidth'
1620
  , CurrentHeight smallint(6) not null comment '?\???T?C?YHeigth'
1621
  , EntryDate datetime not null comment '?o?^???t'
1622
  , UpdateDate datetime not null comment '?X?V???t'
1623 198 h-you
  , constraint pointingoutcomment_PKC primary key (ConstructionCode,ProcessNo,SeqNo)
1624 271 h-you
) comment '?w???????f?[?^' ;
1625 198 h-you

1626 271 h-you
-- ?????????????c???^?f?[?^
1627 198 h-you
drop table if exists proceedingsdata cascade;
1628

1629
create table proceedingsdata (
1630 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1631
  , ProceedingsDataDate date not null comment '?c???^????'
1632
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
1633
  , EndMeetingTime decimal(4,0) unsigned not null comment '??c????I??'
1634
  , CreatorCode decimal(8,0) not null comment '????R?[?h'
1635
  , PalceFlag decimal(1,0) not null comment '???n?t???O'
1636
  , MeetingPalce varchar(120) comment '???????'
1637
  , EntryDate datetime not null comment '?o?^???t'
1638
  , UpdateDate datetime not null comment '?X?V???t'
1639 198 h-you
  , constraint proceedingsdata_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime)
1640 271 h-you
) comment '?????????????c???^?f?[?^' ;
1641 198 h-you

1642 271 h-you
-- ?????????????c???^?f?[?^?i?o???j
1643 198 h-you
drop table if exists proceedingsdataattend cascade;
1644

1645
create table proceedingsdataattend (
1646 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1647
  , ProceedingsDataDate date not null comment '?c???^????'
1648
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
1649
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1650
  , Department varchar(20) comment '?o??????'
1651
  , AttendName varchar(10) comment '?o??????'
1652
  , EntryDate datetime not null comment '?o?^???t'
1653
  , UpdateDate datetime not null comment '?X?V???t'
1654 198 h-you
  , constraint proceedingsdataattend_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
1655 271 h-you
) comment '?????????????c???^?f?[?^?i?o???j' ;
1656 198 h-you

1657 271 h-you
-- ?????????????c???^?f?[?^?i????j
1658 198 h-you
drop table if exists proceedingsdatadetail cascade;
1659

1660
create table proceedingsdatadetail (
1661 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1662
  , ProceedingsDataDate date not null comment '?c???^????'
1663
  , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
1664
  , SeqNo decimal(3,0) unsigned not null comment '????s???'
1665
  , TitleNo varchar(5) comment '?c????'
1666
  , Title varchar(20) comment '?c??'
1667
  , ContentsText varchar(50) comment '???e'
1668
  , EntryDate datetime not null comment '?o?^???t'
1669
  , UpdateDate datetime not null comment '?X?V???t'
1670 198 h-you
  , constraint proceedingsdatadetail_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
1671 271 h-you
) comment '?????????????c???^?f?[?^?i????j' ;
1672 198 h-you

1673 271 h-you
-- ???F?f?[?^
1674 198 h-you
drop table if exists processapproval cascade;
1675

1676
create table processapproval (
1677 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1678
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1679
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1680
  , SeqNo decimal(2,0) not null comment '?}??'
1681
  , PersonCode decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
1682
  , PetitionApprovalDate datetime not null comment '?\???E???F???t'
1683
  , ApprovalLimitDates datetime not null comment '???F??]??'
1684
  , ApprovalStatus decimal(1,0) not null comment '???F???'
1685
  , InputComment varchar(300) comment '?R?????g'
1686
  , EntryDate datetime not null comment '?o?^???t'
1687
  , UpdateDate datetime not null comment '?X?V???t'
1688 198 h-you
  , constraint processapproval_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SeqNo)
1689 271 h-you
) comment '???F?f?[?^' ;
1690 198 h-you

1691 271 h-you
-- ???F?R?????g?f?[?^
1692 198 h-you
drop table if exists processapprovalcomment cascade;
1693

1694
create table processapprovalcomment (
1695 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1696
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1697
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1698
  , CommentNo decimal(2,0) not null comment '?R?????g???'
1699
  , ParentNo decimal(2,0) not null comment '?e?R?????g???'
1700
  , ApproValComment varchar(300) comment '?w???E?A???R?????g'
1701
  , EntryDate datetime not null comment '?o?^???t'
1702
  , UpdateDate datetime not null comment '?X?V???t'
1703 198 h-you
  , constraint processapprovalcomment_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,CommentNo)
1704 271 h-you
) comment '???F?R?????g?f?[?^' ;
1705 198 h-you

1706 271 h-you
-- ???F????f?[?^
1707 198 h-you
drop table if exists processapprovaldetail cascade;
1708

1709
create table processapprovaldetail (
1710 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1711
  , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
1712
  , OrderNo decimal(2,0) unsigned not null comment '??t???'
1713
  , SerialNo decimal(2,0) unsigned not null comment '?}??'
1714
  , LinkCode decimal(10,0) not null comment '?????N???'
1715
  , EntryDate datetime not null comment '?o?^???t'
1716
  , UpdateDate datetime not null comment '?X?V???t'
1717 198 h-you
  , constraint processapprovaldetail_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SerialNo)
1718 271 h-you
) comment '???F????f?[?^' ;
1719 198 h-you

1720 271 h-you
-- ?N?????}?X?^
1721 198 h-you
drop table if exists processexcutemaster cascade;
1722

1723
create table processexcutemaster (
1724 271 h-you
  SecCode decimal(2,0) unsigned not null comment '???????'
1725
  , ExecCode decimal(4,0) unsigned not null comment '?N?????????'
1726
  , EditFlg decimal(1,0) not null comment '??W?t???O'
1727
  , EntryDate datetime not null comment '?o?^???t'
1728
  , UpdateDate datetime not null comment '?X?V???t'
1729 198 h-you
  , constraint processexcutemaster_PKC primary key (SecCode,ExecCode)
1730 271 h-you
) comment '?N?????}?X?^' ;
1731 198 h-you

1732
create index ProcessExcuteMaster_Index1
1733
  on processexcutemaster(SecCode);
1734

1735
create index ProcessExcuteMaster_Index2
1736
  on processexcutemaster(ExecCode);
1737

1738 271 h-you
-- ???????f?[?^
1739 198 h-you
drop table if exists purchaseorder cascade;
1740

1741
create table purchaseorder (
1742 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1743
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
1744
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1745
  , CreateDate date comment '?????t'
1746
  , OrderPrice decimal(12,0) not null comment '???????z'
1747
  , LastRowStringDate date not null comment '??I?s?\?????t'
1748
  , OrderSheetType decimal(1,0) not null comment '???E?{???t???O'
1749
  , PaymentTerms decimal(1,0) not null comment '?x????????'
1750
  , CashRatio decimal(4,1) not null comment '?????????i???j'
1751
  , BillPeriod decimal(4,0) not null comment '??`????'
1752
  , PrePayments decimal(1,0) not null comment '?O????'
1753
  , PrePaymentsDays decimal(3,0) not null comment '?O????????'
1754
  , PrePaymentsPrice decimal(12,0) not null comment '?O???????z'
1755
  , PartialPayment decimal(1,0) not null comment '??????'
1756
  , PartialPaymentMounth decimal(2,0) unsigned not null comment '???????????'
1757
  , PartialPaymentDay1 decimal(2,0) unsigned not null comment '???????????'
1758
  , PartialPaymentDay2 decimal(2,0) unsigned not null comment '???????x????'
1759
  , PartialPaymentPrice decimal(12,0) not null comment '?????????z'
1760
  , CompletionPayment decimal(1,0) not null comment '???n??????x??'
1761
  , CompletionPaymentDays decimal(3,0) unsigned not null comment '???n??????x??????'
1762
  , CompletionPaymentPrice decimal(12,0) not null comment '???n??????x?????z'
1763
  , LeadEngineerCode decimal(8,0) comment '??C?Z?p??R?[?h'
1764 198 h-you
  , LeadEngineerName varchar(60) comment 'LeadEngineerName'
1765 271 h-you
  , SafetyOfficerCode decimal(8,0) comment '???S?????R?[?h'
1766
  , SafetyOfficerName varchar(60) comment '???S??????'
1767
  , WorkersCount decimal(3,0) unsigned comment '??????'
1768
  , PrintoutDate date not null comment '????N????'
1769
  , EntryDate datetime not null comment '?o?^???t'
1770
  , UpdateDate datetime not null comment '?X?V???t'
1771 198 h-you
  , constraint purchaseorder_PKC primary key (ConstructionCode,SeqNo)
1772 271 h-you
) comment '???????f?[?^' ;
1773 198 h-you

1774 271 h-you
-- ?????????t?f?[?^
1775 198 h-you
drop table if exists purchaseorderdate cascade;
1776

1777
create table purchaseorderdate (
1778 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1779
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
1780
  , CompanyCode decimal(8,0) not null comment '??????R?[?h'
1781
  , SendDate date not null comment '???????X????'
1782
  , ReturnDate date not null comment '???????????'
1783
  , ReturnCheckDate date not null comment '??????????m?F??'
1784
  , EntryDate datetime not null comment '?o?^???t'
1785
  , UpdateDate datetime not null comment '?X?V???t'
1786 198 h-you
  , constraint purchaseorderdate_PKC primary key (ConstructionCode,SeqNo)
1787 271 h-you
) comment '?????????t?f?[?^' ;
1788 198 h-you

1789 271 h-you
-- ??????????f?[?^
1790 198 h-you
drop table if exists purchaseorderdetail cascade;
1791

1792
create table purchaseorderdetail (
1793 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1794
  , SeqNo decimal(3,0) unsigned not null comment '???????}??'
1795
  , GroupCount decimal(1,0) not null comment '?O???[?v???'
1796
  , LineCount decimal(3,0) unsigned not null comment '?s???'
1797
  , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
1798
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1799
  , FirstString varchar(120) comment '?H??E?i??'
1800
  , SecondString varchar(120) comment '???e????'
1801
  , UnitCount decimal(8,2) not null comment '????'
1802
  , UnitName varchar(30) comment '?P??'
1803
  , UnitPrice decimal(10,0) not null comment '?P??'
1804
  , OrdersLinePrice decimal(12,0) comment '???z'
1805
  , SourceCode decimal(10,0) unsigned not null comment '?\?Z?????H?????'
1806
  , SourceLineCnt decimal(3,0) unsigned not null comment '?????????????s???'
1807
  , EntryDate datetime not null comment '?o?^???t'
1808
  , UpdateDate datetime not null comment '?X?V???t'
1809 198 h-you
  , constraint purchaseorderdetail_PKC primary key (ConstructionCode,SeqNo,GroupCount,LineCount)
1810 271 h-you
) comment '??????????f?[?^' ;
1811 198 h-you

1812
create index POrderDetail_Index1
1813
  on purchaseorderdetail(SourceCode);
1814

1815 271 h-you
-- ?????f?[?^
1816 106 bit
drop table if exists requestdata cascade;
1817

1818
create table requestdata (
1819 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
1820
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
1821
  , CONSTRUCTIONNAME varchar(120) not null comment '?H??????'
1822
  , CONTRACTAMOUNT decimal(10,0) not null comment '???????z'
1823
  , PAIDAMOUNT decimal(10,0) not null comment '????????z'
1824
  , REQUESTAMOUNT0 decimal(10,0) not null comment '???????z?O'
1825
  , REQUESTAMOUNT1 decimal(10,0) not null comment '???????z?P'
1826
  , REQUESTAMOUNT2 decimal(10,0) comment '???????z?Q'
1827
  , REQUESTAMOUNT3 decimal(10,0) comment '???????z?R'
1828
  , REQUESTAMOUNT4 decimal(10,0) comment '???????z?S'
1829
  , REQUESTAMOUNT5 decimal(10,0) comment '???????z?T'
1830
  , REQUESTAMOUNT6 decimal(10,0) comment '???????z?U'
1831
  , UNCLAIMEDAMOUNT decimal(10,0) not null comment '?????c???z'
1832
  , UNPAIDAMOUNT decimal(10,0) not null comment '?????????z'
1833
  , TAXAMOUNT decimal(10,0) not null comment '?????'
1834
  , NOTE varchar(120) not null comment '???l'
1835
  , ENTRYDATE datetime not null comment '?o?^?N????'
1836
  , UPDATEDATE datetime not null comment '?X?V?N????'
1837 106 bit
  , constraint requestdata_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE)
1838 271 h-you
) comment '?????f?[?^' ;
1839 106 bit

1840 271 h-you
-- ?????f?[?^????
1841 106 bit
drop table if exists requestdatadetail cascade;
1842

1843
create table requestdatadetail (
1844 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
1845
  , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????'
1846
  , CONSTRUCTIONCODE decimal(10,0) not null comment '?H?????'
1847
  , CONSTRUCTIONKIND decimal(1,0) not null comment '?H????'
1848
  , REQUESTAMOUNT decimal(10,0) not null comment '???????z'
1849
  , TAXAMOUNT decimal(10,0) not null comment '?????'
1850
  , ENTRYDATE datetime not null comment '?o?^?N????'
1851
  , UPDATEDATE datetime not null comment '?X?V?N????'
1852 106 bit
  , constraint requestdatadetail_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE,CONSTRUCTIONCODE,CONSTRUCTIONKIND)
1853 271 h-you
) comment '?????f?[?^????' ;
1854 106 bit

1855 271 h-you
-- ?????w?b?_
1856 106 bit
drop table if exists requesthead cascade;
1857

1858
create table requesthead (
1859 271 h-you
  REQUESTNO decimal(9,0) not null comment '????No'
1860
  , REQCONSTRUCTIONCODE decimal(10,0) not null comment '?????H?????'
1861
  , ORDERNO decimal(2,0) not null comment '??t???'
1862
  , REQUESTMONTH decimal(6,0) not null comment '??????'
1863
  , ORDERERSDIVISION decimal(5,0) not null comment '???????'
1864
  , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
1865
  , ORDERERSNAME varchar(120) not null comment '???????'
1866
  , REQCONSTRUCTIONNAME varchar(120) not null comment '?????H??????'
1867
  , REQUESTTOTALAMOUNT decimal(10,0) not null comment '???????z???v'
1868
  , REQUESTAMOUNT decimal(10,0) not null comment '???????z'
1869
  , TAXAMOUNT decimal(10,0) not null comment '?????'
1870
  , UNPAIDAMOUNT decimal(10,0) comment '??????'
1871
  , NOTE varchar(120) comment '???l'
1872
  , ASSIGNEDFLG decimal(1,0) comment '??????t???O'
1873
  , INVOICENO decimal(9,0) not null comment '??????No'
1874
  , ENTRYDATE datetime not null comment '?o?^?N????'
1875
  , UPDATEDATE datetime not null comment '?X?V?N????'
1876 106 bit
  , constraint requesthead_PKC primary key (REQUESTNO)
1877 271 h-you
) comment '?????w?b?_' ;
1878 106 bit

1879
alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
1880

1881 271 h-you
-- ?????????t?f?[?^
1882 198 h-you
drop table if exists requestorderdate cascade;
1883 106 bit

1884 198 h-you
create table requestorderdate (
1885 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1886
  , InvoiceNo decimal(9,0) not null comment '??????No'
1887
  , SendDate date not null comment '???????????X????'
1888
  , EntryDate datetime not null comment '?o?^???t'
1889
  , UpdateDate datetime not null comment '?X?V???t'
1890 239 h-you
  , constraint requestorderdate_PKC primary key (ConstructionCode,InvoiceNo)
1891 271 h-you
) comment '?????????t?f?[?^' ;
1892 109 bit

1893 271 h-you
-- ????O???t?f?[?^
1894 198 h-you
drop table if exists salesgraphdata cascade;
1895

1896
create table salesgraphdata (
1897 271 h-you
  GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h'
1898
  , ConstructionPeriod decimal(4,0) unsigned not null comment '?????'
1899
  , SalesDataDays date not null comment '????N??'
1900
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
1901
  , DataName varchar(100) not null comment '?f?[?^?\??????'
1902
  , SalesAmount decimal(10,0) not null comment '????f?[?^'
1903
  , AdministrativeExpense decimal(10,0) not null comment '???E?????o??'
1904
  , GrossProfit decimal(10,0) not null comment '?e???v'
1905
  , NetIncome decimal(10,0) not null comment '?????v(???v)'
1906
  , EntryDate datetime not null comment '?o?^???t'
1907
  , UpdateDate datetime not null comment '?X?V???t'
1908 198 h-you
  , constraint salesgraphdata_PKC primary key (GraphDataCode,ConstructionPeriod,SalesDataDays)
1909 271 h-you
) comment '????O???t?f?[?^' ;
1910 198 h-you

1911
create index SalesGraphData_Idx1
1912
  on salesgraphdata(DisplayOrder);
1913

1914
create index SalesGraphData_idx2
1915
  on salesgraphdata(ConstructionPeriod);
1916

1917 271 h-you
-- ?????}?X?^
1918 198 h-you
drop table if exists securitymaster cascade;
1919

1920
create table securitymaster (
1921 271 h-you
  SecCode decimal(2,0) unsigned not null comment '???????'
1922
  , DisplayOrder decimal(2,0) not null comment '?\????'
1923
  , SecName varchar(60) not null comment '????????'
1924
  , SecRank decimal(1,0) not null comment '?????????N'
1925
  , SecRange decimal(1,0) not null comment '???????'
1926
  , GeneralAffairs decimal(1,0) not null comment '????????t???O'
1927
  , SelectBackColor varchar(8) not null comment '?I??w?i?F'
1928
  , EntryDate datetime not null comment '?o?^???t'
1929
  , UpdateDate datetime not null comment '?X?V???t'
1930 198 h-you
  , constraint securitymaster_PKC primary key (SecCode)
1931 271 h-you
) comment '?????}?X?^' ;
1932 198 h-you

1933
create index SecurityMaster_Index1
1934
  on securitymaster(DisplayOrder);
1935

1936
create index SecurityMaster_Index2
1937
  on securitymaster(SecRank);
1938

1939
create index SecurityMaster_Index3
1940
  on securitymaster(SecRange);
1941

1942 271 h-you
-- ???S?p?g???[???f?[?^
1943 239 h-you
drop table if exists sfpdata cascade;
1944

1945
create table sfpdata (
1946 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1947
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
1948
  , RequestDate datetime not null comment '?p?g???[???v??????'
1949
  , PersonCode decimal(8,0) unsigned not null comment '?\????R?[?h'
1950
  , StringValue varchar(300) comment '?R?????g'
1951
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
1952
  , EntryDate datetime not null comment '?o?^???t'
1953
  , UpdateDate datetime not null comment '?X?V???t'
1954 239 h-you
  , constraint sfpdata_PKC primary key (ConstructionCode,DataCount)
1955 271 h-you
) comment '???S?p?g???[???f?[?^' ;
1956 239 h-you

1957
create index SFPData_Index1
1958
  on sfpdata(RequestDate);
1959

1960 271 h-you
-- ???S?p?g???[??????f?[?^
1961 239 h-you
drop table if exists sfpdatadetail cascade;
1962

1963
create table sfpdatadetail (
1964 271 h-you
  ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
1965
  , DataCount decimal(2,0) unsigned not null comment '?p?g???[????'
1966
  , SeqNo decimal(2,0) unsigned not null comment '?f?[?^?}??'
1967
  , CompanyCode decimal(8,0) unsigned not null comment '??????R?[?h'
1968
  , EntryDate datetime not null comment '?o?^???t'
1969
  , UpdateDate datetime not null comment '?X?V???t'
1970 239 h-you
  , constraint sfpdatadetail_PKC primary key (ConstructionCode,DataCount,SeqNo)
1971 271 h-you
) comment '???S?p?g???[??????f?[?^' ;
1972 239 h-you

1973 271 h-you
-- ??????{?H?H??o?^?\???f?[?^
1974 198 h-you
drop table if exists subconstrjobitemregist cascade;
1975

1976
create table subconstrjobitemregist (
1977 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
1978
  , CreateDate date not null comment '????'
1979
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
1980
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
1981
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
1982
  , EntryDate datetime not null comment '?o?^???t'
1983
  , UpdateDate datetime not null comment '?X?V???t'
1984 198 h-you
  , constraint subconstrjobitemregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
1985 271 h-you
) comment '??????{?H?H??o?^?\???f?[?^' ;
1986 198 h-you

1987 271 h-you
-- ??????E?????N?o?^?\???f?[?^
1988 198 h-you
drop table if exists subconstrjoblinkregist cascade;
1989

1990
create table subconstrjoblinkregist (
1991 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
1992
  , CreateDate date not null comment '????'
1993
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
1994
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
1995
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
1996
  , EntryDate datetime not null comment '?o?^???t'
1997
  , UpdateDate datetime not null comment '?X?V???t'
1998 198 h-you
  , constraint subconstrjoblinkregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
1999 271 h-you
) comment '??????E?????N?o?^?\???f?[?^' ;
2000 198 h-you

2001 271 h-you
-- ??????o?^?\???f?[?^
2002 198 h-you
drop table if exists subconstrregist cascade;
2003

2004
create table subconstrregist (
2005 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '?\??????'
2006
  , CreateDate date not null comment '????'
2007
  , SeqNo decimal(2,0) unsigned not null comment '?\???A??'
2008
  , DataMode decimal(1,0) comment '?f?[?^??'
2009
  , SourceCode decimal(8,0) not null comment '??????R?[?h'
2010
  , PetitionPeriod decimal(4,0) unsigned not null comment '?\???N?x'
2011
  , CorporateStatusName varchar(40) comment '?@?l?i????'
2012
  , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u'
2013
  , CompanyName varchar(100) not null comment '???????'
2014
  , CEOPositionName varchar(60) comment '??\???E??'
2015
  , CEOName varchar(60) comment '??\?????'
2016
  , ContactPersonName varchar(60) comment '?S???????'
2017
  , ZipCode varchar(8) comment '?X????'
2018
  , Address1 varchar(60) comment '?Z???P'
2019
  , Address2 varchar(60) comment '?Z??2'
2020
  , Address3 varchar(60) comment '?Z??3'
2021
  , CellPhoneNumber varchar(13) comment '?g??d?b???'
2022
  , MailAddress varchar(257) comment '???[???A?h???X'
2023
  , PhoneNumber varchar(13) comment '?d?b???'
2024
  , FaxNumber varchar(13) comment 'FAX???'
2025
  , JapaneseSyllabary varchar(2) comment '50?????'
2026
  , StartDate date not null comment '????J?n?N????'
2027
  , Note varchar(300) comment '???l'
2028
  , labourKind decimal(1,0) not null comment '?x???????E????'
2029
  , OrderDate date comment '?\????'
2030
  , OrderNo decimal(2,0) unsigned not null comment '?\????t???'
2031
  , EntryDate datetime not null comment '?o?^???t'
2032
  , UpdateDate datetime not null comment '?X?V???t'
2033 198 h-you
  , constraint subconstrregist_PKC primary key (PersonCode,CreateDate,SeqNo)
2034 271 h-you
) comment '??????o?^?\???f?[?^' ;
2035 198 h-you

2036 271 h-you
-- ??????H??}?X?^
2037 198 h-you
drop table if exists subcontractoritemmaster cascade;
2038

2039
create table subcontractoritemmaster (
2040 271 h-you
  ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2041
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2042
  , ItemName varchar(120) not null comment '?H????'
2043
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2044
  , EntryDate datetime not null comment '?o?^???t'
2045
  , UpdateDate datetime not null comment '?X?V???t'
2046 198 h-you
  , constraint subcontractoritemmaster_PKC primary key (ItemCode)
2047 271 h-you
) comment '??????H??}?X?^' ;
2048 198 h-you

2049 271 h-you
-- ??????E??}?X?^
2050 198 h-you
drop table if exists subcontractorjobcategory cascade;
2051

2052
create table subcontractorjobcategory (
2053 271 h-you
  JobCategoryCode decimal(5,0) not null comment '?E??L?['
2054
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2055
  , JobCategoryName varchar(120) not null comment '?E????'
2056
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2057
  , EntryDate datetime not null comment '?o?^???t'
2058
  , UpdateDate datetime not null comment '?X?V???t'
2059 198 h-you
  , constraint subcontractorjobcategory_PKC primary key (JobCategoryCode)
2060 271 h-you
) comment '??????E??}?X?^' ;
2061 198 h-you

2062 271 h-you
-- ??????{?H?H??f?[?^
2063 198 h-you
drop table if exists subcontractorjobitem cascade;
2064

2065
create table subcontractorjobitem (
2066 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2067
  , ItemCode decimal(5,0) unsigned not null comment '?H??L?['
2068
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2069
  , EntryDate datetime not null comment '?o?^???t'
2070
  , UpdateDate datetime not null comment '?X?V???t'
2071 198 h-you
  , constraint subcontractorjobitem_PKC primary key (CompanyCode,ItemCode)
2072 271 h-you
) comment '??????{?H?H??f?[?^' ;
2073 198 h-you

2074
create index SubContractorJobItem_Index1
2075
  on subcontractorjobitem(CompanyCode);
2076

2077
create index SubContractorJobItem_Index2
2078
  on subcontractorjobitem(ItemCode);
2079

2080 271 h-you
-- ??????E?????N?}?X?^
2081 198 h-you
drop table if exists subcontractorjoblink cascade;
2082

2083
create table subcontractorjoblink (
2084 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2085
  , JobCategoryCode decimal(5,0) not null comment '?E??L?['
2086
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2087
  , EntryDate datetime not null comment '?o?^???t'
2088
  , UpdateDate datetime not null comment '?X?V???t'
2089 198 h-you
  , constraint subcontractorjoblink_PKC primary key (CompanyCode,JobCategoryCode)
2090 271 h-you
) comment '??????E?????N?}?X?^' ;
2091 198 h-you

2092
create index SubContractorJobLink_Index1
2093
  on subcontractorjoblink(CompanyCode);
2094

2095
create index SubContractorJobLink_Index2
2096
  on subcontractorjoblink(JobCategoryCode);
2097

2098 271 h-you
-- ??????}?X?^
2099 198 h-you
drop table if exists subcontractormaster cascade;
2100

2101
create table subcontractormaster (
2102 271 h-you
  CompanyCode decimal(8,0) not null comment '??????R?[?h'
2103
  , DisplayOrder decimal(8,0) unsigned not null comment '?\????'
2104
  , CorporateStatusName varchar(40) comment '?@?l?i????'
2105
  , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u'
2106
  , CompanyName varchar(100) not null comment '???????'
2107
  , CEOPositionName varchar(60) comment '??\???E??'
2108
  , CEOName varchar(60) comment '??\?????'
2109
  , ContactPersonName varchar(60) comment '?S???????'
2110
  , ZipCode varchar(8) comment '?X????'
2111
  , Address1 varchar(60) comment '?Z???P'
2112
  , Address2 varchar(60) comment '?Z??2'
2113
  , Address3 varchar(60) comment '?Z??3'
2114
  , CellPhoneNumber varchar(13) comment '?g??d?b???'
2115
  , MailAddress varchar(257) comment '???[???A?h???X'
2116
  , PhoneNumber varchar(13) comment '?d?b???'
2117
  , FaxNumber varchar(13) comment 'FAX???'
2118
  , JapaneseSyllabary varchar(2) comment '50?????'
2119
  , StartDate date not null comment '????J?n?N????'
2120
  , Note varchar(300) comment '???l'
2121
  , labourKind decimal(1,0) not null comment '?x???????E????'
2122
  , DeleteFlg decimal(1,0) default '0' not null comment '???t???O'
2123
  , EntryDate datetime not null comment '?o?^???t'
2124
  , UpdateDate datetime not null comment '?X?V???t'
2125 198 h-you
  , constraint subcontractormaster_PKC primary key (CompanyCode)
2126 271 h-you
) comment '??????}?X?^' ;
2127 198 h-you

2128
create index SubContractorMaster_Index1
2129
  on subcontractormaster(JapaneseSyllabary);
2130

2131 271 h-you
-- ?d????}?X?^
2132 198 h-you
drop table if exists suppliersmaster cascade;
2133

2134
create table suppliersmaster (
2135 271 h-you
  SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h'
2136
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2137
  , SuppliersName1 varchar(60) not null comment '?d????1'
2138
  , SuppliersName2 varchar(60) comment '?d?????Q'
2139
  , ZipCode varchar(8) comment '?X????'
2140
  , Address1 varchar(60) comment '?Z???P'
2141
  , Address2 varchar(60) comment '?Z??2'
2142
  , Address3 varchar(60) comment '?Z??3'
2143
  , PhoneNumber varchar(13) comment '?d?b???'
2144
  , FaxNumber varchar(13) comment 'FAX???'
2145
  , Note varchar(300) comment '???l'
2146
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2147
  , EntryDate datetime not null comment '?o?^???t'
2148
  , UpdateDate datetime not null comment '?X?V???t'
2149 198 h-you
  , constraint suppliersmaster_PKC primary key (SuppliersCode)
2150 271 h-you
) comment '?d????}?X?^' ;
2151 198 h-you

2152 271 h-you
-- ?V?X?e???N???m?F?f?[?^
2153 198 h-you
drop table if exists systemexecute cascade;
2154

2155
create table systemexecute (
2156 271 h-you
  PrimaryCode tinyint(4) not null comment '?L?[????'
2157
  , TargetDate date not null comment '?N?????t'
2158
  , SystemVersion int(11) not null comment '?{??E????o?[?W????'
2159
  , UpDateCopyVersion int(11) not null comment '?R?s?[?o?[?W????'
2160
  , EntryDate datetime not null comment '?o?^???t'
2161
  , UpdateDate datetime not null comment '?X?V???t'
2162 198 h-you
  , constraint systemexecute_PKC primary key (PrimaryCode)
2163 271 h-you
) comment '?V?X?e???N???m?F?f?[?^' ;
2164 198 h-you

2165 271 h-you
-- ????}?X?^
2166 198 h-you
drop table if exists systemmaster cascade;
2167

2168
create table systemmaster (
2169 271 h-you
  SystemCode decimal(3,0) unsigned not null comment '???R?[?h'
2170
  , CompanyName1 varchar(60) not null comment '?????P'
2171
  , CompanyName2 varchar(60) comment '?????Q'
2172
  , CEOName varchar(60) not null comment '??\?????'
2173
  , CEOPositionName varchar(60) comment '??\???E??'
2174
  , ZipCode varchar(8) not null comment '?X????'
2175
  , Address1 varchar(60) not null comment '?Z???P'
2176
  , Address2 varchar(60) comment '?Z??2'
2177
  , Address3 varchar(60) comment '?Z??3'
2178
  , PhoneNumber varchar(13) not null comment '?d?b???'
2179
  , FaxNumber varchar(13) comment 'FAX???'
2180
  , HomePageURL varchar(120) comment '?z?[???y?[?WURL'
2181
  , ConstructionExpenses decimal(4,2) not null comment '?H?????o??'
2182
  , OfficeExpenses decimal(4,2) not null comment '???????o??'
2183
  , OperatingExpenses decimal(4,2) not null comment '?c??o??'
2184
  , ConsumptionTax decimal(4,2) not null comment '?????'
2185
  , CooperationRate decimal(4,2) not null comment '???????'
2186
  , StatutoryWelfareRate decimal(4,2) not null comment '?@???????'
2187
  , FuelPrice decimal(5,2) not null comment '?R???L???P??'
2188
  , AreaDistance decimal(5,2) not null comment '????u????????'
2189
  , ExcelSavePath varchar(120) comment 'Excel????p?X'
2190
  , BusinessPeriod smallint(6) not null comment '????c?????'
2191
  , ConstructionYear smallint(6) not null comment '????H???N?x'
2192
  , BusinessBeginningDate varchar(5) not null comment '?c????????'
2193
  , ConstructionBeginningDate varchar(5) not null comment '?H???N?x?????'
2194
  , ConstructionNoBase decimal(1,0) not null comment '?H????????l'
2195
  , SloganString1 varchar(100) comment '?W??1'
2196
  , SloganString2 varchar(100) comment '?W??2'
2197
  , SloganString3 varchar(100) comment '?W??3'
2198
  , EntryDate datetime not null comment '?o?^???t'
2199
  , UpdateDate datetime not null comment '?X?V???t'
2200 198 h-you
  , constraint systemmaster_PKC primary key (SystemCode)
2201 271 h-you
) comment '????}?X?^' ;
2202 198 h-you

2203 271 h-you
-- ?????}?X?^
2204 198 h-you
drop table if exists termmaster cascade;
2205

2206
create table termmaster (
2207 271 h-you
  ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
2208
  , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???'
2209
  , SeqNo decimal(2,0) not null comment '?}??'
2210
  , DisplayOrder decimal(2,0) not null comment '?\????'
2211
  , CheckSchdule decimal(1,0) not null comment '?`?F?b?N?^?C?~???O'
2212
  , TermDays decimal(3,0) not null comment '?o???'
2213
  , SendTitile varchar(100) comment '?^?C?g??'
2214
  , SendMessage varchar(100) comment '???b?Z?[?W'
2215
  , BackColor varchar(8) comment '?w?i?F'
2216
  , ForeColor varchar(8) comment '?????F'
2217
  , EntryDate datetime not null comment '?o?^???t'
2218
  , UpdateDate datetime not null comment '?X?V???t'
2219 198 h-you
  , constraint termmaster_PKC primary key (ConstructionStatusFlg,FieldNo,SeqNo)
2220 271 h-you
) comment '?????}?X?^' ;
2221 198 h-you

2222
create index TermMaster_Index1
2223
  on termmaster(DisplayOrder);
2224

2225 271 h-you
-- ?o?????f?[?^
2226 198 h-you
drop table if exists tranceportdailydata cascade;
2227

2228
create table tranceportdailydata (
2229 271 h-you
  PersonCode decimal(8,0) unsigned not null comment '????R?[?h'
2230
  , AttendanceDate date not null comment '???????'
2231
  , StartDistance decimal(7,1) not null comment '?????o???L????'
2232
  , ComplateDistance decimal(7,1) not null comment '?????I???L????'
2233
  , TotalDistance decimal(6,1) not null comment '???????v?L????'
2234
  , OfficeGoFlg decimal(1,0) not null comment '???????o??t???O'
2235
  , OfficeOutFlg decimal(1,0) not null comment '???????A??t???O'
2236
  , TrancePayGoFlg decimal(1,0) not null comment '?L?????o??t???O'
2237
  , TrancePayOutFlg decimal(1,0) not null comment '?L?????A??t???O'
2238
  , WareHouseFlg decimal(1,0) not null comment '????u??t???O'
2239
  , EntryDate datetime not null comment '?o?^???t'
2240
  , UpdateDate datetime not null comment '?X?V???t'
2241 198 h-you
  , constraint tranceportdailydata_PKC primary key (PersonCode,AttendanceDate)
2242 271 h-you
) comment '?o?????f?[?^' ;
2243 198 h-you

2244
create index TranceportDailyData_Index1
2245
  on tranceportdailydata(AttendanceDate);
2246

2247 271 h-you
-- ?H?????o???}?X?^
2248 198 h-you
drop table if exists typeexpensesmaster cascade;
2249

2250
create table typeexpensesmaster (
2251 271 h-you
  TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h'
2252
  , ExpensesPeriod smallint(6) not null comment '?????'
2253
  , NameCode decimal(5,0) unsigned not null comment '?o????R?[?h'
2254
  , ExpensesRaito decimal(4,2) not null comment '?o??'
2255
  , DeleteFlg decimal(1,0) not null comment '???t???O'
2256
  , EntryDate datetime not null comment '?o?^???t'
2257
  , UpdateDate datetime not null comment '?X?V???t'
2258 198 h-you
  , constraint typeexpensesmaster_PKC primary key (TypeCode,ExpensesPeriod,NameCode)
2259 271 h-you
) comment '?H?????o???}?X?^' ;
2260 198 h-you

2261 271 h-you
-- ?P??}?X?^
2262 198 h-you
drop table if exists unitmaster cascade;
2263

2264
create table unitmaster (
2265 271 h-you
  UnitKey decimal(5,0) unsigned not null comment '?P??L?['
2266
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2267
  , UnitName varchar(30) not null comment '?P?????'
2268
  , EntryDate datetime not null comment '?o?^???t'
2269
  , UpdateDate datetime not null comment '?X?V???t'
2270 198 h-you
  , constraint unitmaster_PKC primary key (UnitKey)
2271 271 h-you
) comment '?P??}?X?^' ;
2272 198 h-you

2273
create index UnitMaster_Index1
2274
  on unitmaster(DisplayOrder);
2275

2276 271 h-you
-- ????}?X?^
2277 198 h-you
drop table if exists vehiclemaster cascade;
2278

2279
create table vehiclemaster (
2280 271 h-you
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2281
  , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
2282
  , VehicleName varchar(100) not null comment '???????'
2283
  , RegistrationNumber varchar(30) comment '?o?^???'
2284
  , IdentificationNumber varchar(30) comment '?????'
2285
  , ModelCode varchar(30) comment '?^??'
2286
  , DepartmentCode decimal(5,0) unsigned not null comment '???????'
2287
  , VehicleScheduleFlg decimal(1,0) not null comment '????\??\???t???O'
2288
  , PurchaseDate date comment '?w????'
2289
  , PurchaseName varchar(30) comment '?w????'
2290
  , PurchaseContactPersons varchar(30) comment '?w????S????'
2291
  , PurchasePhone varchar(13) comment '?w????d?b???'
2292
  , LeaseDate date comment '???[?X?J?n??'
2293
  , LeaseDestination varchar(30) comment '???[?X??'
2294
  , LeaseContactPersons varchar(30) comment '???[?X??S????'
2295
  , LeasePhone varchar(13) comment '???[?X??d?b???'
2296
  , InsuranceCompany varchar(30) comment '?C???????'
2297
  , InsuranceContactPersons varchar(30) comment '?C???????S????'
2298
  , InsurancePhone varchar(13) comment '?C???????d?b???'
2299
  , Note varchar(300) comment '???l'
2300
  , EntryDate datetime comment '?o?^???t'
2301
  , UpdateDate datetime comment '?X?V???t'
2302 198 h-you
  , constraint vehiclemaster_PKC primary key (VehicleCode)
2303 271 h-you
) comment '????}?X?^' ;
2304 198 h-you

2305 271 h-you
-- ????L?^?f?[?^
2306 198 h-you
drop table if exists vehiclerecorddata cascade;
2307

2308
create table vehiclerecorddata (
2309 271 h-you
  VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2310
  , DivisionCode decimal(2,0) unsigned not null comment '?f?[?^??'
2311
  , SeqNo decimal(2,0) not null comment '?}??'
2312
  , RecordDate date comment '???n??'
2313
  , Mileage mediumint(9) comment '???s????'
2314
  , Content varchar(100) comment '???e'
2315
  , PaymentCost decimal(10,0) comment '??p'
2316
  , EntryDate datetime not null comment '?o?^???t'
2317
  , UpdateDate datetime not null comment '?X?V???t'
2318 198 h-you
  , constraint vehiclerecorddata_PKC primary key (VehicleCode,DivisionCode,SeqNo)
2319 271 h-you
) comment '????L?^?f?[?^' ;
2320 198 h-you

2321 271 h-you
-- ????\??f?[?^
2322 198 h-you
drop table if exists vehiclescheduledata cascade;
2323

2324
create table vehiclescheduledata (
2325 271 h-you
  TargetDate date not null comment '????'
2326
  , VehicleCode decimal(5,0) unsigned not null comment '????R?[?h'
2327
  , MorningAfternoon decimal(1,0) not null comment '??O?E???'
2328
  , PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h'
2329
  , TargetYear year(4) not null comment '?Y???N'
2330
  , TargetMonth tinyint(3) unsigned not null comment '?Y????'
2331
  , TargetDay year(4) not null comment '?Y????'
2332
  , EntryDate datetime not null comment '?o?^???t'
2333
  , UpdateDate datetime not null comment '?X?V???t'
2334 198 h-you
  , constraint vehiclescheduledata_PKC primary key (TargetDate,VehicleCode,MorningAfternoon)
2335 271 h-you
) comment '????\??f?[?^' ;
2336 198 h-you

2337
create index VehicleScheduleData_Index1
2338
  on vehiclescheduledata(TargetYear);
2339

2340
create index VehicleScheduleData_Index2
2341
  on vehiclescheduledata(TargetMonth);
2342

2343
create index VehicleScheduleData_Index3
2344
  on vehiclescheduledata(TargetDay);
2345

2346 271 h-you
-- ?N?}?X?^
2347 198 h-you
drop table if exists yearmaster cascade;
2348

2349
create table yearmaster (
2350 271 h-you
  years smallint(6) not null comment '?N'
2351
) comment '?N?}?X?^' ;
2352 198 h-you

2353
create index year_Index1
2354
  on yearmaster(years);