h-you / branches / ddl / ProcessManagement.sql @ 353
履歴 | 表示 | アノテート | ダウンロード (113 KB)
| 1 | 198 | h-you | -- Project Name : noname
|
|---|---|---|---|
| 2 | 353 | h-you | -- Date/Time : 2018/05/25 8:19:35
|
| 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 | 325 | 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 | 325 | 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 | 325 | 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 | 277 | h-you | create index AttendDaily_Index1 |
| 66 | on attendancedailydata(ConstructionCode);
|
||
| 67 | |||
| 68 | create index AttendDaily_Index2 |
||
| 69 | on attendancedailydata(AttendanceDate);
|
||
| 70 | |||
| 71 | 271 | h-you | -- ?o?????f?[?^
|
| 72 | 325 | h-you | drop table if exists attendancedata cascade; |
| 73 | 84 | h-you | |
| 74 | 198 | h-you | create table attendancedata ( |
| 75 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 76 | , AttendanceMonth date not null comment '?o?????N??' |
||
| 77 | , LastDays decimal(2,0) unsigned not null comment '??????I??' |
||
| 78 | , AttendDayCount decimal(2,0) unsigned not null comment '?o?????' |
||
| 79 | , TotalOverTimes decimal(4,1) not null comment '?c??????' |
||
| 80 | , OrderDate date not null comment '?\????' |
||
| 81 | , OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
||
| 82 | , EntryDate datetime not null comment '?o?^???t' |
||
| 83 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 84 | 198 | h-you | , constraint attendancedata_PKC primary key (PersonCode,AttendanceMonth) |
| 85 | 271 | h-you | ) comment '?o?????f?[?^' ; |
| 86 | 84 | h-you | |
| 87 | 271 | h-you | -- ??s?c????}?X?^
|
| 88 | 325 | h-you | drop table if exists bankbusinessdaymaster cascade; |
| 89 | 84 | h-you | |
| 90 | 198 | h-you | create table bankbusinessdaymaster ( |
| 91 | 271 | h-you | YEARMONTH decimal(6,0) default '0' not null comment '?N??' |
| 92 | , BANKBUSINESSDAY decimal(2,0) default '0' not null comment '??s?c???' |
||
| 93 | , NOTE varchar(120) comment '???l' |
||
| 94 | , DELETEFLG decimal(1,0) comment '???t???O' |
||
| 95 | , ENTRYDATE datetime comment '?o?^?N????' |
||
| 96 | , UPDATEDATE datetime comment '?X?V?N????' |
||
| 97 | 198 | h-you | , constraint bankbusinessdaymaster_PKC primary key (YEARMONTH,BANKBUSINESSDAY) |
| 98 | 271 | h-you | ) comment '??s?c????}?X?^' ; |
| 99 | 84 | h-you | |
| 100 | 271 | h-you | -- ???????f?[?^
|
| 101 | 325 | h-you | drop table if exists billingdata cascade; |
| 102 | 84 | h-you | |
| 103 | 198 | h-you | create table billingdata ( |
| 104 | 271 | h-you | COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 105 | , TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
||
| 106 | , SEQNO decimal(3,0) default '0' not null comment '?A??' |
||
| 107 | , BILLPRICE decimal(10,0) comment '???????z' |
||
| 108 | , ENTRYDATE datetime comment '?o?^?N????' |
||
| 109 | , UPDATEDATE datetime comment '?X?V?N????' |
||
| 110 | 198 | h-you | , constraint billingdata_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO) |
| 111 | 271 | h-you | ) comment '???????f?[?^' ; |
| 112 | 198 | h-you | |
| 113 | 271 | h-you | -- ??????????f?[?^
|
| 114 | 325 | h-you | drop table if exists billingdatadetail cascade; |
| 115 | 198 | h-you | |
| 116 | create table billingdatadetail ( |
||
| 117 | 271 | h-you | COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 118 | , TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
||
| 119 | , SEQNO decimal(3,0) default '0' not null comment '?A??' |
||
| 120 | , LINECOUNT decimal(3,0) default '0' not null comment '?s???' |
||
| 121 | , CONSTRUCTIONCODE decimal(10,0) comment '?H?????' |
||
| 122 | , CONSTRUCTIONROWCNT decimal(3,0) default '0' not null comment '?s???' |
||
| 123 | , CONSTRUCTIONCOLCNT decimal(3,0) default '0' not null comment '????' |
||
| 124 | , FIELDNAME varchar(120) comment '????' |
||
| 125 | , BILLPRICE decimal(10,0) comment '???????z' |
||
| 126 | , HIGHWPRICE decimal(10,0) comment '??????' |
||
| 127 | , HARDWPRICE decimal(10,0) comment '??????' |
||
| 128 | , INDSWASTETAX decimal(10,0) comment '?Y?p??' |
||
| 129 | , NOTE varchar(120) comment '???l' |
||
| 130 | , ENTRYDATE datetime comment '?o?^?N????' |
||
| 131 | , UPDATEDATE datetime comment '?X?V?N????' |
||
| 132 | 198 | h-you | , constraint billingdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT) |
| 133 | 271 | h-you | ) comment '??????????f?[?^' ; |
| 134 | 198 | h-you | |
| 135 | 271 | h-you | -- ???????x???T?}???[?f?[?^
|
| 136 | 325 | h-you | drop table if exists billingpaymentsummary cascade; |
| 137 | 198 | h-you | |
| 138 | create table billingpaymentsummary ( |
||
| 139 | 271 | h-you | COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h' |
| 140 | , TARGETDATE decimal(6,0) default '0' not null comment '???N??' |
||
| 141 | , CHARGEPAYMENTKIND decimal(1,0) default '0' not null comment '?????x????' |
||
| 142 | , PAYDAY date comment '?x????' |
||
| 143 | , BILLPRICESTOTAL decimal(10,0) comment '???????z???v' |
||
| 144 | , CONSUMPTIONTAXRATE decimal(6,3) comment '??????' |
||
| 145 | , CONSUMPTIONTAXPRICE decimal(10,0) comment '?????z' |
||
| 146 | , HIGHWPRICESTOTAL decimal(10,0) comment '???????v' |
||
| 147 | , HARDWPRICESTOTAL decimal(10,0) comment '???????v' |
||
| 148 | , INDSWASTETAXSTOTAL decimal(10,0) comment '?Y?p????v' |
||
| 149 | , CNSTRPRICERATE decimal(6,3) comment '???????' |
||
| 150 | , CNSTRPRICESTOTAL decimal(10,0) comment '????????v' |
||
| 151 | , BILLINGPRICETOTAL decimal(10,0) comment '???????z???v' |
||
| 152 | , ENTRYDATE datetime comment '?o?^?N????' |
||
| 153 | , UPDATEDATE datetime comment '?X?V?N????' |
||
| 154 | 198 | h-you | , constraint billingpaymentsummary_PKC primary key (COMPANYCODE,TARGETDATE,CHARGEPAYMENTKIND) |
| 155 | 271 | h-you | ) comment '???????x???T?}???[?f?[?^' ; |
| 156 | 198 | h-you | |
| 157 | 324 | h-you | -- ?^?c?????????
|
| 158 | 325 | h-you | drop table if exists bizperiodhistory cascade; |
| 159 | 324 | h-you | |
| 160 | create table bizperiodhistory ( |
||
| 161 | PeriodYear smallint(6) not null comment '?c??????E?H???N?x' |
||
| 162 | , PeriodFlag smallint(1) not null comment '?c??????E?H???N?x?t???O' |
||
| 163 | , BeginDate datetime not null comment '?????' |
||
| 164 | , CompleteDate datetime not null comment '??????' |
||
| 165 | , EntryDate datetime not null comment '?o?^???t' |
||
| 166 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 167 | , constraint bizperiodhistory_PKC primary key (PeriodYear,PeriodFlag) |
||
| 168 | ) comment '?^?c?????????' ; |
||
| 169 | |||
| 170 | 271 | h-you | -- ?H???????f?[?^?y???p?z
|
| 171 | 325 | h-you | drop table if exists bk_constructionledger cascade; |
| 172 | 84 | h-you | |
| 173 | 198 | h-you | create table bk_constructionledger ( |
| 174 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 175 | , ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
||
| 176 | , CreatorCode decimal(8,0) comment '????R?[?h' |
||
| 177 | , CreatorName varchar(60) comment '?????' |
||
| 178 | , CreateDate date not null comment '????' |
||
| 179 | , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
||
| 180 | , ConstructionStart date not null comment '?_??H???J?n' |
||
| 181 | , ConstructionEnd date not null comment '?_??H??????' |
||
| 182 | , OrdersDecisionPrice decimal(14,0) not null comment '??????????z' |
||
| 183 | , CompanyExpenses decimal(10,0) not null comment '???o???v' |
||
| 184 | , DepartmentExpenses decimal(10,0) not null comment '?????o???v' |
||
| 185 | , SalesExpenses decimal(10,0) not null comment '?c??o???v' |
||
| 186 | , TotalPayment decimal(10,0) not null comment '???x???z' |
||
| 187 | , GrossProfit decimal(10,0) not null comment '?e??' |
||
| 188 | , Allowance decimal(10,0) not null comment '???^' |
||
| 189 | , NetProfit decimal(10,0) not null comment '?????v' |
||
| 190 | , ComplateFlg decimal(1,0) not null comment '????????t???O' |
||
| 191 | , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O' |
||
| 192 | , EntryDate datetime not null comment '?o?^???t' |
||
| 193 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 194 | 198 | h-you | , constraint bk_constructionledger_PKC primary key (ConstructionCode) |
| 195 | 271 | h-you | ) comment '?H???????f?[?^?y???p?z' ; |
| 196 | 84 | h-you | |
| 197 | 271 | h-you | -- ?H??????????f?[?^?y???p?z
|
| 198 | 325 | h-you | drop table if exists bk_constructionledgerdetail cascade; |
| 199 | 84 | h-you | |
| 200 | 198 | h-you | create table bk_constructionledgerdetail ( |
| 201 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 202 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 203 | , LineCount decimal(5,0) unsigned not null comment '?s???' |
||
| 204 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 205 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 206 | , FirstString varchar(120) comment '???????' |
||
| 207 | , SecondString varchar(120) comment '?H?????e' |
||
| 208 | , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
||
| 209 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 210 | , CompanyName varchar(120) comment '?????????' |
||
| 211 | , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z' |
||
| 212 | , ExecutionAmount decimal(12,0) not null comment '???s???z' |
||
| 213 | , AmountConfigRate decimal(5,2) not null comment '???z?\????' |
||
| 214 | , PaymentBurden decimal(12,0) not null comment '?x????U?z' |
||
| 215 | , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O' |
||
| 216 | , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O' |
||
| 217 | , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O' |
||
| 218 | , SalaryFlg decimal(1,0) not null comment '???^?U????' |
||
| 219 | , SalaryDays decimal(4,0) not null comment '???^?U??????' |
||
| 220 | , OperatingFlg decimal(1,0) not null comment '?S?????t???O' |
||
| 221 | , SourceCode decimal(10,0) unsigned not null comment '???H?????' |
||
| 222 | , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??' |
||
| 223 | , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
||
| 224 | , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O' |
||
| 225 | , EntryDate datetime not null comment '?o?^???t' |
||
| 226 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 227 | 198 | h-you | , constraint bk_constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 228 | 271 | h-you | ) comment '?H??????????f?[?^?y???p?z' ; |
| 229 | 84 | h-you | |
| 230 | 271 | h-you | -- ?H?????????s?f?[?^?y???p?z
|
| 231 | 325 | h-you | drop table if exists bk_constructionledgerexcute cascade; |
| 232 | 84 | h-you | |
| 233 | 198 | h-you | create table bk_constructionledgerexcute ( |
| 234 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 235 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 236 | , LineCount decimal(5,0) unsigned not null comment '?s???' |
||
| 237 | , ColumnCount decimal(3,0) not null comment '????' |
||
| 238 | , PaymentAmount decimal(12,0) not null comment '?x?????z' |
||
| 239 | , TargetMonth date not null comment '???N??' |
||
| 240 | , EntryDate datetime not null comment '?o?^???t' |
||
| 241 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 242 | 198 | h-you | , constraint bk_constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount) |
| 243 | 271 | h-you | ) comment '?H?????????s?f?[?^?y???p?z' ; |
| 244 | 84 | h-you | |
| 245 | 271 | h-you | -- ??Z????f?[?^?y???p?z
|
| 246 | 325 | h-you | drop table if exists bk_estimatedata cascade; |
| 247 | 84 | h-you | |
| 248 | 198 | h-you | create table bk_estimatedata ( |
| 249 | 271 | h-you | SaveDate datetime not null comment '?????t' |
| 250 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 251 | , LineCount decimal(3,0) unsigned not null comment '?s???' |
||
| 252 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 253 | , FixedItemCode varchar(1) comment '?????L?[' |
||
| 254 | , ItemName varchar(120) comment '??????' |
||
| 255 | , SpecName varchar(120) comment '???^?i???E?`??E???@' |
||
| 256 | , PriceValue decimal(14,0) not null comment '???z' |
||
| 257 | , note varchar(60) comment '???l' |
||
| 258 | , MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
||
| 259 | , InputFlg decimal(1,0) not null comment '????t???O' |
||
| 260 | , EntryDate datetime not null comment '?o?^???t' |
||
| 261 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 262 | 198 | h-you | , constraint bk_estimatedata_PKC primary key (SaveDate,ConstructionCode,LineCount) |
| 263 | 271 | h-you | ) comment '??Z????f?[?^?y???p?z' ; |
| 264 | 84 | h-you | |
| 265 | 271 | h-you | -- ??Z????y?[?W?f?[?^?y???p?z
|
| 266 | 325 | h-you | drop table if exists bk_estimatedatabody cascade; |
| 267 | 84 | h-you | |
| 268 | 198 | h-you | create table bk_estimatedatabody ( |
| 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 | , Category decimal(1,0) not null comment '?y?[?W??' |
||
| 273 | , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?[' |
||
| 274 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 275 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 276 | , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?[' |
||
| 277 | , PageTitle varchar(120) not null comment '?y?[?W?\????' |
||
| 278 | , DetailLineCount decimal(3,0) unsigned not null comment '????s???' |
||
| 279 | , EntryDate datetime not null comment '?o?^???t' |
||
| 280 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 281 | 198 | h-you | , constraint bk_estimatedatabody_PKC primary key (SaveDate,ConstructionCode,PageCount) |
| 282 | 271 | h-you | ) comment '??Z????y?[?W?f?[?^?y???p?z' ; |
| 283 | 84 | h-you | |
| 284 | 271 | h-you | -- ??Z????f?[?^????y???p?z
|
| 285 | 325 | h-you | drop table if exists bk_estimatedatadetail cascade; |
| 286 | 84 | h-you | |
| 287 | 198 | h-you | create table bk_estimatedatadetail ( |
| 288 | 271 | h-you | SaveDate datetime not null comment '?????t' |
| 289 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 290 | , PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
||
| 291 | , LineCount decimal(3,0) unsigned not null comment '?s???' |
||
| 292 | , DataType decimal(1,0) not null comment '?f?[?^???' |
||
| 293 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 294 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 295 | , SpecCode decimal(5,0) unsigned not null comment '???L?[' |
||
| 296 | , ItemName varchar(120) comment '??????' |
||
| 297 | , SpecName varchar(120) comment '???^?i???E?`??E???@' |
||
| 298 | , Unitcount decimal(8,2) not null comment '????' |
||
| 299 | , UnitName varchar(30) comment '?P?????' |
||
| 300 | , UnitPrice decimal(9,2) not null comment '?P??' |
||
| 301 | , LineTotal decimal(12,0) not null comment '???z' |
||
| 302 | , note varchar(60) comment '???l' |
||
| 303 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 304 | , MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
||
| 305 | , InputFlg decimal(1,0) comment '????t???O' |
||
| 306 | , EntryDate datetime not null comment '?o?^???t' |
||
| 307 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 308 | 198 | h-you | , constraint bk_estimatedatadetail_PKC primary key (SaveDate,ConstructionCode,PageCount,LineCount) |
| 309 | 271 | h-you | ) comment '??Z????f?[?^????y???p?z' ; |
| 310 | 84 | h-you | |
| 311 | 353 | h-you | -- ?\?Z???W?v?R?[?h?}?X?^
|
| 312 | drop table if exists budgetsumcode cascade; |
||
| 313 | |||
| 314 | create table budgetsumcode ( |
||
| 315 | BlockCode decimal(2,0) unsigned not null comment '?u???b?N???' |
||
| 316 | , GroupCode decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 317 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 318 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 319 | , ElementsName varchar(100) not null comment '?v?f????' |
||
| 320 | , EntryDate datetime not null comment '?o?^???t' |
||
| 321 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 322 | , constraint budgetsumcode_PKC primary key (BlockCode,GroupCode,ComponentCode,ItemCode) |
||
| 323 | ) comment '?\?Z???W?v?R?[?h?}?X?^' ; |
||
| 324 | |||
| 325 | 271 | h-you | -- ?@?l?i?}?X?^
|
| 326 | 325 | h-you | drop table if exists businesstypemaster cascade; |
| 327 | 84 | h-you | |
| 328 | 198 | h-you | create table businesstypemaster ( |
| 329 | 271 | h-you | BusinessTypeCode decimal(5,0) unsigned not null comment '?@?l?i?R?[?h' |
| 330 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 331 | , BusinessTypeName varchar(100) not null comment '???' |
||
| 332 | , EntryDate datetime not null comment '?o?^???t' |
||
| 333 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 334 | 198 | h-you | , constraint businesstypemaster_PKC primary key (BusinessTypeCode) |
| 335 | 271 | h-you | ) comment '?@?l?i?}?X?^' ; |
| 336 | 198 | h-you | |
| 337 | create index BusinessTypeMaster_Index1 |
||
| 338 | on businesstypemaster(DisplayOrder);
|
||
| 339 | |||
| 340 | 332 | h-you | -- ?S????????????f?[?^
|
| 341 | drop table if exists chgchargedep cascade; |
||
| 342 | |||
| 343 | create table chgchargedep ( |
||
| 344 | PersonCode decimal(8,0) not null comment '?S????R?[?h' |
||
| 345 | , StartDate date not null comment '?J?n?N????' |
||
| 346 | , CompDate date not null comment '?I???N????' |
||
| 347 | , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
||
| 348 | , DepartmentName varchar(60) comment '??????' |
||
| 349 | , EntryDate datetime not null comment '?o?^???t' |
||
| 350 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 351 | , constraint chgchargedep_PKC primary key (PersonCode,StartDate) |
||
| 352 | ) comment '?S????????????f?[?^' ; |
||
| 353 | |||
| 354 | 353 | h-you | -- ?H???S????X?????f?[?^
|
| 355 | drop table if exists chgconstrcharge cascade; |
||
| 356 | |||
| 357 | create table chgconstrcharge ( |
||
| 358 | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 359 | , Division decimal(1,0) not null comment '????' |
||
| 360 | , SeqNo smallint(5) unsigned not null comment '?A??' |
||
| 361 | , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
||
| 362 | , PersonCode decimal(8,0) not null comment '?S????R?[?h' |
||
| 363 | , StartDate date comment '?S???J?n?N????' |
||
| 364 | , CompDate date comment '?S???I???N????' |
||
| 365 | , EntryDate datetime not null comment '?o?^???t' |
||
| 366 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 367 | , constraint chgconstrcharge_PKC primary key (ConstructionCode,Division,SeqNo) |
||
| 368 | ) comment '?H???S????X?????f?[?^' ; |
||
| 369 | |||
| 370 | 271 | h-you | -- ????????}?X?^
|
| 371 | 325 | h-you | drop table if exists commoncostlarge cascade; |
| 372 | 84 | h-you | |
| 373 | 198 | h-you | create table commoncostlarge ( |
| 374 | 271 | h-you | LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 375 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 376 | , LargeName varchar(50) not null comment '???????' |
||
| 377 | , CommentText varchar(120) comment '????????' |
||
| 378 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 379 | , EntryDate datetime not null comment '?o?^???t' |
||
| 380 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 381 | 198 | h-you | , constraint commoncostlarge_PKC primary key (LargeCode) |
| 382 | 271 | h-you | ) comment '????????}?X?^' ; |
| 383 | 84 | h-you | |
| 384 | 271 | h-you | -- ?????H???A?}?X?^
|
| 385 | 325 | h-you | drop table if exists commoncostlinkms cascade; |
| 386 | 84 | h-you | |
| 387 | 198 | h-you | create table commoncostlinkms ( |
| 388 | 271 | h-you | LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 389 | , MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
||
| 390 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 391 | , EntryDate datetime comment '?o?^???t' |
||
| 392 | , UpdateDate datetime comment '?X?V???t' |
||
| 393 | 198 | h-you | , constraint commoncostlinkms_PKC primary key (LargeCode,MiddleCode,ItemCode) |
| 394 | 271 | h-you | ) comment '?????H???A?}?X?^' ; |
| 395 | 84 | h-you | |
| 396 | 271 | h-you | -- ?????????}?X?^
|
| 397 | 325 | h-you | drop table if exists commoncostmiddle cascade; |
| 398 | 84 | h-you | |
| 399 | 198 | h-you | create table commoncostmiddle ( |
| 400 | 271 | h-you | LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 401 | , MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
||
| 402 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 403 | , MiddleName varchar(50) not null comment '?????????' |
||
| 404 | , CommentText varchar(120) comment '????????' |
||
| 405 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 406 | , EntryDate datetime not null comment '?o?^???t' |
||
| 407 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 408 | 198 | h-you | , constraint commoncostmiddle_PKC primary key (LargeCode,MiddleCode) |
| 409 | 271 | h-you | ) comment '?????????}?X?^' ; |
| 410 | 84 | h-you | |
| 411 | 271 | h-you | -- ?????????L?[?}?X?^
|
| 412 | 325 | h-you | drop table if exists commoncostmiddlesearchword cascade; |
| 413 | 84 | h-you | |
| 414 | 198 | h-you | create table commoncostmiddlesearchword ( |
| 415 | 271 | h-you | LargeCode decimal(5,0) unsigned not null comment '????L?[' |
| 416 | , MiddleCode decimal(5,0) unsigned not null comment '??????L?[' |
||
| 417 | , SeqNo decimal(5,0) unsigned not null comment '????' |
||
| 418 | , SearchWord varchar(50) not null comment '????????' |
||
| 419 | , EntryDate datetime not null comment '?o?^???t' |
||
| 420 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 421 | 198 | h-you | , constraint commoncostmiddlesearchword_PKC primary key (LargeCode,MiddleCode,SeqNo) |
| 422 | 271 | h-you | ) comment '?????????L?[?}?X?^' ; |
| 423 | 84 | h-you | |
| 424 | 271 | h-you | -- ?\???H???A?}?X?^
|
| 425 | 325 | h-you | drop table if exists componentlinkmaster cascade; |
| 426 | 84 | h-you | |
| 427 | 198 | h-you | create table componentlinkmaster ( |
| 428 | 271 | h-you | ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 429 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 430 | , DisplayOrder decimal(5,0) unsigned comment '?\????' |
||
| 431 | , EntryDate datetime not null comment '?o?^???t' |
||
| 432 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 433 | 198 | h-you | , constraint componentlinkmaster_PKC primary key (ComponentCode,ItemCode) |
| 434 | 271 | h-you | ) comment '?\???H???A?}?X?^' ; |
| 435 | 84 | h-you | |
| 436 | 198 | h-you | create index ComponentLinkMaster_Index1 |
| 437 | on componentlinkmaster(ComponentCode);
|
||
| 438 | 84 | h-you | |
| 439 | 198 | h-you | create index ComponentLinkMaster_Index2 |
| 440 | on componentlinkmaster(ItemCode);
|
||
| 441 | 84 | h-you | |
| 442 | 271 | h-you | -- ?\???}?X?^
|
| 443 | 325 | h-you | drop table if exists componentmaster cascade; |
| 444 | 84 | h-you | |
| 445 | 198 | h-you | create table componentmaster ( |
| 446 | 271 | h-you | ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 447 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 448 | , ComponentName varchar(120) not null comment '?\??????' |
||
| 449 | , SubItemsFlg decimal(1,0) comment '???????t???O' |
||
| 450 | , DirectInputFlg decimal(1,0) comment '???????t???O' |
||
| 451 | , MyExpensesFlg decimal(1,0) comment '????o??t???O' |
||
| 452 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 453 | , EntryDate datetime not null comment '?o?^???t' |
||
| 454 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 455 | 198 | h-you | , constraint componentmaster_PKC primary key (ComponentCode) |
| 456 | 271 | h-you | ) comment '?\???}?X?^' ; |
| 457 | 84 | h-you | |
| 458 | 198 | h-you | create index ComponentMaster_Index1 |
| 459 | on componentmaster(DisplayOrder);
|
||
| 460 | 84 | h-you | |
| 461 | 271 | h-you | -- ?\???H??????A?}?X?^
|
| 462 | 325 | h-you | drop table if exists componenttotypemaster cascade; |
| 463 | 84 | h-you | |
| 464 | 198 | h-you | create table componenttotypemaster ( |
| 465 | 271 | h-you | ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 466 | , TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
||
| 467 | , Dummy decimal(1,0) not null comment '?_?~?[????' |
||
| 468 | , EntryDate datetime not null comment '?o?^???t' |
||
| 469 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 470 | 198 | h-you | , constraint componenttotypemaster_PKC primary key (ComponentCode,TypeCode) |
| 471 | 271 | h-you | ) comment '?\???H??????A?}?X?^' ; |
| 472 | 84 | h-you | |
| 473 | 198 | h-you | create index ComponentToTypeMaster_Index1 |
| 474 | on componenttotypemaster(ComponentCode);
|
||
| 475 | 84 | h-you | |
| 476 | 198 | h-you | create index ComponentToTypeMaster_Index2 |
| 477 | on componenttotypemaster(TypeCode);
|
||
| 478 | 84 | h-you | |
| 479 | 342 | h-you | -- ?H???????o??f?[?^
|
| 480 | drop table if exists constrledgerexpenses cascade; |
||
| 481 | |||
| 482 | create table constrledgerexpenses ( |
||
| 483 | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 484 | , SeqNo decimal(5,0) not null comment '?}??' |
||
| 485 | , NameCode decimal(5,0) unsigned not null comment '?o??R?[?h' |
||
| 486 | , ExpensesRaito decimal(4,2) not null comment '?o??' |
||
| 487 | , ExpensesValue decimal(10,0) not null comment '?o????z' |
||
| 488 | , EntryDate datetime not null comment '?o?^???t' |
||
| 489 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 490 | , constraint constrledgerexpenses_PKC primary key (ConstructionCode,SeqNo,NameCode) |
||
| 491 | ) comment '?H???????o??f?[?^' ; |
||
| 492 | |||
| 493 | create index ConstrLedgerExpenses_Index1 |
||
| 494 | on constrledgerexpenses(ConstructionCode);
|
||
| 495 | |||
| 496 | create index ConstrLedgerExpenses_Index2 |
||
| 497 | on constrledgerexpenses(SeqNo);
|
||
| 498 | |||
| 499 | create index ConstrLedgerExpenses_Index3 |
||
| 500 | on constrledgerexpenses(NameCode);
|
||
| 501 | |||
| 502 | 271 | h-you | -- ?H????{???
|
| 503 | 325 | h-you | drop table if exists constructionbaseinfo cascade; |
| 504 | 84 | h-you | |
| 505 | 198 | h-you | create table constructionbaseinfo ( |
| 506 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 507 | , TyingFlg decimal(1,0) not null comment '?R?t?f?[?^?t???O' |
||
| 508 | , JoinFlg decimal(1,0) not null comment '?????_??H???t???O' |
||
| 509 | , ConstructionYear smallint(5) unsigned not null comment '?H???N?x' |
||
| 510 | , ConstructionPeriod smallint(5) unsigned not null comment '?H??????' |
||
| 511 | , RequestedDate date comment '??????' |
||
| 512 | , EstimatesSubmitDeadline date comment '?????o????' |
||
| 513 | , EstimatesSubmittedDate date comment '?????o??' |
||
| 514 | , ProvisionalOrderDate date comment '?????' |
||
| 515 | , OrderDate date comment '???' |
||
| 516 | , OrderStartingDate date comment '?J?n?\???' |
||
| 517 | , OrderCompletionDate date comment '?????\???' |
||
| 518 | , PreparationStartDate date comment '?{?H?????J?n??' |
||
| 519 | , ConstructionStartingDate date comment '?{?H?J?n??' |
||
| 520 | , ConstructionCompletionDate date comment '?{?H??????' |
||
| 521 | , NonOrderDate date comment '????' |
||
| 522 | , OrdersDecisionPrice decimal(12,0) not null comment '??????????z' |
||
| 523 | , OrdersDecisionPriceInTax decimal(12,0) not null comment '??????????z' |
||
| 524 | 332 | h-you | , SalesDepCode decimal(5,0) unsigned not null comment '?c??S????????R?[?h' |
| 525 | , SalesPersonCode decimal(8,0) unsigned not null comment '?c??S????R?[?h' |
||
| 526 | 338 | h-you | , SalesSubDepCode decimal(5,0) unsigned not null comment '?c????S????????R?[?h' |
| 527 | , SalesSubPersonCode decimal(8,0) unsigned not null comment '?c????S????R?[?h' |
||
| 528 | 332 | h-you | , ConstrDepCode decimal(5,0) unsigned not null comment '?H???S????????R?[?h' |
| 529 | , ConstructionPersonCode decimal(8,0) not null comment '?H???S????R?[?h' |
||
| 530 | , ConstrSubDepCode decimal(5,0) unsigned not null comment '?H?????S????????R?[?h' |
||
| 531 | , ConstrSubPersonCode decimal(8,0) not null comment '?H?????S????R?[?h' |
||
| 532 | , ConstrInstrDepCode decimal(5,0) unsigned not null comment '?H???w?????????R?[?h' |
||
| 533 | , ConstructionInstructor decimal(8,0) not null comment '?H???w?????R?[?h' |
||
| 534 | 271 | h-you | , TransferConstruction decimal(8,0) not null comment '?H??????R?[?h' |
| 535 | , TransferConstructionDate date comment '?H??????' |
||
| 536 | 332 | h-you | , OrderersDivision decimal(5,0) not null comment '????????R?[?h' |
| 537 | 271 | h-you | , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h' |
| 538 | , EstimatesExpirationDate date comment '????L??????' |
||
| 539 | , ConstructionPeriodStart date comment '?_??H???J?n??' |
||
| 540 | , ConstructionPeriodEnd date comment '?_??H??????' |
||
| 541 | , ConstructionPeriodStart2 date comment '?_??H???J?n?i???????j' |
||
| 542 | , ConstructionPeriodEnd2 date comment '?_??H???????i???????j' |
||
| 543 | , StartDate date comment '?H???J?n??' |
||
| 544 | , EndDate date comment '?H???I????' |
||
| 545 | , PurchaseOrderMailingDate date comment '???????X????' |
||
| 546 | , PurchaseOrderReturnDate date comment '???????????' |
||
| 547 | , PurchaseOrderReturnCheckDate date comment '??????????m?F??' |
||
| 548 | , ConsumptionTaxFlg decimal(1,0) not null comment '?????t???O' |
||
| 549 | , PrimeContractorFlg decimal(1,0) not null comment '?????t???O' |
||
| 550 | , SalesCostFlg decimal(1,0) not null comment '?c??o?????t???O' |
||
| 551 | , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O' |
||
| 552 | , ConstructionType decimal(5,0) not null comment '?H?????R?[?h' |
||
| 553 | , EstimateType decimal(1,0) not null comment '??????' |
||
| 554 | , BillingStartDate date not null comment '?????????J?n??' |
||
| 555 | , BillingDate date not null comment '??????' |
||
| 556 | , BillingSplitFlg decimal(1,0) not null comment '??????t???O' |
||
| 557 | , BillingSendDate date comment '???????X??/??n????' |
||
| 558 | , LedgerComplateDate date not null comment '?H????????????????t' |
||
| 559 | 322 | h-you | , InspectPlanningDate date not null comment '?????\???' |
| 560 | , InspectExecuteDate date not null comment '???????s??' |
||
| 561 | , RevCompleteDate date not null comment '??????????????' |
||
| 562 | 271 | h-you | , EntryDate datetime not null comment '?o?^???t' |
| 563 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 564 | 198 | h-you | , constraint constructionbaseinfo_PKC primary key (ConstructionCode) |
| 565 | 271 | h-you | ) comment '?H????{???' ; |
| 566 | 84 | h-you | |
| 567 | 198 | h-you | create index BaseInfo_Index1 |
| 568 | on constructionbaseinfo(ConstructionStatusFlg);
|
||
| 569 | 84 | h-you | |
| 570 | 198 | h-you | create index BaseInfo_Index2 |
| 571 | on constructionbaseinfo(EstimateType);
|
||
| 572 | 84 | h-you | |
| 573 | 198 | h-you | create index BaseInfo_Index3 |
| 574 | on constructionbaseinfo(SalesPersonCode);
|
||
| 575 | 84 | h-you | |
| 576 | 198 | h-you | create index BaseInfo_Index4 |
| 577 | on constructionbaseinfo(ConstructionPersonCode);
|
||
| 578 | 84 | h-you | |
| 579 | 198 | h-you | create index BaseInfo_Index5 |
| 580 | on constructionbaseinfo(ConstructionInstructor);
|
||
| 581 | 84 | h-you | |
| 582 | 198 | h-you | create index BaseInfo_Index6 |
| 583 | on constructionbaseinfo(ConstructionPeriod);
|
||
| 584 | 84 | h-you | |
| 585 | 271 | h-you | -- ?H????{????
|
| 586 | 325 | h-you | drop table if exists constructionbaseinfodetail cascade; |
| 587 | 84 | h-you | |
| 588 | 198 | h-you | create table constructionbaseinfodetail ( |
| 589 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 590 | 332 | h-you | , DetailNo decimal(3,0) not null comment '??????' |
| 591 | 322 | h-you | , DetailString varchar(300) comment '??????e' |
| 592 | 271 | h-you | , EntryDate datetime not null comment '?o?^???t' |
| 593 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 594 | 198 | h-you | , constraint constructionbaseinfodetail_PKC primary key (ConstructionCode,DetailNo) |
| 595 | 271 | h-you | ) comment '?H????{????' ; |
| 596 | 84 | h-you | |
| 597 | 198 | h-you | create index BaseInfoDetail_Idx1 |
| 598 | on constructionbaseinfodetail(ConstructionCode);
|
||
| 599 | 84 | h-you | |
| 600 | 198 | h-you | create index BaseInfoDetail_Idx2 |
| 601 | on constructionbaseinfodetail(DetailNo);
|
||
| 602 | 84 | h-you | |
| 603 | 271 | h-you | -- ?H???{?H?\?Z?f?[?^
|
| 604 | 325 | h-you | drop table if exists constructionbudget cascade; |
| 605 | 84 | h-you | |
| 606 | 198 | h-you | create table constructionbudget ( |
| 607 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 608 | , CreatorCode decimal(8,0) not null comment '????R?[?h' |
||
| 609 | , CreatorName varchar(60) comment '?????' |
||
| 610 | , CreatorCosts decimal(11,0) not null comment '??????^' |
||
| 611 | , AssistantCode decimal(8,0) not null comment '???S????R?[?h' |
||
| 612 | , AssistantName varchar(60) comment '???S?????' |
||
| 613 | , AssistantCosts decimal(11,0) not null comment '???S??????^' |
||
| 614 | , InstructorCode decimal(8,0) not null comment '?H???w?????R?[?h' |
||
| 615 | , InstructorName varchar(60) comment '?H???w??????' |
||
| 616 | , InstructorCosts decimal(11,0) not null comment '?H???w???????^' |
||
| 617 | , CreateDate date not null comment '????' |
||
| 618 | , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
||
| 619 | , ConstructionStart date not null comment '?_??H???J?n' |
||
| 620 | , ConstructionEnd date not null comment '?_??H??????' |
||
| 621 | , InstructorTimes decimal(5,2) not null comment '?w???????????' |
||
| 622 | , SalaryFlg decimal(1,0) not null comment '???^?U????' |
||
| 623 | , SalaryDays decimal(4,0) not null comment '?U??????' |
||
| 624 | , A_SalaryFlg decimal(1,0) not null comment '???S??????^?U????' |
||
| 625 | , A_SalaryDays decimal(4,0) not null comment '???S????U??????' |
||
| 626 | , I_SalaryFlg decimal(1,0) not null comment '?w???????^?U????' |
||
| 627 | , I_SalaryDays decimal(4,0) not null comment '?w?????U??????' |
||
| 628 | , OrdersDecisionPrice decimal(12,0) not null comment '??????????z' |
||
| 629 | , EntryDate datetime not null comment '?o?^???t' |
||
| 630 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 631 | 198 | h-you | , constraint constructionbudget_PKC primary key (ConstructionCode) |
| 632 | 271 | h-you | ) comment '?H???{?H?\?Z?f?[?^' ; |
| 633 | 84 | h-you | |
| 634 | 271 | h-you | -- ?H???{?H?\?Z?f?[?^????
|
| 635 | 325 | h-you | drop table if exists constructionbudgetdetail cascade; |
| 636 | 84 | h-you | |
| 637 | 198 | h-you | create table constructionbudgetdetail ( |
| 638 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 639 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 640 | , LineCount decimal(3,0) unsigned not null comment '?s???' |
||
| 641 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 642 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 643 | , FirstString varchar(120) comment '???????' |
||
| 644 | , SecondString varchar(120) comment '?H?????e' |
||
| 645 | , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
||
| 646 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 647 | , CompanyName varchar(120) comment '?????????' |
||
| 648 | , EstimatePrice decimal(12,0) not null comment '??Z????????z' |
||
| 649 | , NegotiationPrice decimal(12,0) not null comment '??Z????????z' |
||
| 650 | , OrderDesiredAmount decimal(12,0) not null comment '??????]???z' |
||
| 651 | , ExecutionAmount decimal(12,0) not null comment '???s???z' |
||
| 652 | , AmountConfigRate decimal(5,2) not null comment '???z?\????' |
||
| 653 | , NegotiateFlg decimal(1,0) not null comment '?????????t???O' |
||
| 654 | , EntryDate datetime not null comment '?o?^???t' |
||
| 655 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 656 | 198 | h-you | , constraint constructionbudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 657 | 271 | h-you | ) comment '?H???{?H?\?Z?f?[?^????' ; |
| 658 | 84 | h-you | |
| 659 | 271 | h-you | -- ?H??}?X?^
|
| 660 | 325 | h-you | drop table if exists constructionitemmaster cascade; |
| 661 | 84 | h-you | |
| 662 | 198 | h-you | create table constructionitemmaster ( |
| 663 | 271 | h-you | ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 664 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 665 | , ItemName varchar(120) not null comment '?H????' |
||
| 666 | , SubItemsFlg decimal(1,0) comment '???????t???O' |
||
| 667 | , MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
||
| 668 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 669 | , EntryDate datetime not null comment '?o?^???t' |
||
| 670 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 671 | 198 | h-you | , constraint constructionitemmaster_PKC primary key (ItemCode) |
| 672 | 271 | h-you | ) comment '?H??}?X?^' ; |
| 673 | 84 | h-you | |
| 674 | 271 | h-you | -- ?H???????f?[?^
|
| 675 | 325 | h-you | drop table if exists constructionledger cascade; |
| 676 | 84 | h-you | |
| 677 | 198 | h-you | create table constructionledger ( |
| 678 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 679 | , ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
||
| 680 | , CreatorCode decimal(8,0) comment '????R?[?h' |
||
| 681 | , CreatorName varchar(60) comment '?????' |
||
| 682 | , CreateDate date not null comment '????' |
||
| 683 | , ConstructionTimes decimal(5,2) not null comment '?H???i?P??E???j' |
||
| 684 | , ConstructionStart date not null comment '?_??H???J?n' |
||
| 685 | , ConstructionEnd date not null comment '?_??H??????' |
||
| 686 | , OrdersDecisionPrice decimal(14,0) not null comment '??????????z' |
||
| 687 | , CompanyExpenses decimal(10,0) not null comment '???o???v' |
||
| 688 | , DepartmentExpenses decimal(10,0) not null comment '?????o???v' |
||
| 689 | , SalesExpenses decimal(10,0) not null comment '?c??o???v' |
||
| 690 | , TotalPayment decimal(10,0) not null comment '???x???z' |
||
| 691 | , GrossProfit decimal(10,0) not null comment '?e??' |
||
| 692 | , Allowance decimal(10,0) not null comment '???^' |
||
| 693 | , NetProfit decimal(10,0) not null comment '?????v' |
||
| 694 | , ComplateFlg decimal(1,0) not null comment '????????t???O' |
||
| 695 | , IntegrationFlg decimal(1,0) not null comment '????z??Z?t???O' |
||
| 696 | , EntryDate datetime not null comment '?o?^???t' |
||
| 697 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 698 | 198 | h-you | , constraint constructionledger_PKC primary key (ConstructionCode) |
| 699 | 271 | h-you | ) comment '?H???????f?[?^' ; |
| 700 | 84 | h-you | |
| 701 | 338 | h-you | create index constructionledger_Index1 |
| 702 | on constructionledger(ConstructionStart);
|
||
| 703 | |||
| 704 | create index constructionledger_Index2 |
||
| 705 | on constructionledger(ConstructionEnd);
|
||
| 706 | |||
| 707 | 271 | h-you | -- ?H??????????f?[?^
|
| 708 | 325 | h-you | drop table if exists constructionledgerdetail cascade; |
| 709 | 84 | h-you | |
| 710 | 198 | h-you | create table constructionledgerdetail ( |
| 711 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 712 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 713 | 302 | h-you | , LineCount decimal(4,0) unsigned not null comment '?s???' |
| 714 | 271 | h-you | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 715 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 716 | , FirstString varchar(120) comment '???????' |
||
| 717 | , SecondString varchar(120) comment '?H?????e' |
||
| 718 | , CompanyType decimal(1,0) not null comment '??????R?[?h?^?C?v' |
||
| 719 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 720 | , CompanyName varchar(120) comment '?????????' |
||
| 721 | , EstimatePrice decimal(12,0) not null comment '?\?Z?i????j???z' |
||
| 722 | , ExecutionAmount decimal(12,0) not null comment '???s???z' |
||
| 723 | , AmountConfigRate decimal(5,2) not null comment '???z?\????' |
||
| 724 | , PaymentBurden decimal(12,0) not null comment '?x????U?z' |
||
| 725 | , FixDataFlg decimal(1,0) not null comment '???f?[?^?t???O' |
||
| 726 | , IndependentFlg decimal(1,0) not null comment '????f?[?^?t???O' |
||
| 727 | , FluctuationFlg decimal(1,0) not null comment '?????f?[?^?t???O' |
||
| 728 | , SalaryFlg decimal(1,0) not null comment '???^?U????' |
||
| 729 | , SalaryDays decimal(4,0) not null comment '???^?U??????' |
||
| 730 | , OperatingFlg decimal(1,0) not null comment '?S?????t???O' |
||
| 731 | , SourceCode decimal(10,0) unsigned not null comment '???H?????' |
||
| 732 | , JoinTitleFlg decimal(1,0) not null comment '?H??????^?C?g??' |
||
| 733 | , SalaryOnRegist decimal(12,0) not null comment '?o?^?????z???^' |
||
| 734 | , PurchaseOrderFlg decimal(2,0) not null comment '?????????s?t???O' |
||
| 735 | 302 | h-you | , DetailCount decimal(4,0) unsigned not null comment '??????' |
| 736 | 271 | h-you | , EntryDate datetime not null comment '?o?^???t' |
| 737 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 738 | 198 | h-you | , constraint constructionledgerdetail_PKC primary key (ConstructionCode,GroupCount,LineCount) |
| 739 | 271 | h-you | ) comment '?H??????????f?[?^' ; |
| 740 | 84 | h-you | |
| 741 | 198 | h-you | create index LedgerDetail_Index01 |
| 742 | on constructionledgerdetail(ConstructionCode);
|
||
| 743 | 84 | h-you | |
| 744 | 198 | h-you | create index LedgerDetail_Index02 |
| 745 | on constructionledgerdetail(GroupCount);
|
||
| 746 | 84 | h-you | |
| 747 | 198 | h-you | create index LedgerDetail_Index03 |
| 748 | 302 | h-you | on constructionledgerdetail(LineCount);
|
| 749 | |||
| 750 | create index LedgerDetail_Index04 |
||
| 751 | 198 | h-you | on constructionledgerdetail(SourceCode);
|
| 752 | 84 | h-you | |
| 753 | 302 | h-you | create index LedgerDetail_Index05 |
| 754 | on constructionledgerdetail(DetailCount);
|
||
| 755 | |||
| 756 | 338 | h-you | create index LedgerDetail_Index06 |
| 757 | on constructionledgerdetail(SalaryFlg);
|
||
| 758 | |||
| 759 | create index LedgerDetail_Index07 |
||
| 760 | on constructionledgerdetail(CompanyCode);
|
||
| 761 | |||
| 762 | 271 | h-you | -- ?H?????????s?f?[?^
|
| 763 | 325 | h-you | drop table if exists constructionledgerexcute cascade; |
| 764 | 84 | h-you | |
| 765 | 198 | h-you | create table constructionledgerexcute ( |
| 766 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 767 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???' |
||
| 768 | 302 | h-you | , LineCount decimal(4,0) unsigned not null comment '?s???' |
| 769 | 271 | h-you | , ColumnCount decimal(3,0) not null comment '????' |
| 770 | , PaymentAmount decimal(12,0) not null comment '?x?????z' |
||
| 771 | , TargetMonth date not null comment '???N??' |
||
| 772 | , EntryDate datetime not null comment '?o?^???t' |
||
| 773 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 774 | 198 | h-you | , constraint constructionledgerexcute_PKC primary key (ConstructionCode,GroupCount,LineCount,ColumnCount) |
| 775 | 271 | h-you | ) comment '?H?????????s?f?[?^' ; |
| 776 | 84 | h-you | |
| 777 | 198 | h-you | create index LedgerExcute_Index1 |
| 778 | on constructionledgerexcute(ConstructionCode,TargetMonth,GroupCount,LineCount);
|
||
| 779 | 84 | h-you | |
| 780 | 271 | h-you | -- ?H???????N???
|
| 781 | 325 | h-you | drop table if exists constructionlink cascade; |
| 782 | 84 | h-you | |
| 783 | 198 | h-you | create table constructionlink ( |
| 784 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 785 | , FluctuationCode decimal(10,0) not null comment '?q?H?????' |
||
| 786 | , LinkType decimal(1,0) not null comment '?????N???' |
||
| 787 | , EntryDate datetime not null comment '?o?^???t' |
||
| 788 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 789 | 198 | h-you | , constraint constructionlink_PKC primary key (ConstructionCode,FluctuationCode) |
| 790 | 271 | h-you | ) comment '?H???????N???' ; |
| 791 | 101 | h-you | |
| 792 | 198 | h-you | create index ConstructionLink_Index1 |
| 793 | on constructionlink(ConstructionCode);
|
||
| 794 | 101 | h-you | |
| 795 | 198 | h-you | create index ConstructionLink_Index2 |
| 796 | on constructionlink(FluctuationCode);
|
||
| 797 | 84 | h-you | |
| 798 | 198 | h-you | create index ConstructionLink_Index3 |
| 799 | on constructionlink(LinkType);
|
||
| 800 | 84 | h-you | |
| 801 | 271 | h-you | -- ?H????????
|
| 802 | 325 | h-you | drop table if exists constructionmaterialinfo cascade; |
| 803 | 84 | h-you | |
| 804 | 198 | h-you | create table constructionmaterialinfo ( |
| 805 | 271 | h-you | CONSTRUCTIONCODE int(10) unsigned default 0 not null comment '?H?????' |
| 806 | , MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h' |
||
| 807 | 277 | h-you | , PROCESSDATE datetime default '0000-00-00 00:00:00' not null comment '?????N????' |
| 808 | 271 | h-you | , RENTCOUNT smallint(5) unsigned comment '??o??' |
| 809 | , REPAYCOUNT smallint(5) unsigned comment '??p??' |
||
| 810 | 277 | h-you | , JUNKCOUNT smallint(5) unsigned comment '?j????' |
| 811 | 271 | h-you | , COMPLETEFLG tinyint(3) unsigned comment '?????t???O' |
| 812 | , ENTRYDATE datetime comment '?o?^???t' |
||
| 813 | , UPDATEDATE datetime comment '?X?V???t' |
||
| 814 | 277 | h-you | , constraint constructionmaterialinfo_PKC primary key (CONSTRUCTIONCODE,MATERIALITEMCODE,PROCESSDATE) |
| 815 | 271 | h-you | ) comment '?H????????' ; |
| 816 | 84 | h-you | |
| 817 | 271 | h-you | -- ????i?????t?f?[?^
|
| 818 | 325 | h-you | drop table if exists constructionprogressdate cascade; |
| 819 | 84 | h-you | |
| 820 | 198 | h-you | create table constructionprogressdate ( |
| 821 | 271 | h-you | ConstructionCode decimal(10,0) not null comment '?H?????' |
| 822 | , ConstructionStatusFlg decimal(2,0) not null comment '???H?????' |
||
| 823 | , PreviousStatusFlg decimal(2,0) comment '??X?O???' |
||
| 824 | , ChangeDate datetime not null comment '?????t' |
||
| 825 | , ChangePersonCode decimal(8,0) not null comment '???S????' |
||
| 826 | , EntryDate datetime not null comment '?o?^???t' |
||
| 827 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 828 | 342 | h-you | , constraint constructionprogressdate_PKC primary key (ConstructionCode,ChangeDate) |
| 829 | 271 | h-you | ) comment '????i?????t?f?[?^' ; |
| 830 | 84 | h-you | |
| 831 | 342 | h-you | create index ConstrProg_Index1 |
| 832 | on constructionprogressdate(ConstructionCode);
|
||
| 833 | |||
| 834 | create index ConstrProg_Index2 |
||
| 835 | on constructionprogressdate(ConstructionStatusFlg);
|
||
| 836 | |||
| 837 | create index ConstrProg_Index3 |
||
| 838 | on constructionprogressdate(ChangeDate);
|
||
| 839 | |||
| 840 | 271 | h-you | -- ???}?X?^
|
| 841 | 325 | h-you | drop table if exists constructionspecmaster cascade; |
| 842 | 84 | h-you | |
| 843 | 198 | h-you | create table constructionspecmaster ( |
| 844 | 271 | h-you | ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 845 | , SpecCode decimal(5,0) unsigned not null comment '???L?[' |
||
| 846 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 847 | , ItemName varchar(120) comment '??????' |
||
| 848 | , SpecName varchar(120) comment '??????' |
||
| 849 | , UnitName varchar(30) comment '?P?????' |
||
| 850 | , UnitPrice decimal(9,2) not null comment '?P??' |
||
| 851 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 852 | , EntryDate datetime not null comment '?o?^???t' |
||
| 853 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 854 | 198 | h-you | , constraint constructionspecmaster_PKC primary key (ItemCode,SpecCode) |
| 855 | 271 | h-you | ) comment '???}?X?^' ; |
| 856 | 84 | h-you | |
| 857 | 198 | h-you | create index ConstructionSpecMaster_Index1 |
| 858 | on constructionspecmaster(DisplayOrder);
|
||
| 859 | 84 | h-you | |
| 860 | 271 | h-you | -- ???P???}?X?^
|
| 861 | 325 | h-you | drop table if exists constructionspecunitprice cascade; |
| 862 | 84 | h-you | |
| 863 | 198 | h-you | create table constructionspecunitprice ( |
| 864 | 271 | h-you | ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
| 865 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 866 | , SpecCode decimal(5,0) unsigned not null comment '???L?[' |
||
| 867 | , ConstructionTypeCode mediumint(8) unsigned not null comment '?H?????R?[?h' |
||
| 868 | , UnitPrice decimal(9,2) not null comment '?P??' |
||
| 869 | , EntryDate datetime not null comment '?o?^???t' |
||
| 870 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 871 | 198 | h-you | , constraint constructionspecunitprice_PKC primary key (ComponentCode,ItemCode,SpecCode,ConstructionTypeCode) |
| 872 | 271 | h-you | ) comment '???P???}?X?^' ; |
| 873 | 84 | h-you | |
| 874 | 271 | h-you | -- ?H?????}?X?^
|
| 875 | 325 | h-you | drop table if exists constructiontypemaster cascade; |
| 876 | 84 | h-you | |
| 877 | 198 | h-you | create table constructiontypemaster ( |
| 878 | 271 | h-you | TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 879 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 880 | , NameString varchar(100) not null comment '????' |
||
| 881 | 353 | h-you | , PublicFlg decimal(1,0) not null comment '?????t???O' |
| 882 | , RepairFlg decimal(1,0) not null comment '?V?z?E???C?t???O' |
||
| 883 | 271 | h-you | , SecRank decimal(1,0) not null comment '?????????N' |
| 884 | , ExpensesLink decimal(1,0) not null comment '?o??g?p??' |
||
| 885 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 886 | , EntryDate datetime not null comment '?o?^???t' |
||
| 887 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 888 | 198 | h-you | , constraint constructiontypemaster_PKC primary key (TypeCode) |
| 889 | 271 | h-you | ) comment '?H?????}?X?^' ; |
| 890 | 84 | h-you | |
| 891 | 271 | h-you | -- ?S??????o??f?[?^
|
| 892 | 325 | h-you | drop table if exists costdataofperson cascade; |
| 893 | 84 | h-you | |
| 894 | 198 | h-you | create table costdataofperson ( |
| 895 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 896 | , ActionDate date not null comment '?????t' |
||
| 897 | , DataType decimal(1,0) not null comment '?f?[?^??' |
||
| 898 | , DataAddCount decimal(5,0) unsigned not null comment '?f?[?^??????' |
||
| 899 | , TargetMonth varchar(7) not null comment '???N??' |
||
| 900 | , ConstructionCode decimal(10,0) unsigned comment '?H???R?[?h' |
||
| 901 | , SuppliersCode decimal(5,0) unsigned not null comment '?x????R?[?h' |
||
| 902 | , SuppliersName varchar(120) comment '?x??????' |
||
| 903 | , PaymentContent varchar(60) comment '?x?????e' |
||
| 904 | , PaymentType decimal(1,0) not null comment '?x?????@?t???O' |
||
| 905 | , EntryPrice decimal(12,0) not null comment '???z?i????j' |
||
| 906 | , EntryPriceInTax decimal(12,0) not null comment '???z?i????j' |
||
| 907 | , SlipNumber varchar(12) comment '?`?[???' |
||
| 908 | , ComplateFlg decimal(1,0) not null comment '???????t???O' |
||
| 909 | , ApprovalFlg decimal(1,0) not null comment '???F?t???O' |
||
| 910 | , EntryDate datetime not null comment '?o?^???t' |
||
| 911 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 912 | 198 | h-you | , constraint costdataofperson_PKC primary key (PersonCode,ActionDate,DataType,DataAddCount) |
| 913 | 271 | h-you | ) comment '?S??????o??f?[?^' ; |
| 914 | 84 | h-you | |
| 915 | 198 | h-you | create index CostDataOfPerson_Index1 |
| 916 | on costdataofperson(TargetMonth);
|
||
| 917 | 84 | h-you | |
| 918 | 198 | h-you | create index CostDataOfPerson_Index2 |
| 919 | on costdataofperson(ConstructionCode);
|
||
| 920 | 84 | h-you | |
| 921 | 271 | h-you | -- ??????o?^?\???f?[?^
|
| 922 | 325 | h-you | drop table if exists costomerregist cascade; |
| 923 | 84 | h-you | |
| 924 | 198 | h-you | create table costomerregist ( |
| 925 | 332 | h-you | CreatePersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 926 | 271 | h-you | , CreateDate date not null comment '????' |
| 927 | , SeqNo decimal(2,0) not null comment '?L?[?A??' |
||
| 928 | , DataMode decimal(1,0) not null comment '?f?[?^??' |
||
| 929 | , SourceCotegory decimal(5,0) unsigned not null comment '???????' |
||
| 930 | , SourceCode decimal(5,0) unsigned not null comment '??????R?[?h' |
||
| 931 | , PetitionPeriod decimal(4,0) unsigned not null comment '?????' |
||
| 932 | , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O' |
||
| 933 | , CorporateStatusName varchar(100) comment '?@?l?i????' |
||
| 934 | , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u' |
||
| 935 | , OrderersName1 varchar(60) not null comment '???????1' |
||
| 936 | , OrderersName2 varchar(60) comment '????????Q' |
||
| 937 | , DepartmentName varchar(60) comment '??????' |
||
| 938 | 332 | h-you | , PersonName varchar(60) comment '?S?????' |
| 939 | 271 | h-you | , ZipCode varchar(8) comment '?X????' |
| 940 | , Address1 varchar(60) comment '?Z???P' |
||
| 941 | , Address2 varchar(60) comment '?Z??2' |
||
| 942 | , Address3 varchar(60) comment '?Z??3' |
||
| 943 | , PhoneNumber varchar(13) comment '?d?b???' |
||
| 944 | , FaxNumber varchar(13) comment 'FAX???' |
||
| 945 | , MailAddress varchar(257) comment '???[???A?h???X' |
||
| 946 | , Note varchar(300) comment '???l' |
||
| 947 | , OrderCotegory decimal(5,0) unsigned not null comment '???????' |
||
| 948 | , OrderDate date not null comment '?\????' |
||
| 949 | , OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
||
| 950 | 332 | h-you | , CreateDepartmentCode decimal(5,0) unsigned not null comment '?\???????R?[?h' |
| 951 | , CreateDepartmentName varchar(60) comment '?\????????' |
||
| 952 | 271 | h-you | , EntryDate datetime not null comment '?o?^???t' |
| 953 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 954 | 332 | h-you | , constraint costomerregist_PKC primary key (CreatePersonCode,CreateDate,SeqNo) |
| 955 | 271 | h-you | ) comment '??????o?^?\???f?[?^' ; |
| 956 | 84 | h-you | |
| 957 | 198 | h-you | create index CostomerRegist_Index1 |
| 958 | on costomerregist(PetitionPeriod);
|
||
| 959 | 84 | h-you | |
| 960 | 332 | h-you | create index CostomerRegist_Index2 |
| 961 | on costomerregist(CreatePersonCode);
|
||
| 962 | |||
| 963 | create index CostomerRegist_Index3 |
||
| 964 | on costomerregist(CreateDepartmentCode);
|
||
| 965 | |||
| 966 | 271 | h-you | -- ????f?[?^
|
| 967 | 325 | h-you | drop table if exists dailydataconstruction cascade; |
| 968 | 84 | h-you | |
| 969 | 198 | h-you | create table dailydataconstruction ( |
| 970 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 971 | , DailyDataDate date not null comment '???????' |
||
| 972 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 973 | , Weather varchar(60) comment '?V?C' |
||
| 974 | , EntryDate datetime not null comment '?o?^???t' |
||
| 975 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 976 | 198 | h-you | , constraint dailydataconstruction_PKC primary key (PersonCode,DailyDataDate,ConstructionCode) |
| 977 | 271 | h-you | ) comment '????f?[?^' ; |
| 978 | 84 | h-you | |
| 979 | 198 | h-you | create index DailyDataConstruction_Index1 |
| 980 | on dailydataconstruction(PersonCode);
|
||
| 981 | 101 | h-you | |
| 982 | 198 | h-you | create index DailyDataConstruction_Index2 |
| 983 | on dailydataconstruction(DailyDataDate);
|
||
| 984 | 101 | h-you | |
| 985 | 198 | h-you | create index DailyDataConstruction_Index3 |
| 986 | on dailydataconstruction(ConstructionCode);
|
||
| 987 | 84 | h-you | |
| 988 | 271 | h-you | -- ????f?[?^ (????)
|
| 989 | 325 | h-you | drop table if exists dailydatadetail cascade; |
| 990 | 84 | h-you | |
| 991 | 198 | h-you | create table dailydatadetail ( |
| 992 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 993 | , DailyDataDate date not null comment '???????' |
||
| 994 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 995 | , SeqNo decimal(3,0) unsigned not null comment '????s???' |
||
| 996 | , JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
||
| 997 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 998 | , TodayHeadCount decimal(4,1) not null comment '?????l????' |
||
| 999 | , TotalHeadCount decimal(5,1) not null comment '??v?l????' |
||
| 1000 | , TodayWork varchar(100) comment '?????????e' |
||
| 1001 | , NextdayWork varchar(100) comment '?????????e' |
||
| 1002 | , NextdayHeadCount decimal(4,1) not null comment '?????l????' |
||
| 1003 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1004 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1005 | 198 | h-you | , constraint dailydatadetail_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1006 | 271 | h-you | ) comment '????f?[?^ (????)' ; |
| 1007 | 84 | h-you | |
| 1008 | 198 | h-you | create index DailyDataDetail_Index |
| 1009 | on dailydatadetail(PersonCode,DailyDataDate,ConstructionCode);
|
||
| 1010 | 84 | h-you | |
| 1011 | 271 | h-you | -- ????f?[?^ (??????)
|
| 1012 | 325 | h-you | drop table if exists dailydatafield cascade; |
| 1013 | 84 | h-you | |
| 1014 | 198 | h-you | create table dailydatafield ( |
| 1015 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1016 | , DailyDataDate date not null comment '???????' |
||
| 1017 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 1018 | , SeqNo decimal(3,0) unsigned not null comment '????s???' |
||
| 1019 | , PatrolTime datetime not null comment '?????' |
||
| 1020 | , ContentsText varchar(200) comment '???e' |
||
| 1021 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1022 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1023 | 198 | h-you | , constraint dailydatafield_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1024 | 271 | h-you | ) comment '????f?[?^ (??????)' ; |
| 1025 | 84 | h-you | |
| 1026 | 198 | h-you | create index DailyDataField_Index |
| 1027 | on dailydatafield(PersonCode,DailyDataDate,ConstructionCode);
|
||
| 1028 | 84 | h-you | |
| 1029 | 271 | h-you | -- ????f?[?^ (????)
|
| 1030 | 325 | h-you | drop table if exists dailydatamaterials cascade; |
| 1031 | 84 | h-you | |
| 1032 | 198 | h-you | create table dailydatamaterials ( |
| 1033 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1034 | , DailyDataDate date not null comment '???????' |
||
| 1035 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 1036 | , SeqNo decimal(3,0) unsigned not null comment '????s???' |
||
| 1037 | , Materials varchar(100) comment '?????' |
||
| 1038 | , Quantity varchar(100) comment '????' |
||
| 1039 | , Production varchar(100) comment '??????' |
||
| 1040 | , Delivery varchar(100) comment '?[?????' |
||
| 1041 | , QualityControl varchar(100) comment '?i?????????' |
||
| 1042 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1043 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1044 | 198 | h-you | , constraint dailydatamaterials_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1045 | 271 | h-you | ) comment '????f?[?^ (????)' ; |
| 1046 | 84 | h-you | |
| 1047 | 198 | h-you | create index DailyDataMaterials_Index |
| 1048 | on dailydatamaterials(PersonCode,DailyDataDate,ConstructionCode);
|
||
| 1049 | 84 | h-you | |
| 1050 | 271 | h-you | -- ????f?[?^ (??????w??)
|
| 1051 | 325 | h-you | drop table if exists dailydatasubcontractors cascade; |
| 1052 | 84 | h-you | |
| 1053 | 198 | h-you | create table dailydatasubcontractors ( |
| 1054 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1055 | , DailyDataDate date not null comment '???????' |
||
| 1056 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 1057 | , SeqNo decimal(3,0) unsigned not null comment '????s???' |
||
| 1058 | , Attendee varchar(100) comment '?o???' |
||
| 1059 | , ContentsText varchar(200) comment '???e' |
||
| 1060 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1061 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1062 | 198 | h-you | , constraint dailydatasubcontractors_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo) |
| 1063 | 271 | h-you | ) comment '????f?[?^ (??????w??)' ; |
| 1064 | 84 | h-you | |
| 1065 | 198 | h-you | create index DailyDataSubcontractors_Index |
| 1066 | on dailydatasubcontractors(PersonCode,DailyDataDate,ConstructionCode);
|
||
| 1067 | 84 | h-you | |
| 1068 | 271 | h-you | -- ????f?[?^ (???)
|
| 1069 | 325 | h-you | drop table if exists dailydatavehicles cascade; |
| 1070 | 84 | h-you | |
| 1071 | 198 | h-you | create table dailydatavehicles ( |
| 1072 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 1073 | , DailyDataDate date not null comment '???????' |
||
| 1074 | , ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
||
| 1075 | , SeqNo decimal(3,0) unsigned not null comment '????s???' |
||
| 1076 | , Model varchar(100) comment '?@??' |
||
| 1077 | , Performance varchar(100) comment '???\' |
||
| 1078 | , Owner varchar(100) comment '???L???' |
||
| 1079 | , Driver varchar(100) comment '?????^?]??' |
||
| 1080 | , StartWorkingTime datetime not null comment '??????J?n' |
||
| 1081 | , EndWorkingTime datetime not null comment '??????I??' |
||
| 1082 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1083 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1084 | 198 | h-you | , constraint dailydatavehicles_PKC primary key (PersonCode,DailyDataDate,ConstructionCode,SeqNo)
|
| 1085 | 271 | h-you | ) comment '????f?[?^ (???)' ; |
| 1086 | 84 | h-you |
|
| 1087 | 198 | h-you | create index DailyDataVehicles_Index
|
| 1088 | on dailydatavehicles(PersonCode,DailyDataDate,ConstructionCode);
|
||
| 1089 | 84 | h-you |
|
| 1090 | 271 | h-you | -- ???}?X?^
|
| 1091 | 325 | h-you | drop table if exists daymaster cascade;
|
| 1092 | 84 | h-you |
|
| 1093 | 198 | h-you | create table daymaster (
|
| 1094 | 271 | h-you | days smallint(6) not null comment '??' |
| 1095 | 338 | h-you | , constraint daymaster_PKC primary key (days)
|
| 1096 | 271 | h-you | ) comment '???}?X?^' ; |
| 1097 | 84 | h-you |
|
| 1098 | 271 | h-you | -- ?????}?X?^
|
| 1099 | 325 | h-you | drop table if exists deadlinemaster cascade;
|
| 1100 | 106 | bit |
|
| 1101 | create table deadlinemaster (
|
||
| 1102 | 271 | h-you | LABOURKIND decimal(1,0) default '0' not null comment '??????' |
| 1103 | , DEADLINE decimal(2,0) comment '????' |
||
| 1104 | , PAYDAY decimal(2,0) comment '?x????' |
||
| 1105 | , NOTE varchar(120) comment '???l' |
||
| 1106 | , DELETEFLG decimal(1,0) comment '???t???O' |
||
| 1107 | , ENTRYDATE datetime comment '?o?^???t' |
||
| 1108 | , UPDATEDATE datetime comment '?X?V???t' |
||
| 1109 | 106 | bit | , constraint deadlinemaster_PKC primary key (LABOURKIND)
|
| 1110 | 271 | h-you | ) comment '?????}?X?^' ; |
| 1111 | 106 | bit |
|
| 1112 | 271 | h-you | -- ?????o???}?X?^
|
| 1113 | 325 | h-you | drop table if exists departmentexpensesmaster cascade;
|
| 1114 | 198 | h-you |
|
| 1115 | create table departmentexpensesmaster (
|
||
| 1116 | 271 | h-you | DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1117 | , ExpensesPeriod smallint(6) not null comment '?????' |
||
| 1118 | 342 | h-you | , NameCode decimal(5,0) unsigned not null comment '?o??R?[?h' |
| 1119 | , NameString varchar(100) not null comment '????' |
||
| 1120 | 271 | h-you | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
| 1121 | , ExpensesRaito decimal(4,2) not null comment '?o??' |
||
| 1122 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 1123 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1124 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1125 | 198 | h-you | , constraint departmentexpensesmaster_PKC primary key (DepartmentCode,ExpensesPeriod,NameCode)
|
| 1126 | 271 | h-you | ) comment '?????o???}?X?^' ; |
| 1127 | 198 | h-you |
|
| 1128 | 271 | h-you | -- ?????}?X?^
|
| 1129 | 325 | h-you | drop table if exists departmentmaster cascade;
|
| 1130 | 198 | h-you |
|
| 1131 | create table departmentmaster (
|
||
| 1132 | 271 | h-you | DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
| 1133 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 1134 | , DepartmentString varchar(100) not null comment '??????' |
||
| 1135 | , ActionScheduleFlg decimal(1,0) not null comment '?s???\??\???t???O' |
||
| 1136 | , StaffAssignFlg decimal(1,0) not null comment '?l???z?u?\???t???O' |
||
| 1137 | 338 | h-you | , StartDate datetime not null comment '?J?n???t' |
| 1138 | , CompDate datetime not null comment '?I?????t' |
||
| 1139 | 271 | h-you | , DeleteFlg decimal(1,0) not null comment '???t???O' |
| 1140 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1141 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1142 | 198 | h-you | , constraint departmentmaster_PKC primary key (DepartmentCode)
|
| 1143 | 271 | h-you | ) comment '?????}?X?^' ; |
| 1144 | 198 | h-you |
|
| 1145 | create index DepartmentMaster_index1
|
||
| 1146 | on departmentmaster(DisplayOrder);
|
||
| 1147 |
|
||
| 1148 | 271 | h-you | -- ?????m?F???F?f?[?^
|
| 1149 | 325 | h-you | drop table if exists depositapprovalinfo cascade;
|
| 1150 | 198 | h-you |
|
| 1151 | 106 | bit | create table depositapprovalinfo (
|
| 1152 | 271 | h-you | ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1153 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
||
| 1154 | , TARGETDATE decimal(6,0) not null comment '???N??' |
||
| 1155 | , SEQNO decimal(3,0) not null comment '?A??' |
||
| 1156 | , LINECOUNT decimal(3,0) not null comment '?s???' |
||
| 1157 | , APPROVALNO decimal(3,0) not null comment '???F????' |
||
| 1158 | , APPROVALPERSON decimal(8,0) comment '???F??R?[?h' |
||
| 1159 | , APPROVALPERSONNAME varchar(20) comment '???F???' |
||
| 1160 | , APPROVALAUTHORITY decimal(1,0) comment '???F??????' |
||
| 1161 | , APPROVALDATE date comment '???F???t' |
||
| 1162 | , ENTRYDATE datetime comment '?o?^???t' |
||
| 1163 | , UPDATEDATE datetime comment '?X?V???t' |
||
| 1164 | 106 | bit | , constraint depositapprovalinfo_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
|
| 1165 | 271 | h-you | ) comment '?????m?F???F?f?[?^' ; |
| 1166 | 106 | bit |
|
| 1167 | 271 | h-you | -- ?????f?[?^
|
| 1168 | 325 | h-you | drop table if exists depositdata cascade;
|
| 1169 | 106 | bit |
|
| 1170 | create table depositdata (
|
||
| 1171 | 271 | h-you | ORDERERSDIVISION decimal(5,0) not null comment '???????' |
| 1172 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
||
| 1173 | , TARGETDATE decimal(6,0) not null comment '???N??' |
||
| 1174 | , SEQNO decimal(3,0) not null comment '?A??' |
||
| 1175 | , BUSINESSPERIOD decimal(4,0) comment '?c???' |
||
| 1176 | , DEPOSITDATE date comment '??????' |
||
| 1177 | , DEPOSITAMOUNT decimal(12,0) comment '???????z' |
||
| 1178 | , DEPOSITAMOUNTCASH decimal(10,0) comment '???????z?i?????j' |
||
| 1179 | , DEPOSITAMOUNTBILL decimal(10,0) comment '???????z?i??`?j' |
||
| 1180 | , DEPOSITPERSONCODE decimal(8,0) not null comment '?????S????R?[?h'
|
||
| 1181 | , NOTE varchar(120) comment '???l'
|
||
| 1182 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1183 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1184 | 106 | bit | , constraint depositdata_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,SEQNO)
|
| 1185 | 271 | h-you | ) comment '?????f?[?^' ;
|
| 1186 | 106 | bit |
|
| 1187 | 271 | h-you | -- ????????f?[?^
|
| 1188 | 325 | h-you | drop table if exists depositdatadetail cascade;
|
| 1189 | 106 | bit |
|
| 1190 | create table depositdatadetail (
|
||
| 1191 | 271 | h-you | ORDERERSDIVISION decimal(5,0) not null comment '???????'
|
| 1192 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
|
||
| 1193 | , TARGETDATE decimal(6,0) not null comment '???N??'
|
||
| 1194 | , REQUESTNO decimal(10,0) not null comment '????No'
|
||
| 1195 | , ORDERNO decimal(2,0) comment '??t???'
|
||
| 1196 | , DEPOSITAMOUNT decimal(10,0) comment '???????z'
|
||
| 1197 | , DISCOUNTAMOUNT decimal(10,0) comment '?l???????z'
|
||
| 1198 | , CNSTRPRICE decimal(10,0) comment '?????'
|
||
| 1199 | , FEES decimal(10,0) comment '????'
|
||
| 1200 | , OTHERADJUSTMENTS decimal(10,0) comment '?????'
|
||
| 1201 | , DIFFERENCEAMOUNT decimal(10,0) comment '????'
|
||
| 1202 | , CONFIRMATIONPERSONCODE decimal(8,0) comment '?m?F?S????R?[?h'
|
||
| 1203 | , CONFIRMATIONDATE date comment '?S????m?F???t'
|
||
| 1204 | , CONFIRMATIONENDFLG decimal(1,0) comment '?m?F?????t???O'
|
||
| 1205 | , NOTE varchar(120) comment '???l'
|
||
| 1206 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1207 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1208 | 184 | bit | , constraint depositdatadetail_PKC primary key (ORDERERSDIVISION,ORDERERSCODE,TARGETDATE,REQUESTNO)
|
| 1209 | 271 | h-you | ) comment '????????f?[?^' ;
|
| 1210 | 106 | bit |
|
| 1211 | 271 | h-you | -- ???}?X?^
|
| 1212 | 325 | h-you | drop table if exists divisionmaster cascade;
|
| 1213 | 198 | h-you |
|
| 1214 | create table divisionmaster (
|
||
| 1215 | 271 | h-you | DivisionCode decimal(5,0) unsigned not null comment '???R?[?h'
|
| 1216 | , NameCode decimal(5,0) unsigned not null comment '????R?[?h'
|
||
| 1217 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
||
| 1218 | , NameString varchar(100) not null comment '????'
|
||
| 1219 | , DeleteFlg decimal(1,0) not null comment '???t???O'
|
||
| 1220 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1221 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1222 | 198 | h-you | , constraint divisionmaster_PKC primary key (DivisionCode,NameCode)
|
| 1223 | 271 | h-you | ) comment '???}?X?^' ;
|
| 1224 | 198 | h-you |
|
| 1225 | 271 | h-you | -- ??Z?\?Z???f?[?^
|
| 1226 | 325 | h-you | drop table if exists estimatebudget cascade;
|
| 1227 | 198 | h-you |
|
| 1228 | create table estimatebudget (
|
||
| 1229 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1230 | , ConstructionTime decimal(5,2) unsigned not null comment '?H??'
|
||
| 1231 | , IntegratedCode decimal(8,0) not null comment '??Z??'
|
||
| 1232 | , DataCreateDate datetime not null comment '?f?[?^??????'
|
||
| 1233 | , RetValue1 decimal(12,0) not null comment '?\???i'
|
||
| 1234 | , RetValue2 decimal(12,0) not null comment '????H????'
|
||
| 1235 | , RetValue3 decimal(12,0) not null comment '????????????'
|
||
| 1236 | , RetValue4 decimal(12,0) not null comment '????????????'
|
||
| 1237 | , RetPercent decimal(5,2) not null comment '???????'
|
||
| 1238 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1239 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1240 | 198 | h-you | , constraint estimatebudget_PKC primary key (ConstructionCode)
|
| 1241 | 271 | h-you | ) comment '??Z?\?Z???f?[?^' ;
|
| 1242 | 198 | h-you |
|
| 1243 | 271 | h-you | -- ??Z?\?Z????f?[?^????
|
| 1244 | 325 | h-you | drop table if exists estimatebudgetdetail cascade;
|
| 1245 | 198 | h-you |
|
| 1246 | create table estimatebudgetdetail (
|
||
| 1247 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1248 | , GroupCount decimal(2,0) unsigned not null comment '?O???[?v???'
|
||
| 1249 | , LineCount decimal(3,0) unsigned not null comment '?s???'
|
||
| 1250 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
|
||
| 1251 | , ItemCode decimal(5,0) unsigned comment '?H??L?['
|
||
| 1252 | , CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
||
| 1253 | , FirstString varchar(120) comment '???????'
|
||
| 1254 | , SecondString varchar(120) comment '?H????E???????'
|
||
| 1255 | , Content varchar(120) comment '???e'
|
||
| 1256 | , EstimatePrice decimal(12,0) not null comment '????????z'
|
||
| 1257 | , NegotiationPrice decimal(12,0) not null comment '????????z'
|
||
| 1258 | , Notes varchar(120) comment '???????'
|
||
| 1259 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1260 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1261 | 198 | h-you | , constraint estimatebudgetdetail_PKC primary key (ConstructionCode,GroupCount,LineCount)
|
| 1262 | 271 | h-you | ) comment '??Z?\?Z????f?[?^????' ;
|
| 1263 | 198 | h-you |
|
| 1264 | 271 | h-you | -- ??Z????f?[?^
|
| 1265 | 325 | h-you | drop table if exists estimatedata cascade;
|
| 1266 | 198 | h-you |
|
| 1267 | create table estimatedata (
|
||
| 1268 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1269 | , LineCount decimal(3,0) unsigned not null comment '?s???'
|
||
| 1270 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?['
|
||
| 1271 | , FixedItemCode varchar(1) comment '?????L?['
|
||
| 1272 | , ItemName varchar(120) comment '??????'
|
||
| 1273 | , SpecName varchar(120) comment '???^?i???E?`??E???@' |
||
| 1274 | , PriceValue decimal(14,0) not null comment '???z' |
||
| 1275 | , note varchar(60) comment '???l' |
||
| 1276 | , MyExpensesFlg decimal(1,0) not null comment '????o??t???O' |
||
| 1277 | , InputFlg decimal(1,0) not null comment '????t???O' |
||
| 1278 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1279 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1280 | 198 | h-you | , constraint estimatedata_PKC primary key (ConstructionCode,LineCount)
|
| 1281 | 271 | h-you | ) comment '??Z????f?[?^' ; |
| 1282 | 198 | h-you |
|
| 1283 | create index EstimateData_Index1
|
||
| 1284 | on estimatedata(ConstructionCode,FixedItemCode);
|
||
| 1285 |
|
||
| 1286 | 271 | h-you | -- ??Z????y?[?W?f?[?^
|
| 1287 | 325 | h-you | drop table if exists estimatedatabody cascade;
|
| 1288 | 198 | h-you |
|
| 1289 | create table estimatedatabody (
|
||
| 1290 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1291 | , PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
||
| 1292 | , Category decimal(1,0) not null comment '?y?[?W??' |
||
| 1293 | , UnionComponentCode decimal(5,0) unsigned not null comment '?????\???L?[' |
||
| 1294 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 1295 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 1296 | , SelectComponent decimal(5,0) unsigned not null comment '?I???\???L?[' |
||
| 1297 | , PageTitle varchar(120) not null comment '?y?[?W?\????' |
||
| 1298 | , DetailLineCount decimal(3,0) unsigned not null comment '????s???' |
||
| 1299 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1300 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1301 | 198 | h-you | , constraint estimatedatabody_PKC primary key (ConstructionCode,PageCount)
|
| 1302 | 271 | h-you | ) comment '??Z????y?[?W?f?[?^' ; |
| 1303 | 198 | h-you |
|
| 1304 | create index EstimateDataBody_Index1
|
||
| 1305 | on estimatedatabody(ConstructionCode,ComponentCode,ItemCode);
|
||
| 1306 |
|
||
| 1307 | 271 | h-you | -- ??Z????f?[?^????
|
| 1308 | 325 | h-you | drop table if exists estimatedatadetail cascade;
|
| 1309 | 198 | h-you |
|
| 1310 | create table estimatedatadetail (
|
||
| 1311 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1312 | , PageCount decimal(4,0) unsigned not null comment '?y?[?W???' |
||
| 1313 | , LineCount decimal(3,0) unsigned not null comment '?s???' |
||
| 1314 | , DataType decimal(1,0) not null comment '?f?[?^???' |
||
| 1315 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 1316 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 1317 | , SpecCode decimal(5,0) unsigned not null comment '???L?[' |
||
| 1318 | , ItemName varchar(120) comment '??????' |
||
| 1319 | , SpecName varchar(120) comment '???^?i???E?`??E???@' |
||
| 1320 | , Unitcount decimal(8,2) not null comment '????'
|
||
| 1321 | , UnitName varchar(30) comment '?P?????'
|
||
| 1322 | , UnitPrice decimal(9,2) not null comment '?P??'
|
||
| 1323 | , LineTotal decimal(12,0) not null comment '???z'
|
||
| 1324 | , note varchar(60) comment '???l'
|
||
| 1325 | , CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
||
| 1326 | , MyExpensesFlg decimal(1,0) not null comment '????o??t???O'
|
||
| 1327 | , InputFlg decimal(1,0) comment '????t???O'
|
||
| 1328 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1329 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1330 | 198 | h-you | , constraint estimatedatadetail_PKC primary key (ConstructionCode,PageCount,LineCount)
|
| 1331 | 271 | h-you | ) comment '??Z????f?[?^????' ;
|
| 1332 | 198 | h-you |
|
| 1333 | create index EstimateDataDetail_Index1
|
||
| 1334 | on estimatedatadetail(ConstructionCode,PageCount);
|
||
| 1335 |
|
||
| 1336 | 271 | h-you | -- ?o???}?X?^
|
| 1337 | 325 | h-you | drop table if exists expensesmaster cascade;
|
| 1338 | 198 | h-you |
|
| 1339 | create table expensesmaster (
|
||
| 1340 | 271 | h-you | DivisionCode smallint(6) not null comment '?H?????R?[?h'
|
| 1341 | , NameCode smallint(6) not null comment '?o????R?[?h'
|
||
| 1342 | , DisplayOrder smallint(6) not null comment '?\????'
|
||
| 1343 | , ExpensesRatio decimal(4,2) not null comment '?o??'
|
||
| 1344 | , DeleteFlg decimal(1,0) not null comment '???t???O'
|
||
| 1345 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1346 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1347 | 198 | h-you | , constraint expensesmaster_PKC primary key (DivisionCode,NameCode)
|
| 1348 | 271 | h-you | ) comment '?o???}?X?^' ;
|
| 1349 | 198 | h-you |
|
| 1350 | 271 | h-you | -- ???x???}?X?^
|
| 1351 | 325 | h-you | drop table if exists holidaycalendermaster cascade;
|
| 1352 | 198 | h-you |
|
| 1353 | create table holidaycalendermaster (
|
||
| 1354 | 271 | h-you | Holiday date not null comment '?x??'
|
| 1355 | , BusinessYear smallint(5) unsigned not null comment '?c??N?x'
|
||
| 1356 | , TargetMonth tinyint(3) unsigned not null comment '?Y????'
|
||
| 1357 | , TargetDay tinyint(3) unsigned not null comment '?Y????'
|
||
| 1358 | 198 | h-you | , constraint holidaycalendermaster_PKC primary key (Holiday)
|
| 1359 | 271 | h-you | ) comment '???x???}?X?^' ;
|
| 1360 | 198 | h-you |
|
| 1361 | create index HolidayCalender_Index1
|
||
| 1362 | on holidaycalendermaster(BusinessYear);
|
||
| 1363 |
|
||
| 1364 | create index HolidayCalenderMaster_Index2
|
||
| 1365 | on holidaycalendermaster(TargetMonth);
|
||
| 1366 |
|
||
| 1367 | create index HolidayCalenderMaster_Index3
|
||
| 1368 | on holidaycalendermaster(TargetDay);
|
||
| 1369 |
|
||
| 1370 | 271 | h-you | -- ?????????????
|
| 1371 | 325 | h-you | drop table if exists inputsearchlogdata cascade;
|
| 1372 | 198 | h-you |
|
| 1373 | create table inputsearchlogdata (
|
||
| 1374 | 271 | h-you | ConstructionCode decimal(10,0) not null comment '?H???R?[?h'
|
| 1375 | , UsedProcessNo decimal(4,0) not null comment '?g?p?@?\???'
|
||
| 1376 | , DisplayOrder decimal(4,0) unsigned not null comment '?\????'
|
||
| 1377 | , DataType decimal(1,0) not null comment '?f?[?^???'
|
||
| 1378 | , InputCode decimal(10,0) comment '????R?[?h'
|
||
| 1379 | 198 | h-you | , constraint inputsearchlogdata_PKC primary key (ConstructionCode,UsedProcessNo,DisplayOrder)
|
| 1380 | 271 | h-you | ) comment '?????????????' ;
|
| 1381 | 198 | h-you |
|
| 1382 | create index InputSearchLogData_Index1
|
||
| 1383 | on inputsearchlogdata(ConstructionCode,UsedProcessNo,InputCode);
|
||
| 1384 |
|
||
| 1385 | 271 | h-you | -- ???????f?[?^
|
| 1386 | 325 | h-you | drop table if exists invoicedata cascade;
|
| 1387 | 106 | bit |
|
| 1388 | create table invoicedata (
|
||
| 1389 | 271 | h-you | INVOICENO decimal(9,0) not null comment '??????No'
|
| 1390 | , ORDERERSDIVISION decimal(5,0) not null comment '???????'
|
||
| 1391 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h'
|
||
| 1392 | , REQUESTMONTH decimal(6,0) not null comment '??????'
|
||
| 1393 | , SEQNO decimal(2,0) not null comment '?A??'
|
||
| 1394 | , CRETATEDATE date not null comment '????'
|
||
| 1395 | , REQUESTDATE date not null comment '??????'
|
||
| 1396 | , REQUESTNAME varchar(120) comment '??????'
|
||
| 1397 | , TOTALAMOUNT decimal(10,0) comment '???????v???z'
|
||
| 1398 | , TAXAMOUNT decimal(10,0) comment '???????z'
|
||
| 1399 | , COMMENT1 varchar(60) comment '?R?????g1'
|
||
| 1400 | , COMMENT2 varchar(60) comment '?R?????g2'
|
||
| 1401 | , COMMENT3 varchar(60) not null comment '?R?????g3'
|
||
| 1402 | , COMMENT4 varchar(60) not null comment '?R?????g4'
|
||
| 1403 | , COMMENT5 varchar(60) not null comment '?R?????g5'
|
||
| 1404 | , COMPLETEFLG decimal(1,0) default '0' not null comment '?????t???O'
|
||
| 1405 | , ENTRYDATE datetime not null comment '?o?^?N????'
|
||
| 1406 | , UPDATEDATE datetime not null comment '?X?V?N????'
|
||
| 1407 | 106 | bit | , constraint invoicedata_PKC primary key (INVOICENO)
|
| 1408 | 271 | h-you | ) comment '???????f?[?^' ;
|
| 1409 | 106 | bit |
|
| 1410 | alter table invoicedata add unique ORDERERSDIVISION (ORDERERSDIVISION,ORDERERSCODE,REQUESTMONTH,SEQNO) ;
|
||
| 1411 |
|
||
| 1412 | 271 | h-you | -- ??????
|
| 1413 | 325 | h-you | drop table if exists materialinfo cascade;
|
| 1414 | 106 | bit |
|
| 1415 | create table materialinfo (
|
||
| 1416 | 271 | h-you | MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1417 | , MATERIALCOUNT smallint(5) unsigned comment '?????'
|
||
| 1418 | , RENTCOUNT smallint(5) unsigned comment '??o??\??'
|
||
| 1419 | , DELETEFLG smallint(5) unsigned comment '???t???O'
|
||
| 1420 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1421 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1422 | 106 | bit | , constraint materialinfo_PKC primary key (MATERIALITEMCODE)
|
| 1423 | 271 | h-you | ) comment '??????' ;
|
| 1424 | 106 | bit |
|
| 1425 | 271 | h-you | -- ????i??}?X?^
|
| 1426 | 325 | h-you | drop table if exists materialitemmaster cascade;
|
| 1427 | 106 | bit |
|
| 1428 | create table materialitemmaster (
|
||
| 1429 | 271 | h-you | MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1430 | , MATERIALKINDCODE smallint(5) unsigned comment '??????R?[?h'
|
||
| 1431 | , MATERIALITEMNAME varchar(40) comment '????i?????'
|
||
| 1432 | , DISPLAYORDER smallint(5) unsigned comment '?\????'
|
||
| 1433 | , DELETEFLG tinyint(3) unsigned comment '???t???O'
|
||
| 1434 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1435 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1436 | , VERSIONNO decimal(8,0) default '0' not null comment '?o?[?W???????'
|
||
| 1437 | 106 | bit | , constraint materialitemmaster_PKC primary key (MATERIALITEMCODE)
|
| 1438 | 271 | h-you | ) comment '????i??}?X?^' ;
|
| 1439 | 106 | bit |
|
| 1440 | 271 | h-you | -- ??????}?X?^
|
| 1441 | 325 | h-you | drop table if exists materialkindmaster cascade;
|
| 1442 | 106 | bit |
|
| 1443 | create table materialkindmaster (
|
||
| 1444 | 271 | h-you | MATERIALKINDCODE smallint(5) unsigned default 0 not null comment '??????R?[?h'
|
| 1445 | , MATERIALKINDNAME varchar(40) comment '?????????'
|
||
| 1446 | , DISPLAYORDER smallint(5) unsigned comment '?\????'
|
||
| 1447 | , DELETEFLG tinyint(3) unsigned comment '???t???O'
|
||
| 1448 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1449 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1450 | 106 | bit | , constraint materialkindmaster_PKC primary key (MATERIALKINDCODE)
|
| 1451 | 271 | h-you | ) comment '??????}?X?^' ;
|
| 1452 | 106 | bit |
|
| 1453 | 271 | h-you | -- ??????????
|
| 1454 | 325 | h-you | drop table if exists materialrecordinfo cascade;
|
| 1455 | 106 | bit |
|
| 1456 | create table materialrecordinfo (
|
||
| 1457 | 271 | h-you | MATERIALITEMCODE smallint(5) unsigned default 0 not null comment '????i??R?[?h'
|
| 1458 | , PROCESSDATE date default '0000-00-00' not null comment '?????N????'
|
||
| 1459 | , SEQNO smallint(5) unsigned default 0 not null comment '?A??'
|
||
| 1460 | , RECKIND tinyint(3) unsigned comment '???R?[?h??'
|
||
| 1461 | , CONSTRUCTIONCODE int(10) unsigned comment '?H?????'
|
||
| 1462 | , PERSONCODE int(10) unsigned comment '?S????R?[?h'
|
||
| 1463 | , MATERIALCOUNT smallint(5) unsigned comment '?????'
|
||
| 1464 | , REPAYPLANDATE date comment '??p?\??N????'
|
||
| 1465 | , COMMENTTEXT varchar(80) comment '?R?????g'
|
||
| 1466 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1467 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1468 | 106 | bit | , constraint materialrecordinfo_PKC primary key (MATERIALITEMCODE,PROCESSDATE,SEQNO)
|
| 1469 | 271 | h-you | ) comment '??????????' ;
|
| 1470 | 106 | bit |
|
| 1471 | 271 | h-you | -- ?f??????b?Z?[?W
|
| 1472 | 325 | h-you | drop table if exists messageboarddata cascade;
|
| 1473 | 198 | h-you |
|
| 1474 | create table messageboarddata (
|
||
| 1475 | 271 | h-you | RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1476 | , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
||
| 1477 | , FromCode decimal(8,0) unsigned not null comment '???????R?[?h'
|
||
| 1478 | , FromName varchar(60) not null comment '???????'
|
||
| 1479 | , MessageTitile varchar(100) comment '?`???^?C?g??' |
||
| 1480 | , MessageContent varchar(1333) not null comment '?`?????e' |
||
| 1481 | , LinkType decimal(2,0) not null comment '?????N????^?C?v'
|
||
| 1482 | , LinkMessage varchar(200) comment '?????N??????'
|
||
| 1483 | , LinkCode varchar(30) comment '?????N?L?['
|
||
| 1484 | , WritingDate datetime not null comment '?????????'
|
||
| 1485 | , PersonCode decimal(8,0) not null comment '??????S????R?[?h'
|
||
| 1486 | , ShareFlag decimal(2,0) not null comment '???????t???O'
|
||
| 1487 | , MessageColor varchar(8) comment '?????F'
|
||
| 1488 | , BackColor varchar(8) comment '?o?b?N?J???['
|
||
| 1489 | , MessageFlag decimal(1,0) not null comment '???b?Z?[?W?t???O'
|
||
| 1490 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1491 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1492 | 198 | h-you | , constraint messageboarddata_PKC primary key (RecordNumber,BranchNumber)
|
| 1493 | 271 | h-you | ) comment '?f??????b?Z?[?W' ;
|
| 1494 | 198 | h-you |
|
| 1495 | create index MessageBoardData_Index1
|
||
| 1496 | on messageboarddata(WritingDate);
|
||
| 1497 |
|
||
| 1498 | create index MessageBoardData_Index2
|
||
| 1499 | on messageboarddata(MessageFlag);
|
||
| 1500 |
|
||
| 1501 | 271 | h-you | -- ?f???????e?[?u??
|
| 1502 | 325 | h-you | drop table if exists messageboardterget cascade;
|
| 1503 | 198 | h-you |
|
| 1504 | create table messageboardterget (
|
||
| 1505 | 271 | h-you | RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1506 | , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
||
| 1507 | , SeqNum decimal(3,0) unsigned not null comment '????'
|
||
| 1508 | , ToCode decimal(8,0) not null comment '????R?[?h'
|
||
| 1509 | , ToName varchar(60) not null comment '????'
|
||
| 1510 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1511 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1512 | 198 | h-you | , constraint messageboardterget_PKC primary key (RecordNumber,BranchNumber,SeqNum)
|
| 1513 | 271 | h-you | ) comment '?f???????e?[?u??' ;
|
| 1514 | 198 | h-you |
|
| 1515 | create index MessageBoardTerget_Index1
|
||
| 1516 | on messageboardterget(RecordNumber,BranchNumber);
|
||
| 1517 |
|
||
| 1518 | 271 | h-you | -- ?f??????b?Z?[?W?{??????
|
| 1519 | 325 | h-you | drop table if exists messagebrowsinghistory cascade;
|
| 1520 | 198 | h-you |
|
| 1521 | create table messagebrowsinghistory (
|
||
| 1522 | 271 | h-you | RecordNumber decimal(6,0) unsigned not null comment '???R?[?h???'
|
| 1523 | , BranchNumber decimal(3,0) unsigned not null comment '???R?[?h?}??'
|
||
| 1524 | , SeqNum decimal(3,0) unsigned not null comment '????'
|
||
| 1525 | , BrowsingCode decimal(8,0) not null comment '?{????R?[?h'
|
||
| 1526 | , BrowsingDate datetime not null comment '?{?????t'
|
||
| 1527 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1528 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1529 | 198 | h-you | , constraint messagebrowsinghistory_PKC primary key (RecordNumber,BranchNumber,SeqNum)
|
| 1530 | 271 | h-you | ) comment '?f??????b?Z?[?W?{??????' ;
|
| 1531 | 198 | h-you |
|
| 1532 | 271 | h-you | -- ???}?X?^
|
| 1533 | 325 | h-you | drop table if exists monthmaster cascade;
|
| 1534 | 198 | h-you |
|
| 1535 | create table monthmaster (
|
||
| 1536 | 271 | h-you | month smallint(6) not null comment '??'
|
| 1537 | 338 | h-you | , constraint monthmaster_PKC primary key (month)
|
| 1538 | 271 | h-you | ) comment '???}?X?^' ;
|
| 1539 | 198 | h-you |
|
| 1540 | 271 | h-you | -- ??????}?X?^
|
| 1541 | 325 | h-you | drop table if exists orderersmaster cascade;
|
| 1542 | 198 | h-you |
|
| 1543 | create table orderersmaster (
|
||
| 1544 | 271 | h-you | OrderCotegory decimal(5,0) unsigned not null comment '???????'
|
| 1545 | , OrderersCode decimal(5,0) unsigned not null comment '??????R?[?h'
|
||
| 1546 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????'
|
||
| 1547 | , OrderFlg decimal(1,0) not null comment '?@?l?c??E??l?t???O'
|
||
| 1548 | , CorporateStatusName varchar(100) comment '?@?l?i????'
|
||
| 1549 | , CorporateStatusPoint decimal(1,0) comment '?@?l?i?????u'
|
||
| 1550 | , OrderersName1 varchar(60) not null comment '???????1'
|
||
| 1551 | , OrderersName2 varchar(60) comment '????????Q'
|
||
| 1552 | , DepartmentName varchar(60) comment '??????'
|
||
| 1553 | , ChargePersonName varchar(60) comment '?S?????'
|
||
| 1554 | , ZipCode varchar(8) comment '?X????'
|
||
| 1555 | , Address1 varchar(60) comment '?Z???P'
|
||
| 1556 | , Address2 varchar(60) comment '?Z??2'
|
||
| 1557 | , Address3 varchar(60) comment '?Z??3'
|
||
| 1558 | , PhoneNumber varchar(13) comment '?d?b???'
|
||
| 1559 | , FaxNumber varchar(13) comment 'FAX???'
|
||
| 1560 | , MailAddress varchar(257) comment '???[???A?h???X'
|
||
| 1561 | , Note varchar(300) comment '???l'
|
||
| 1562 | , DeleteFlg decimal(1,0) not null comment '???t???O'
|
||
| 1563 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1564 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1565 | 198 | h-you | , constraint orderersmaster_PKC primary key (OrderCotegory,OrderersCode)
|
| 1566 | 271 | h-you | ) comment '??????}?X?^' ;
|
| 1567 | 198 | h-you |
|
| 1568 | 271 | h-you | -- ????z?f?[?^
|
| 1569 | 325 | h-you | drop table if exists orderspricedata cascade;
|
| 1570 | 198 | h-you |
|
| 1571 | create table orderspricedata (
|
||
| 1572 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1573 | , ChangeNo decimal(3,0) unsigned not null comment '??X???'
|
||
| 1574 | , ChangeDate date not null comment '??X??'
|
||
| 1575 | , ChangePersonCode decimal(8,0) unsigned not null comment '??X??R?[?h'
|
||
| 1576 | , ChangePersonName varchar(60) comment '??X???'
|
||
| 1577 | , BeforeValue decimal(14,0) not null comment '??X?O???????z'
|
||
| 1578 | , BeforeValueInTax decimal(14,0) not null comment '??X?O???????z'
|
||
| 1579 | , AfterValue decimal(14,0) not null comment '??X????????z'
|
||
| 1580 | , AfterValueInTax decimal(14,0) not null comment '??X????????z'
|
||
| 1581 | , ChangeComment varchar(200) comment '??X???R'
|
||
| 1582 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1583 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1584 | 198 | h-you | , constraint orderspricedata_PKC primary key (ConstructionCode,ChangeNo)
|
| 1585 | 271 | h-you | ) comment '????z?f?[?^' ;
|
| 1586 | 198 | h-you |
|
| 1587 | 271 | h-you | -- ?x?????F???f?[?^
|
| 1588 | 325 | h-you | drop table if exists paymentapprovalinfo cascade;
|
| 1589 | 106 | bit |
|
| 1590 | create table paymentapprovalinfo (
|
||
| 1591 | 271 | h-you | COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 1592 | , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
||
| 1593 | , SEQNO decimal(3,0) default '0' not null comment '?A??'
|
||
| 1594 | , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
|
||
| 1595 | , APPROVALNO decimal(3,0) default '0' not null comment '???F????'
|
||
| 1596 | , APPROVALPERSON decimal(8,0) comment '???F??R?[?h'
|
||
| 1597 | , APPROVALPERSONNAME varchar(20) comment '???F???'
|
||
| 1598 | , APPROVALAUTHORITY decimal(1,0) comment '???F??????'
|
||
| 1599 | , APPROVALDATE date comment '???F???t'
|
||
| 1600 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1601 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1602 | 106 | bit | , constraint paymentapprovalinfo_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT,APPROVALNO)
|
| 1603 | 271 | h-you | ) comment '?x?????F???f?[?^' ;
|
| 1604 | 106 | bit |
|
| 1605 | 271 | h-you | -- ?x??????f?[?^
|
| 1606 | 325 | h-you | drop table if exists paymentdatadetail cascade;
|
| 1607 | 106 | bit |
|
| 1608 | create table paymentdatadetail (
|
||
| 1609 | 271 | h-you | COMPANYCODE decimal(8,0) default '0' not null comment '??????R?[?h'
|
| 1610 | , TARGETDATE decimal(6,0) default '0' not null comment '???N??'
|
||
| 1611 | , SEQNO decimal(3,0) default '0' not null comment '?A??'
|
||
| 1612 | , LINECOUNT decimal(3,0) default '0' not null comment '?s???'
|
||
| 1613 | , BILLPRICE decimal(10,0) comment '???????z'
|
||
| 1614 | , DISCOUNTPRICE decimal(10,0) comment '?l???????z'
|
||
| 1615 | , OFFSETPRICE decimal(10,0) comment '???E???z'
|
||
| 1616 | , NEXTCOPRICE decimal(10,0) comment '????J?z'
|
||
| 1617 | , HIGHWPRICE decimal(10,0) comment '??????'
|
||
| 1618 | , HARDWPRICE decimal(10,0) comment '??????'
|
||
| 1619 | , INDSWASTETAX decimal(10,0) comment '?Y?p??'
|
||
| 1620 | , CNSTRPRICE decimal(10,0) comment '?????'
|
||
| 1621 | , CNSTRPRICEEXIST decimal(1,0) comment '??????L??'
|
||
| 1622 | , APPROVALPERSONCODE decimal(8,0) comment '???F?S????R?[?h'
|
||
| 1623 | , APPROVALDATE date comment '?S??????F???t'
|
||
| 1624 | , APPROVALENDFLG decimal(1,0) comment '???F?????t???O'
|
||
| 1625 | , ENTRYDATE datetime comment '?o?^???t'
|
||
| 1626 | , UPDATEDATE datetime comment '?X?V???t'
|
||
| 1627 | 106 | bit | , constraint paymentdatadetail_PKC primary key (COMPANYCODE,TARGETDATE,SEQNO,LINECOUNT)
|
| 1628 | 271 | h-you | ) comment '?x??????f?[?^' ;
|
| 1629 | 106 | bit |
|
| 1630 | 322 | h-you | create index PayDataDetail_Index1
|
| 1631 | on paymentdatadetail(TARGETDATE);
|
||
| 1632 |
|
||
| 1633 | create index PayDataDetail_Index2
|
||
| 1634 | on paymentdatadetail(APPROVALPERSONCODE);
|
||
| 1635 |
|
||
| 1636 | 302 | h-you | -- ?H??????????f?[?^
|
| 1637 | 325 | h-you | drop table if exists periodavoidance cascade;
|
| 1638 | 302 | h-you |
|
| 1639 | create table periodavoidance (
|
||
| 1640 | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
||
| 1641 | , ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O'
|
||
| 1642 | , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???' |
||
| 1643 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1644 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1645 | , constraint periodavoidance_PKC primary key (ConstructionCode,ConstructionStatusFlg,FieldNo)
|
||
| 1646 | ) comment '?H??????????f?[?^' ; |
||
| 1647 |
|
||
| 1648 | create index PeriodAvoidance_Index1
|
||
| 1649 | on periodavoidance(ConstructionCode);
|
||
| 1650 |
|
||
| 1651 | create index PeriodAvoidance_Index2
|
||
| 1652 | on periodavoidance(ConstructionStatusFlg);
|
||
| 1653 |
|
||
| 1654 | create index PeriodAvoidance_Index3
|
||
| 1655 | on periodavoidance(FieldNo);
|
||
| 1656 |
|
||
| 1657 | 271 | h-you | -- ?S??????F?f?[?^
|
| 1658 | 325 | h-you | drop table if exists personapproval cascade;
|
| 1659 | 198 | h-you |
|
| 1660 | create table personapproval (
|
||
| 1661 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1662 | , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
||
| 1663 | , OrderDate date not null comment '??t??' |
||
| 1664 | , OrderNo decimal(2,0) unsigned not null comment '??t???' |
||
| 1665 | , SeqNo decimal(2,0) not null comment '?}??' |
||
| 1666 | , PersonCodeApproval decimal(8,0) unsigned not null comment '?\???E???F??R?[?h' |
||
| 1667 | , PetitionApprovalDate datetime not null comment '?\???E???F???t' |
||
| 1668 | , ApprovalLimitDates datetime not null comment '???F??]??' |
||
| 1669 | , ApprovalStatus decimal(1,0) not null comment '???F???' |
||
| 1670 | , InputComment varchar(300) comment '?R?????g' |
||
| 1671 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1672 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1673 | 198 | h-you | , constraint personapproval_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,SeqNo)
|
| 1674 | 271 | h-you | ) comment '?S??????F?f?[?^' ; |
| 1675 | 198 | h-you |
|
| 1676 | 271 | h-you | -- ?S??????F?R?????g?f?[?^
|
| 1677 | 325 | h-you | drop table if exists personapprovalcomment cascade;
|
| 1678 | 198 | h-you |
|
| 1679 | create table personapprovalcomment (
|
||
| 1680 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1681 | , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???' |
||
| 1682 | , OrderDate date not null comment '??t??' |
||
| 1683 | , OrderNo decimal(2,0) unsigned not null comment '??t???' |
||
| 1684 | , CommentNo decimal(2,0) not null comment '?R?????g???' |
||
| 1685 | , ParentNo decimal(2,0) not null comment '?e?R?????g???' |
||
| 1686 | , ApproValComment varchar(300) comment '?w???E?A???R?????g' |
||
| 1687 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1688 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1689 | 198 | h-you | , constraint personapprovalcomment_PKC primary key (PersonCode,ApprovalCode,OrderDate,OrderNo,CommentNo)
|
| 1690 | 271 | h-you | ) comment '?S??????F?R?????g?f?[?^' ; |
| 1691 | 198 | h-you |
|
| 1692 | 271 | h-you | -- ?S??????????}?X?^
|
| 1693 | 325 | h-you | drop table if exists persondepartmentmaster cascade;
|
| 1694 | 198 | h-you |
|
| 1695 | create table persondepartmentmaster (
|
||
| 1696 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1697 | , DepartmentCode decimal(5,0) unsigned not null comment '?????R?[?h' |
||
| 1698 | , AffiliationFlg decimal(1,0) not null comment '?????t???O' |
||
| 1699 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1700 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1701 | 198 | h-you | , constraint persondepartmentmaster_PKC primary key (PersonCode,DepartmentCode)
|
| 1702 | 271 | h-you | ) comment '?S??????????}?X?^' ; |
| 1703 | 198 | h-you |
|
| 1704 | create index PersonDepartmentMaster_Index1
|
||
| 1705 | on persondepartmentmaster(PersonCode);
|
||
| 1706 |
|
||
| 1707 | create index PersonDepartmentMaster_Index2
|
||
| 1708 | on persondepartmentmaster(DepartmentCode);
|
||
| 1709 |
|
||
| 1710 | 271 | h-you | -- ?S????}?X?^
|
| 1711 | 325 | h-you | drop table if exists personinchargemaster cascade;
|
| 1712 | 198 | h-you |
|
| 1713 | create table personinchargemaster (
|
||
| 1714 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1715 | , DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
||
| 1716 | , PersonName varchar(60) not null comment '?S?????' |
||
| 1717 | , StartDate date not null comment '?g?p?J?n?N????' |
||
| 1718 | , EndDate date comment '?g?p?I???N????' |
||
| 1719 | , PassWord varchar(16) comment '?p?X???[?h' |
||
| 1720 | , SecurityManagement decimal(1,0) not null comment '?@????' |
||
| 1721 | , SecCode decimal(2,0) unsigned not null comment '???????' |
||
| 1722 | , MsgBackColor varchar(8) comment '???b?Z?[?W?w?i?F' |
||
| 1723 | , DisplayString varchar(20) comment '?\???E???????' |
||
| 1724 | , DepartmentCode decimal(5,0) unsigned comment '?????R?[?h' |
||
| 1725 | , MonthlySalary decimal(11,0) not null comment '???????z' |
||
| 1726 | , YearSalary decimal(12,0) not null comment '?N????z' |
||
| 1727 | , Qualification varchar(120) comment '???i?????' |
||
| 1728 | , SealPrintName varchar(5) comment '???\????' |
||
| 1729 | , EmployeeClassFlg decimal(1,0) not null comment '?????' |
||
| 1730 | , LedgerFlg decimal(1,0) not null comment '???v?Z???t???O' |
||
| 1731 | , CommutingDistance decimal(5,2) not null comment '??????' |
||
| 1732 | , CommuteCosts decimal(5,0) not null comment '??????' |
||
| 1733 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 1734 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1735 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1736 | 198 | h-you | , constraint personinchargemaster_PKC primary key (PersonCode)
|
| 1737 | 271 | h-you | ) comment '?S????}?X?^' ; |
| 1738 | 198 | h-you |
|
| 1739 | create index PersonInChargeMaster_Index1
|
||
| 1740 | on personinchargemaster(StartDate);
|
||
| 1741 |
|
||
| 1742 | create index PersonInChargeMaster_Index2
|
||
| 1743 | on personinchargemaster(DepartmentCode);
|
||
| 1744 |
|
||
| 1745 | 271 | h-you | -- ?S??????^?}?X?^
|
| 1746 | 325 | h-you | drop table if exists personsalarymaster cascade;
|
| 1747 | 198 | h-you |
|
| 1748 | create table personsalarymaster (
|
||
| 1749 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
| 1750 | , StartDate date not null comment '?g?p?J?n?N????' |
||
| 1751 | , MonthlySalary decimal(11,0) not null comment '???????z' |
||
| 1752 | , YearSalary decimal(12,0) not null comment '?N????z' |
||
| 1753 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1754 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1755 | 198 | h-you | , constraint personsalarymaster_PKC primary key (PersonCode,StartDate)
|
| 1756 | 271 | h-you | ) comment '?S??????^?}?X?^' ; |
| 1757 | 198 | h-you |
|
| 1758 | create index PersonSalaryMaster_Index1
|
||
| 1759 | on personsalarymaster(PersonCode);
|
||
| 1760 |
|
||
| 1761 | create index PersonSalaryMaster_Index2
|
||
| 1762 | on personsalarymaster(StartDate);
|
||
| 1763 |
|
||
| 1764 | 342 | h-you | create index PersonSalaryMaster_Index3
|
| 1765 | on personsalarymaster(MonthlySalary);
|
||
| 1766 |
|
||
| 1767 | 271 | h-you | -- ?w???????f?[?^
|
| 1768 | 325 | h-you | drop table if exists pointingoutcomment cascade;
|
| 1769 | 198 | h-you |
|
| 1770 | create table pointingoutcomment (
|
||
| 1771 | 271 | h-you | ConstructionCode decimal(10,0) not null comment '?H???R?[?h' |
| 1772 | , ProcessNo smallint(6) not null comment '????????i??????j' |
||
| 1773 | , SeqNo smallint(6) not null comment '????' |
||
| 1774 | , PageCount smallint(6) not null comment '?y?[?W???' |
||
| 1775 | , PersonCode decimal(8,0) not null comment '?L????R?[?h' |
||
| 1776 | , DrowColor varchar(8) comment '?`??F' |
||
| 1777 | , CommentMessage varchar(1000) comment '???b?Z?[?W'
|
||
| 1778 | , StartPointX smallint(6) not null comment '?w?E?????u?w'
|
||
| 1779 | , StartPointY smallint(6) not null comment '?w?E?????u?x'
|
||
| 1780 | , CurrentPointX smallint(6) not null comment '??????u?w'
|
||
| 1781 | , CurrentPointY smallint(6) not null comment '??????u?x'
|
||
| 1782 | , CurrentWidth smallint(6) not null comment '?\???T?C?YWidth'
|
||
| 1783 | , CurrentHeight smallint(6) not null comment '?\???T?C?YHeigth'
|
||
| 1784 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1785 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1786 | 198 | h-you | , constraint pointingoutcomment_PKC primary key (ConstructionCode,ProcessNo,SeqNo)
|
| 1787 | 271 | h-you | ) comment '?w???????f?[?^' ;
|
| 1788 | 198 | h-you |
|
| 1789 | 271 | h-you | -- ?????????????c???^?f?[?^
|
| 1790 | 325 | h-you | drop table if exists proceedingsdata cascade;
|
| 1791 | 198 | h-you |
|
| 1792 | create table proceedingsdata (
|
||
| 1793 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1794 | , ProceedingsDataDate date not null comment '?c???^????'
|
||
| 1795 | , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
||
| 1796 | , EndMeetingTime decimal(4,0) unsigned not null comment '??c????I??'
|
||
| 1797 | , CreatorCode decimal(8,0) not null comment '????R?[?h'
|
||
| 1798 | , PalceFlag decimal(1,0) not null comment '???n?t???O'
|
||
| 1799 | , MeetingPalce varchar(120) comment '???????'
|
||
| 1800 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1801 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1802 | 198 | h-you | , constraint proceedingsdata_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime)
|
| 1803 | 271 | h-you | ) comment '?????????????c???^?f?[?^' ;
|
| 1804 | 198 | h-you |
|
| 1805 | 271 | h-you | -- ?????????????c???^?f?[?^?i?o???j
|
| 1806 | 325 | h-you | drop table if exists proceedingsdataattend cascade;
|
| 1807 | 198 | h-you |
|
| 1808 | create table proceedingsdataattend (
|
||
| 1809 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1810 | , ProceedingsDataDate date not null comment '?c???^????'
|
||
| 1811 | , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
||
| 1812 | , SeqNo decimal(3,0) unsigned not null comment '????s???'
|
||
| 1813 | , Department varchar(20) comment '?o??????'
|
||
| 1814 | , AttendName varchar(10) comment '?o??????'
|
||
| 1815 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1816 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1817 | 198 | h-you | , constraint proceedingsdataattend_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
|
| 1818 | 271 | h-you | ) comment '?????????????c???^?f?[?^?i?o???j' ;
|
| 1819 | 198 | h-you |
|
| 1820 | 271 | h-you | -- ?????????????c???^?f?[?^?i????j
|
| 1821 | 325 | h-you | drop table if exists proceedingsdatadetail cascade;
|
| 1822 | 198 | h-you |
|
| 1823 | create table proceedingsdatadetail (
|
||
| 1824 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1825 | , ProceedingsDataDate date not null comment '?c???^????'
|
||
| 1826 | , StartMeetingTime decimal(4,0) unsigned not null comment '??c????J?n'
|
||
| 1827 | , SeqNo decimal(3,0) unsigned not null comment '????s???'
|
||
| 1828 | , TitleNo varchar(5) comment '?c????'
|
||
| 1829 | , Title varchar(20) comment '?c??'
|
||
| 1830 | , ContentsText varchar(50) comment '???e'
|
||
| 1831 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1832 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1833 | 198 | h-you | , constraint proceedingsdatadetail_PKC primary key (ConstructionCode,ProceedingsDataDate,StartMeetingTime,SeqNo)
|
| 1834 | 271 | h-you | ) comment '?????????????c???^?f?[?^?i????j' ;
|
| 1835 | 198 | h-you |
|
| 1836 | 271 | h-you | -- ???F?f?[?^
|
| 1837 | 325 | h-you | drop table if exists processapproval cascade;
|
| 1838 | 198 | h-you |
|
| 1839 | create table processapproval (
|
||
| 1840 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1841 | , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
||
| 1842 | , OrderNo decimal(2,0) unsigned not null comment '??t???'
|
||
| 1843 | , SeqNo decimal(2,0) not null comment '?}??'
|
||
| 1844 | , PersonCode decimal(8,0) unsigned not null comment '?\???E???F??R?[?h'
|
||
| 1845 | , PetitionApprovalDate datetime not null comment '?\???E???F???t'
|
||
| 1846 | , ApprovalLimitDates datetime not null comment '???F??]??'
|
||
| 1847 | , ApprovalStatus decimal(1,0) not null comment '???F???'
|
||
| 1848 | , InputComment varchar(300) comment '?R?????g'
|
||
| 1849 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1850 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1851 | 198 | h-you | , constraint processapproval_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SeqNo)
|
| 1852 | 271 | h-you | ) comment '???F?f?[?^' ;
|
| 1853 | 198 | h-you |
|
| 1854 | 271 | h-you | -- ???F?R?????g?f?[?^
|
| 1855 | 325 | h-you | drop table if exists processapprovalcomment cascade;
|
| 1856 | 198 | h-you |
|
| 1857 | create table processapprovalcomment (
|
||
| 1858 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1859 | , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
||
| 1860 | , OrderNo decimal(2,0) unsigned not null comment '??t???'
|
||
| 1861 | , CommentNo decimal(2,0) not null comment '?R?????g???'
|
||
| 1862 | , ParentNo decimal(2,0) not null comment '?e?R?????g???'
|
||
| 1863 | , ApproValComment varchar(300) comment '?w???E?A???R?????g'
|
||
| 1864 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1865 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1866 | 198 | h-you | , constraint processapprovalcomment_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,CommentNo)
|
| 1867 | 271 | h-you | ) comment '???F?R?????g?f?[?^' ;
|
| 1868 | 198 | h-you |
|
| 1869 | 271 | h-you | -- ???F????f?[?^
|
| 1870 | 325 | h-you | drop table if exists processapprovaldetail cascade;
|
| 1871 | 198 | h-you |
|
| 1872 | create table processapprovaldetail (
|
||
| 1873 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1874 | , ApprovalCode decimal(3,0) unsigned not null comment '???F?@?\???'
|
||
| 1875 | , OrderNo decimal(2,0) unsigned not null comment '??t???'
|
||
| 1876 | , SerialNo decimal(2,0) unsigned not null comment '?}??'
|
||
| 1877 | , LinkCode decimal(10,0) not null comment '?????N???'
|
||
| 1878 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1879 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1880 | 198 | h-you | , constraint processapprovaldetail_PKC primary key (ConstructionCode,ApprovalCode,OrderNo,SerialNo)
|
| 1881 | 271 | h-you | ) comment '???F????f?[?^' ;
|
| 1882 | 198 | h-you |
|
| 1883 | 271 | h-you | -- ?N?????}?X?^
|
| 1884 | 325 | h-you | drop table if exists processexcutemaster cascade;
|
| 1885 | 198 | h-you |
|
| 1886 | create table processexcutemaster (
|
||
| 1887 | 271 | h-you | SecCode decimal(2,0) unsigned not null comment '???????'
|
| 1888 | , ExecCode decimal(4,0) unsigned not null comment '?N?????????'
|
||
| 1889 | , EditFlg decimal(1,0) not null comment '??W?t???O'
|
||
| 1890 | , EntryDate datetime not null comment '?o?^???t'
|
||
| 1891 | , UpdateDate datetime not null comment '?X?V???t'
|
||
| 1892 | 198 | h-you | , constraint processexcutemaster_PKC primary key (SecCode,ExecCode)
|
| 1893 | 271 | h-you | ) comment '?N?????}?X?^' ;
|
| 1894 | 198 | h-you |
|
| 1895 | create index ProcessExcuteMaster_Index1
|
||
| 1896 | on processexcutemaster(SecCode);
|
||
| 1897 |
|
||
| 1898 | create index ProcessExcuteMaster_Index2
|
||
| 1899 | on processexcutemaster(ExecCode);
|
||
| 1900 |
|
||
| 1901 | 271 | h-you | -- ???????f?[?^
|
| 1902 | 325 | h-you | drop table if exists purchaseorder cascade;
|
| 1903 | 198 | h-you |
|
| 1904 | create table purchaseorder (
|
||
| 1905 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h'
|
| 1906 | , SeqNo decimal(3,0) unsigned not null comment '???????}??'
|
||
| 1907 | , CompanyCode decimal(8,0) not null comment '??????R?[?h'
|
||
| 1908 | , CreateDate date comment '?????t'
|
||
| 1909 | , OrderPrice decimal(12,0) not null comment '???????z'
|
||
| 1910 | , LastRowStringDate date not null comment '??I?s?\?????t'
|
||
| 1911 | , OrderSheetType decimal(1,0) not null comment '???E?{???t???O'
|
||
| 1912 | , PaymentTerms decimal(1,0) not null comment '?x????????'
|
||
| 1913 | , CashRatio decimal(4,1) not null comment '?????????i???j'
|
||
| 1914 | , BillPeriod decimal(4,0) not null comment '??`????' |
||
| 1915 | , PrePayments decimal(1,0) not null comment '?O????' |
||
| 1916 | , PrePaymentsDays decimal(3,0) not null comment '?O????????' |
||
| 1917 | , PrePaymentsPrice decimal(12,0) not null comment '?O???????z' |
||
| 1918 | , PartialPayment decimal(1,0) not null comment '??????' |
||
| 1919 | , PartialPaymentMounth decimal(2,0) unsigned not null comment '???????????' |
||
| 1920 | , PartialPaymentDay1 decimal(2,0) unsigned not null comment '???????????' |
||
| 1921 | , PartialPaymentDay2 decimal(2,0) unsigned not null comment '???????x????' |
||
| 1922 | , PartialPaymentPrice decimal(12,0) not null comment '?????????z' |
||
| 1923 | , CompletionPayment decimal(1,0) not null comment '???n??????x??' |
||
| 1924 | , CompletionPaymentDays decimal(3,0) unsigned not null comment '???n??????x??????' |
||
| 1925 | , CompletionPaymentPrice decimal(12,0) not null comment '???n??????x?????z' |
||
| 1926 | , LeadEngineerCode decimal(8,0) comment '??C?Z?p??R?[?h' |
||
| 1927 | 277 | h-you | , LeadEngineerName varchar(60) comment '??C?Z?p???' |
| 1928 | 271 | h-you | , SafetyOfficerCode decimal(8,0) comment '???S?????R?[?h' |
| 1929 | , SafetyOfficerName varchar(60) comment '???S??????' |
||
| 1930 | , WorkersCount decimal(3,0) unsigned comment '??????' |
||
| 1931 | , PrintoutDate date not null comment '????N????' |
||
| 1932 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1933 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1934 | 198 | h-you | , constraint purchaseorder_PKC primary key (ConstructionCode,SeqNo)
|
| 1935 | 271 | h-you | ) comment '???????f?[?^' ; |
| 1936 | 198 | h-you |
|
| 1937 | 271 | h-you | -- ?????????t?f?[?^
|
| 1938 | 325 | h-you | drop table if exists purchaseorderdate cascade;
|
| 1939 | 198 | h-you |
|
| 1940 | create table purchaseorderdate (
|
||
| 1941 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1942 | , SeqNo decimal(3,0) unsigned not null comment '???????}??' |
||
| 1943 | , CompanyCode decimal(8,0) not null comment '??????R?[?h' |
||
| 1944 | , SendDate date not null comment '???????X????' |
||
| 1945 | , ReturnDate date not null comment '???????????' |
||
| 1946 | , ReturnCheckDate date not null comment '??????????m?F??' |
||
| 1947 | , EntryDate datetime not null comment '?o?^???t' |
||
| 1948 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1949 | 198 | h-you | , constraint purchaseorderdate_PKC primary key (ConstructionCode,SeqNo)
|
| 1950 | 271 | h-you | ) comment '?????????t?f?[?^' ; |
| 1951 | 198 | h-you |
|
| 1952 | 271 | h-you | -- ??????????f?[?^
|
| 1953 | 325 | h-you | drop table if exists purchaseorderdetail cascade;
|
| 1954 | 198 | h-you |
|
| 1955 | create table purchaseorderdetail (
|
||
| 1956 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 1957 | , SeqNo decimal(3,0) unsigned not null comment '???????}??' |
||
| 1958 | , GroupCount decimal(1,0) not null comment '?O???[?v???' |
||
| 1959 | , LineCount decimal(3,0) unsigned not null comment '?s???' |
||
| 1960 | , ComponentCode decimal(5,0) unsigned not null comment '?\???L?[' |
||
| 1961 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 1962 | , FirstString varchar(120) comment '?H??E?i??' |
||
| 1963 | , SecondString varchar(120) comment '???e????' |
||
| 1964 | , UnitCount decimal(8,2) not null comment '????' |
||
| 1965 | , UnitName varchar(30) comment '?P??' |
||
| 1966 | , UnitPrice decimal(10,0) not null comment '?P??' |
||
| 1967 | , OrdersLinePrice decimal(12,0) comment '???z' |
||
| 1968 | 302 | h-you | , SourceCode decimal(10,0) unsigned not null comment '???H?????' |
| 1969 | , SourceDetailCnt decimal(4,0) unsigned not null comment '????????' |
||
| 1970 | , DataTypeFlag decimal(1,0) unsigned not null comment '?f?[?^?^?C?v?t???O' |
||
| 1971 | 271 | h-you | , EntryDate datetime not null comment '?o?^???t' |
| 1972 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 1973 | 198 | h-you | , constraint purchaseorderdetail_PKC primary key (ConstructionCode,SeqNo,GroupCount,LineCount)
|
| 1974 | 271 | h-you | ) comment '??????????f?[?^' ; |
| 1975 | 198 | h-you |
|
| 1976 | create index POrderDetail_Index1
|
||
| 1977 | on purchaseorderdetail(SourceCode);
|
||
| 1978 |
|
||
| 1979 | 271 | h-you | -- ?????f?[?^
|
| 1980 | 325 | h-you | drop table if exists requestdata cascade;
|
| 1981 | 106 | bit |
|
| 1982 | create table requestdata (
|
||
| 1983 | 271 | h-you | REQUESTNO decimal(9,0) not null comment '????No' |
| 1984 | , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????' |
||
| 1985 | , CONSTRUCTIONNAME varchar(120) not null comment '?H??????' |
||
| 1986 | , CONTRACTAMOUNT decimal(10,0) not null comment '???????z' |
||
| 1987 | , PAIDAMOUNT decimal(10,0) not null comment '????????z' |
||
| 1988 | , REQUESTAMOUNT0 decimal(10,0) not null comment '???????z?O' |
||
| 1989 | , REQUESTAMOUNT1 decimal(10,0) not null comment '???????z?P' |
||
| 1990 | , REQUESTAMOUNT2 decimal(10,0) comment '???????z?Q' |
||
| 1991 | , REQUESTAMOUNT3 decimal(10,0) comment '???????z?R' |
||
| 1992 | , REQUESTAMOUNT4 decimal(10,0) comment '???????z?S' |
||
| 1993 | , REQUESTAMOUNT5 decimal(10,0) comment '???????z?T' |
||
| 1994 | , REQUESTAMOUNT6 decimal(10,0) comment '???????z?U' |
||
| 1995 | , UNCLAIMEDAMOUNT decimal(10,0) not null comment '?????c???z' |
||
| 1996 | , UNPAIDAMOUNT decimal(10,0) not null comment '?????????z' |
||
| 1997 | , TAXAMOUNT decimal(10,0) not null comment '?????' |
||
| 1998 | , NOTE varchar(120) not null comment '???l' |
||
| 1999 | , ENTRYDATE datetime not null comment '?o?^?N????' |
||
| 2000 | , UPDATEDATE datetime not null comment '?X?V?N????' |
||
| 2001 | 106 | bit | , constraint requestdata_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE)
|
| 2002 | 271 | h-you | ) comment '?????f?[?^' ; |
| 2003 | 106 | bit |
|
| 2004 | 271 | h-you | -- ?????f?[?^????
|
| 2005 | 325 | h-you | drop table if exists requestdatadetail cascade;
|
| 2006 | 106 | bit |
|
| 2007 | create table requestdatadetail (
|
||
| 2008 | 271 | h-you | REQUESTNO decimal(9,0) not null comment '????No' |
| 2009 | , MAINCONSTRUCTIONCODE decimal(10,0) not null comment '?{?H?????' |
||
| 2010 | , CONSTRUCTIONCODE decimal(10,0) not null comment '?H?????' |
||
| 2011 | , CONSTRUCTIONKIND decimal(1,0) not null comment '?H????' |
||
| 2012 | , REQUESTAMOUNT decimal(10,0) not null comment '???????z' |
||
| 2013 | , TAXAMOUNT decimal(10,0) not null comment '?????' |
||
| 2014 | , ENTRYDATE datetime not null comment '?o?^?N????' |
||
| 2015 | , UPDATEDATE datetime not null comment '?X?V?N????' |
||
| 2016 | 106 | bit | , constraint requestdatadetail_PKC primary key (REQUESTNO,MAINCONSTRUCTIONCODE,CONSTRUCTIONCODE,CONSTRUCTIONKIND)
|
| 2017 | 271 | h-you | ) comment '?????f?[?^????' ; |
| 2018 | 106 | bit |
|
| 2019 | 271 | h-you | -- ?????w?b?_
|
| 2020 | 325 | h-you | drop table if exists requesthead cascade;
|
| 2021 | 106 | bit |
|
| 2022 | create table requesthead (
|
||
| 2023 | 271 | h-you | REQUESTNO decimal(9,0) not null comment '????No' |
| 2024 | , REQCONSTRUCTIONCODE decimal(10,0) not null comment '?????H?????' |
||
| 2025 | , ORDERNO decimal(2,0) not null comment '??t???' |
||
| 2026 | , REQUESTMONTH decimal(6,0) not null comment '??????' |
||
| 2027 | , ORDERERSDIVISION decimal(5,0) not null comment '???????' |
||
| 2028 | , ORDERERSCODE decimal(5,0) not null comment '??????R?[?h' |
||
| 2029 | , ORDERERSNAME varchar(120) not null comment '???????' |
||
| 2030 | , REQCONSTRUCTIONNAME varchar(120) not null comment '?????H??????' |
||
| 2031 | , REQUESTTOTALAMOUNT decimal(10,0) not null comment '???????z???v' |
||
| 2032 | , REQUESTAMOUNT decimal(10,0) not null comment '???????z' |
||
| 2033 | , TAXAMOUNT decimal(10,0) not null comment '?????' |
||
| 2034 | , UNPAIDAMOUNT decimal(10,0) comment '??????' |
||
| 2035 | , NOTE varchar(120) comment '???l' |
||
| 2036 | , ASSIGNEDFLG decimal(1,0) comment '??????t???O' |
||
| 2037 | , INVOICENO decimal(9,0) not null comment '??????No' |
||
| 2038 | , ENTRYDATE datetime not null comment '?o?^?N????' |
||
| 2039 | , UPDATEDATE datetime not null comment '?X?V?N????' |
||
| 2040 | 106 | bit | , constraint requesthead_PKC primary key (REQUESTNO)
|
| 2041 | 271 | h-you | ) comment '?????w?b?_' ; |
| 2042 | 106 | bit |
|
| 2043 | alter table requesthead add unique REQCONSTRUCTIONCODE (REQCONSTRUCTIONCODE,ORDERNO) ;
|
||
| 2044 |
|
||
| 2045 | 271 | h-you | -- ?????????t?f?[?^
|
| 2046 | 325 | h-you | drop table if exists requestorderdate cascade;
|
| 2047 | 106 | bit |
|
| 2048 | 198 | h-you | create table requestorderdate (
|
| 2049 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2050 | , InvoiceNo decimal(9,0) not null comment '??????No' |
||
| 2051 | , SendDate date not null comment '???????????X????' |
||
| 2052 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2053 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2054 | 239 | h-you | , constraint requestorderdate_PKC primary key (ConstructionCode,InvoiceNo)
|
| 2055 | 271 | h-you | ) comment '?????????t?f?[?^' ; |
| 2056 | 109 | bit |
|
| 2057 | 271 | h-you | -- ????O???t?f?[?^
|
| 2058 | 325 | h-you | drop table if exists salesgraphdata cascade;
|
| 2059 | 198 | h-you |
|
| 2060 | create table salesgraphdata (
|
||
| 2061 | 271 | h-you | GraphDataCode decimal(8,0) not null comment '?O???t?f?[?^?R?[?h' |
| 2062 | , ConstructionPeriod decimal(4,0) unsigned not null comment '?????' |
||
| 2063 | , SalesDataDays date not null comment '????N??' |
||
| 2064 | , DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
||
| 2065 | , DataName varchar(100) not null comment '?f?[?^?\??????' |
||
| 2066 | , SalesAmount decimal(10,0) not null comment '????f?[?^' |
||
| 2067 | , AdministrativeExpense decimal(10,0) not null comment '???E?????o??' |
||
| 2068 | , GrossProfit decimal(10,0) not null comment '?e???v' |
||
| 2069 | , NetIncome decimal(10,0) not null comment '?????v(???v)' |
||
| 2070 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2071 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2072 | 198 | h-you | , constraint salesgraphdata_PKC primary key (GraphDataCode,ConstructionPeriod,SalesDataDays)
|
| 2073 | 271 | h-you | ) comment '????O???t?f?[?^' ; |
| 2074 | 198 | h-you |
|
| 2075 | create index SalesGraphData_Idx1
|
||
| 2076 | on salesgraphdata(DisplayOrder);
|
||
| 2077 |
|
||
| 2078 | create index SalesGraphData_idx2
|
||
| 2079 | on salesgraphdata(ConstructionPeriod);
|
||
| 2080 |
|
||
| 2081 | 271 | h-you | -- ?????}?X?^
|
| 2082 | 325 | h-you | drop table if exists securitymaster cascade;
|
| 2083 | 198 | h-you |
|
| 2084 | create table securitymaster (
|
||
| 2085 | 271 | h-you | SecCode decimal(2,0) unsigned not null comment '???????' |
| 2086 | , DisplayOrder decimal(2,0) not null comment '?\????' |
||
| 2087 | , SecName varchar(60) not null comment '????????' |
||
| 2088 | , SecRank decimal(1,0) not null comment '?????????N' |
||
| 2089 | , SecRange decimal(1,0) not null comment '???????' |
||
| 2090 | , GeneralAffairs decimal(1,0) not null comment '????????t???O' |
||
| 2091 | , SelectBackColor varchar(8) not null comment '?I??w?i?F' |
||
| 2092 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2093 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2094 | 198 | h-you | , constraint securitymaster_PKC primary key (SecCode)
|
| 2095 | 271 | h-you | ) comment '?????}?X?^' ; |
| 2096 | 198 | h-you |
|
| 2097 | create index SecurityMaster_Index1
|
||
| 2098 | on securitymaster(DisplayOrder);
|
||
| 2099 |
|
||
| 2100 | create index SecurityMaster_Index2
|
||
| 2101 | on securitymaster(SecRank);
|
||
| 2102 |
|
||
| 2103 | create index SecurityMaster_Index3
|
||
| 2104 | on securitymaster(SecRange);
|
||
| 2105 |
|
||
| 2106 | 271 | h-you | -- ???S?p?g???[???f?[?^
|
| 2107 | 325 | h-you | drop table if exists sfpdata cascade;
|
| 2108 | 239 | h-you |
|
| 2109 | create table sfpdata (
|
||
| 2110 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2111 | , DataCount decimal(2,0) unsigned not null comment '?p?g???[????' |
||
| 2112 | , RequestDate datetime not null comment '?p?g???[???v??????' |
||
| 2113 | , PersonCode decimal(8,0) unsigned not null comment '?\????R?[?h' |
||
| 2114 | , StringValue varchar(300) comment '?R?????g' |
||
| 2115 | , OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
||
| 2116 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2117 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2118 | 239 | h-you | , constraint sfpdata_PKC primary key (ConstructionCode,DataCount)
|
| 2119 | 271 | h-you | ) comment '???S?p?g???[???f?[?^' ; |
| 2120 | 239 | h-you |
|
| 2121 | create index SFPData_Index1
|
||
| 2122 | on sfpdata(RequestDate);
|
||
| 2123 |
|
||
| 2124 | 271 | h-you | -- ???S?p?g???[??????f?[?^
|
| 2125 | 325 | h-you | drop table if exists sfpdatadetail cascade;
|
| 2126 | 239 | h-you |
|
| 2127 | create table sfpdatadetail (
|
||
| 2128 | 271 | h-you | ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
| 2129 | , DataCount decimal(2,0) unsigned not null comment '?p?g???[????' |
||
| 2130 | , SeqNo decimal(2,0) unsigned not null comment '?f?[?^?}??' |
||
| 2131 | , CompanyCode decimal(8,0) unsigned not null comment '??????R?[?h' |
||
| 2132 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2133 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2134 | 239 | h-you | , constraint sfpdatadetail_PKC primary key (ConstructionCode,DataCount,SeqNo)
|
| 2135 | 271 | h-you | ) comment '???S?p?g???[??????f?[?^' ; |
| 2136 | 239 | h-you |
|
| 2137 | 271 | h-you | -- ??????{?H?H??o?^?\???f?[?^
|
| 2138 | 325 | h-you | drop table if exists subconstrjobitemregist cascade;
|
| 2139 | 198 | h-you |
|
| 2140 | create table subconstrjobitemregist (
|
||
| 2141 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2142 | , CreateDate date not null comment '????' |
||
| 2143 | , SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
||
| 2144 | , DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
||
| 2145 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 2146 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2147 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2148 | 198 | h-you | , constraint subconstrjobitemregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
|
| 2149 | 271 | h-you | ) comment '??????{?H?H??o?^?\???f?[?^' ; |
| 2150 | 198 | h-you |
|
| 2151 | 271 | h-you | -- ??????E?????N?o?^?\???f?[?^
|
| 2152 | 325 | h-you | drop table if exists subconstrjoblinkregist cascade;
|
| 2153 | 198 | h-you |
|
| 2154 | create table subconstrjoblinkregist (
|
||
| 2155 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2156 | , CreateDate date not null comment '????' |
||
| 2157 | , SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
||
| 2158 | , DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
||
| 2159 | , JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
||
| 2160 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2161 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2162 | 198 | h-you | , constraint subconstrjoblinkregist_PKC primary key (PersonCode,CreateDate,SeqNo,DisplayOrder)
|
| 2163 | 271 | h-you | ) comment '??????E?????N?o?^?\???f?[?^' ; |
| 2164 | 198 | h-you |
|
| 2165 | 271 | h-you | -- ??????o?^?\???f?[?^
|
| 2166 | 325 | h-you | drop table if exists subconstrregist cascade;
|
| 2167 | 198 | h-you |
|
| 2168 | create table subconstrregist (
|
||
| 2169 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '?\??????' |
| 2170 | , CreateDate date not null comment '????' |
||
| 2171 | , SeqNo decimal(2,0) unsigned not null comment '?\???A??' |
||
| 2172 | , DataMode decimal(1,0) comment '?f?[?^??' |
||
| 2173 | , SourceCode decimal(8,0) not null comment '??????R?[?h' |
||
| 2174 | , PetitionPeriod decimal(4,0) unsigned not null comment '?\???N?x' |
||
| 2175 | , CorporateStatusName varchar(40) comment '?@?l?i????' |
||
| 2176 | , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u' |
||
| 2177 | , CompanyName varchar(100) not null comment '???????' |
||
| 2178 | , CEOPositionName varchar(60) comment '??\???E??' |
||
| 2179 | , CEOName varchar(60) comment '??\?????' |
||
| 2180 | , ContactPersonName varchar(60) comment '?S???????' |
||
| 2181 | , ZipCode varchar(8) comment '?X????' |
||
| 2182 | , Address1 varchar(60) comment '?Z???P' |
||
| 2183 | , Address2 varchar(60) comment '?Z??2' |
||
| 2184 | , Address3 varchar(60) comment '?Z??3' |
||
| 2185 | , CellPhoneNumber varchar(13) comment '?g??d?b???' |
||
| 2186 | , MailAddress varchar(257) comment '???[???A?h???X' |
||
| 2187 | , PhoneNumber varchar(13) comment '?d?b???' |
||
| 2188 | , FaxNumber varchar(13) comment 'FAX???' |
||
| 2189 | , JapaneseSyllabary varchar(2) comment '50?????' |
||
| 2190 | , StartDate date not null comment '????J?n?N????' |
||
| 2191 | , Note varchar(300) comment '???l' |
||
| 2192 | , labourKind decimal(1,0) not null comment '?x???????E????' |
||
| 2193 | , OrderDate date comment '?\????' |
||
| 2194 | , OrderNo decimal(2,0) unsigned not null comment '?\????t???' |
||
| 2195 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2196 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2197 | 198 | h-you | , constraint subconstrregist_PKC primary key (PersonCode,CreateDate,SeqNo)
|
| 2198 | 271 | h-you | ) comment '??????o?^?\???f?[?^' ; |
| 2199 | 198 | h-you |
|
| 2200 | 271 | h-you | -- ??????H??}?X?^
|
| 2201 | 325 | h-you | drop table if exists subcontractoritemmaster cascade;
|
| 2202 | 198 | h-you |
|
| 2203 | create table subcontractoritemmaster (
|
||
| 2204 | 271 | h-you | ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
| 2205 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2206 | , ItemName varchar(120) not null comment '?H????' |
||
| 2207 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 2208 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2209 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2210 | 198 | h-you | , constraint subcontractoritemmaster_PKC primary key (ItemCode)
|
| 2211 | 271 | h-you | ) comment '??????H??}?X?^' ; |
| 2212 | 198 | h-you |
|
| 2213 | 271 | h-you | -- ??????E??}?X?^
|
| 2214 | 325 | h-you | drop table if exists subcontractorjobcategory cascade;
|
| 2215 | 198 | h-you |
|
| 2216 | create table subcontractorjobcategory (
|
||
| 2217 | 271 | h-you | JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
| 2218 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2219 | , JobCategoryName varchar(120) not null comment '?E????' |
||
| 2220 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 2221 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2222 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2223 | 198 | h-you | , constraint subcontractorjobcategory_PKC primary key (JobCategoryCode)
|
| 2224 | 271 | h-you | ) comment '??????E??}?X?^' ; |
| 2225 | 198 | h-you |
|
| 2226 | 271 | h-you | -- ??????{?H?H??f?[?^
|
| 2227 | 325 | h-you | drop table if exists subcontractorjobitem cascade;
|
| 2228 | 198 | h-you |
|
| 2229 | create table subcontractorjobitem (
|
||
| 2230 | 271 | h-you | CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 2231 | , ItemCode decimal(5,0) unsigned not null comment '?H??L?[' |
||
| 2232 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2233 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2234 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2235 | 198 | h-you | , constraint subcontractorjobitem_PKC primary key (CompanyCode,ItemCode)
|
| 2236 | 271 | h-you | ) comment '??????{?H?H??f?[?^' ; |
| 2237 | 198 | h-you |
|
| 2238 | create index SubContractorJobItem_Index1
|
||
| 2239 | on subcontractorjobitem(CompanyCode);
|
||
| 2240 |
|
||
| 2241 | create index SubContractorJobItem_Index2
|
||
| 2242 | on subcontractorjobitem(ItemCode);
|
||
| 2243 |
|
||
| 2244 | 271 | h-you | -- ??????E?????N?}?X?^
|
| 2245 | 325 | h-you | drop table if exists subcontractorjoblink cascade;
|
| 2246 | 198 | h-you |
|
| 2247 | create table subcontractorjoblink (
|
||
| 2248 | 271 | h-you | CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 2249 | , JobCategoryCode decimal(5,0) not null comment '?E??L?[' |
||
| 2250 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2251 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2252 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2253 | 198 | h-you | , constraint subcontractorjoblink_PKC primary key (CompanyCode,JobCategoryCode)
|
| 2254 | 271 | h-you | ) comment '??????E?????N?}?X?^' ; |
| 2255 | 198 | h-you |
|
| 2256 | create index SubContractorJobLink_Index1
|
||
| 2257 | on subcontractorjoblink(CompanyCode);
|
||
| 2258 |
|
||
| 2259 | create index SubContractorJobLink_Index2
|
||
| 2260 | on subcontractorjoblink(JobCategoryCode);
|
||
| 2261 |
|
||
| 2262 | 271 | h-you | -- ??????}?X?^
|
| 2263 | 325 | h-you | drop table if exists subcontractormaster cascade;
|
| 2264 | 198 | h-you |
|
| 2265 | create table subcontractormaster (
|
||
| 2266 | 271 | h-you | CompanyCode decimal(8,0) not null comment '??????R?[?h' |
| 2267 | , DisplayOrder decimal(8,0) unsigned not null comment '?\????' |
||
| 2268 | , CorporateStatusName varchar(40) comment '?@?l?i????' |
||
| 2269 | , CorporateStatusPoint decimal(1,0) not null comment '?@?l?i?????u' |
||
| 2270 | , CompanyName varchar(100) not null comment '???????' |
||
| 2271 | , CEOPositionName varchar(60) comment '??\???E??' |
||
| 2272 | , CEOName varchar(60) comment '??\?????' |
||
| 2273 | , ContactPersonName varchar(60) comment '?S???????' |
||
| 2274 | , ZipCode varchar(8) comment '?X????' |
||
| 2275 | , Address1 varchar(60) comment '?Z???P' |
||
| 2276 | , Address2 varchar(60) comment '?Z??2' |
||
| 2277 | , Address3 varchar(60) comment '?Z??3' |
||
| 2278 | , CellPhoneNumber varchar(13) comment '?g??d?b???' |
||
| 2279 | , MailAddress varchar(257) comment '???[???A?h???X' |
||
| 2280 | , PhoneNumber varchar(13) comment '?d?b???' |
||
| 2281 | , FaxNumber varchar(13) comment 'FAX???' |
||
| 2282 | , JapaneseSyllabary varchar(2) comment '50?????' |
||
| 2283 | , StartDate date not null comment '????J?n?N????' |
||
| 2284 | , Note varchar(300) comment '???l' |
||
| 2285 | , labourKind decimal(1,0) not null comment '?x???????E????' |
||
| 2286 | , DeleteFlg decimal(1,0) default '0' not null comment '???t???O' |
||
| 2287 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2288 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2289 | 198 | h-you | , constraint subcontractormaster_PKC primary key (CompanyCode)
|
| 2290 | 271 | h-you | ) comment '??????}?X?^' ; |
| 2291 | 198 | h-you |
|
| 2292 | create index SubContractorMaster_Index1
|
||
| 2293 | on subcontractormaster(JapaneseSyllabary);
|
||
| 2294 |
|
||
| 2295 | 271 | h-you | -- ?d????}?X?^
|
| 2296 | 325 | h-you | drop table if exists suppliersmaster cascade;
|
| 2297 | 198 | h-you |
|
| 2298 | create table suppliersmaster (
|
||
| 2299 | 271 | h-you | SuppliersCode decimal(5,0) unsigned not null comment '?d????R?[?h' |
| 2300 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2301 | , SuppliersName1 varchar(60) not null comment '?d????1' |
||
| 2302 | , SuppliersName2 varchar(60) comment '?d?????Q' |
||
| 2303 | , ZipCode varchar(8) comment '?X????' |
||
| 2304 | , Address1 varchar(60) comment '?Z???P' |
||
| 2305 | , Address2 varchar(60) comment '?Z??2' |
||
| 2306 | , Address3 varchar(60) comment '?Z??3' |
||
| 2307 | , PhoneNumber varchar(13) comment '?d?b???' |
||
| 2308 | , FaxNumber varchar(13) comment 'FAX???' |
||
| 2309 | , Note varchar(300) comment '???l' |
||
| 2310 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 2311 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2312 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2313 | 198 | h-you | , constraint suppliersmaster_PKC primary key (SuppliersCode)
|
| 2314 | 271 | h-you | ) comment '?d????}?X?^' ; |
| 2315 | 198 | h-you |
|
| 2316 | 271 | h-you | -- ?V?X?e???N???m?F?f?[?^
|
| 2317 | 325 | h-you | drop table if exists systemexecute cascade;
|
| 2318 | 198 | h-you |
|
| 2319 | create table systemexecute (
|
||
| 2320 | 271 | h-you | PrimaryCode tinyint(4) not null comment '?L?[????' |
| 2321 | , TargetDate date not null comment '?N?????t' |
||
| 2322 | , SystemVersion int(11) not null comment '?{??E????o?[?W????' |
||
| 2323 | , UpDateCopyVersion int(11) not null comment '?R?s?[?o?[?W????' |
||
| 2324 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2325 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2326 | 198 | h-you | , constraint systemexecute_PKC primary key (PrimaryCode)
|
| 2327 | 271 | h-you | ) comment '?V?X?e???N???m?F?f?[?^' ; |
| 2328 | 198 | h-you |
|
| 2329 | 271 | h-you | -- ????}?X?^
|
| 2330 | 325 | h-you | drop table if exists systemmaster cascade;
|
| 2331 | 198 | h-you |
|
| 2332 | create table systemmaster (
|
||
| 2333 | 271 | h-you | SystemCode decimal(3,0) unsigned not null comment '???R?[?h' |
| 2334 | , CompanyName1 varchar(60) not null comment '?????P' |
||
| 2335 | , CompanyName2 varchar(60) comment '?????Q' |
||
| 2336 | , CEOName varchar(60) not null comment '??\?????' |
||
| 2337 | , CEOPositionName varchar(60) comment '??\???E??' |
||
| 2338 | , ZipCode varchar(8) not null comment '?X????' |
||
| 2339 | , Address1 varchar(60) not null comment '?Z???P' |
||
| 2340 | , Address2 varchar(60) comment '?Z??2' |
||
| 2341 | , Address3 varchar(60) comment '?Z??3' |
||
| 2342 | , PhoneNumber varchar(13) not null comment '?d?b???' |
||
| 2343 | , FaxNumber varchar(13) comment 'FAX???' |
||
| 2344 | , HomePageURL varchar(120) comment '?z?[???y?[?WURL' |
||
| 2345 | , ConsumptionTax decimal(4,2) not null comment '?????' |
||
| 2346 | , CooperationRate decimal(4,2) not null comment '???????' |
||
| 2347 | , StatutoryWelfareRate decimal(4,2) not null comment '?@???????' |
||
| 2348 | , FuelPrice decimal(5,2) not null comment '?R???L???P??' |
||
| 2349 | , AreaDistance decimal(5,2) not null comment '????u????????' |
||
| 2350 | , ExcelSavePath varchar(120) comment 'Excel????p?X' |
||
| 2351 | , BusinessPeriod smallint(6) not null comment '????c?????' |
||
| 2352 | 324 | h-you | , ConstrYear smallint(6) not null comment '????H???N?x' |
| 2353 | , BusinessBeginDate datetime not null comment '?c????????' |
||
| 2354 | , ConstrBeginDate datetime not null comment '?H???N?x?????' |
||
| 2355 | , BusinessCompDate datetime not null comment '?c?????????' |
||
| 2356 | , ConstrCompDate datetime not null comment '?H???N?x??????' |
||
| 2357 | 271 | h-you | , ConstructionNoBase decimal(1,0) not null comment '?H????????l' |
| 2358 | , SloganString1 varchar(100) comment '?W??1' |
||
| 2359 | , SloganString2 varchar(100) comment '?W??2' |
||
| 2360 | , SloganString3 varchar(100) comment '?W??3' |
||
| 2361 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2362 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2363 | 198 | h-you | , constraint systemmaster_PKC primary key (SystemCode)
|
| 2364 | 271 | h-you | ) comment '????}?X?^' ; |
| 2365 | 198 | h-you |
|
| 2366 | 271 | h-you | -- ?????}?X?^
|
| 2367 | 325 | h-you | drop table if exists termmaster cascade;
|
| 2368 | 198 | h-you |
|
| 2369 | create table termmaster (
|
||
| 2370 | 271 | h-you | ConstructionStatusFlg decimal(2,0) not null comment '?H?????t???O' |
| 2371 | , FieldNo decimal(2,0) not null comment '?`?F?b?N???t?B?[???h???' |
||
| 2372 | , SeqNo decimal(2,0) not null comment '?}??'
|
||
| 2373 | , DisplayOrder decimal(2,0) not null comment '?\????'
|
||
| 2374 | , CheckSchdule decimal(1,0) not null comment '?`?F?b?N?^?C?~???O' |
||
| 2375 | , TermDays decimal(3,0) not null comment '?o???' |
||
| 2376 | , SendTitile varchar(100) comment '?^?C?g??' |
||
| 2377 | , SendMessage varchar(100) comment '???b?Z?[?W' |
||
| 2378 | , BackColor varchar(8) comment '?w?i?F' |
||
| 2379 | , ForeColor varchar(8) comment '?????F' |
||
| 2380 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2381 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2382 | 198 | h-you | , constraint termmaster_PKC primary key (ConstructionStatusFlg,FieldNo,SeqNo)
|
| 2383 | 271 | h-you | ) comment '?????}?X?^' ; |
| 2384 | 198 | h-you |
|
| 2385 | create index TermMaster_Index1
|
||
| 2386 | on termmaster(DisplayOrder);
|
||
| 2387 |
|
||
| 2388 | 271 | h-you | -- ?o?????f?[?^
|
| 2389 | 325 | h-you | drop table if exists tranceportdailydata cascade;
|
| 2390 | 198 | h-you |
|
| 2391 | create table tranceportdailydata (
|
||
| 2392 | 271 | h-you | PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
| 2393 | , AttendanceDate date not null comment '???????' |
||
| 2394 | , StartDistance decimal(7,1) not null comment '?????o???L????' |
||
| 2395 | , ComplateDistance decimal(7,1) not null comment '?????I???L????' |
||
| 2396 | , TotalDistance decimal(6,1) not null comment '???????v?L????' |
||
| 2397 | , OfficeGoFlg decimal(1,0) not null comment '???????o??t???O' |
||
| 2398 | , OfficeOutFlg decimal(1,0) not null comment '???????A??t???O' |
||
| 2399 | , TrancePayGoFlg decimal(1,0) not null comment '?L?????o??t???O' |
||
| 2400 | , TrancePayOutFlg decimal(1,0) not null comment '?L?????A??t???O' |
||
| 2401 | , WareHouseFlg decimal(1,0) not null comment '????u??t???O' |
||
| 2402 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2403 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2404 | 198 | h-you | , constraint tranceportdailydata_PKC primary key (PersonCode,AttendanceDate)
|
| 2405 | 271 | h-you | ) comment '?o?????f?[?^' ; |
| 2406 | 198 | h-you |
|
| 2407 | create index TranceportDailyData_Index1
|
||
| 2408 | on tranceportdailydata(AttendanceDate);
|
||
| 2409 |
|
||
| 2410 | 271 | h-you | -- ?H?????o???}?X?^
|
| 2411 | 325 | h-you | drop table if exists typeexpensesmaster cascade;
|
| 2412 | 198 | h-you |
|
| 2413 | create table typeexpensesmaster (
|
||
| 2414 | 271 | h-you | TypeCode decimal(5,0) unsigned not null comment '?H?????R?[?h' |
| 2415 | , ExpensesPeriod smallint(6) not null comment '?????' |
||
| 2416 | , NameCode decimal(5,0) unsigned not null comment '?o????R?[?h' |
||
| 2417 | , ExpensesRaito decimal(4,2) not null comment '?o??' |
||
| 2418 | , DeleteFlg decimal(1,0) not null comment '???t???O' |
||
| 2419 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2420 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2421 | 198 | h-you | , constraint typeexpensesmaster_PKC primary key (TypeCode,ExpensesPeriod,NameCode)
|
| 2422 | 271 | h-you | ) comment '?H?????o???}?X?^' ; |
| 2423 | 198 | h-you |
|
| 2424 | 271 | h-you | -- ?P??}?X?^
|
| 2425 | 325 | h-you | drop table if exists unitmaster cascade;
|
| 2426 | 198 | h-you |
|
| 2427 | create table unitmaster (
|
||
| 2428 | 271 | h-you | UnitKey decimal(5,0) unsigned not null comment '?P??L?[' |
| 2429 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2430 | , UnitName varchar(30) not null comment '?P?????' |
||
| 2431 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2432 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2433 | 198 | h-you | , constraint unitmaster_PKC primary key (UnitKey)
|
| 2434 | 271 | h-you | ) comment '?P??}?X?^' ; |
| 2435 | 198 | h-you |
|
| 2436 | create index UnitMaster_Index1
|
||
| 2437 | on unitmaster(DisplayOrder);
|
||
| 2438 |
|
||
| 2439 | 271 | h-you | -- ????}?X?^
|
| 2440 | 325 | h-you | drop table if exists vehiclemaster cascade;
|
| 2441 | 198 | h-you |
|
| 2442 | create table vehiclemaster (
|
||
| 2443 | 271 | h-you | VehicleCode decimal(5,0) unsigned not null comment '????R?[?h' |
| 2444 | , DisplayOrder decimal(5,0) unsigned not null comment '?\????' |
||
| 2445 | , VehicleName varchar(100) not null comment '???????' |
||
| 2446 | , RegistrationNumber varchar(30) comment '?o?^???' |
||
| 2447 | , IdentificationNumber varchar(30) comment '?????' |
||
| 2448 | , ModelCode varchar(30) comment '?^??' |
||
| 2449 | , DepartmentCode decimal(5,0) unsigned not null comment '???????' |
||
| 2450 | , VehicleScheduleFlg decimal(1,0) not null comment '????\??\???t???O' |
||
| 2451 | , PurchaseDate date comment '?w????' |
||
| 2452 | , PurchaseName varchar(30) comment '?w????' |
||
| 2453 | , PurchaseContactPersons varchar(30) comment '?w????S????' |
||
| 2454 | , PurchasePhone varchar(13) comment '?w????d?b???' |
||
| 2455 | , LeaseDate date comment '???[?X?J?n??' |
||
| 2456 | , LeaseDestination varchar(30) comment '???[?X??' |
||
| 2457 | , LeaseContactPersons varchar(30) comment '???[?X??S????' |
||
| 2458 | , LeasePhone varchar(13) comment '???[?X??d?b???' |
||
| 2459 | , InsuranceCompany varchar(30) comment '?C???????' |
||
| 2460 | , InsuranceContactPersons varchar(30) comment '?C???????S????' |
||
| 2461 | , InsurancePhone varchar(13) comment '?C???????d?b???' |
||
| 2462 | , Note varchar(300) comment '???l' |
||
| 2463 | , EntryDate datetime comment '?o?^???t' |
||
| 2464 | , UpdateDate datetime comment '?X?V???t' |
||
| 2465 | 198 | h-you | , constraint vehiclemaster_PKC primary key (VehicleCode)
|
| 2466 | 271 | h-you | ) comment '????}?X?^' ; |
| 2467 | 198 | h-you |
|
| 2468 | 271 | h-you | -- ????L?^?f?[?^
|
| 2469 | 325 | h-you | drop table if exists vehiclerecorddata cascade;
|
| 2470 | 198 | h-you |
|
| 2471 | create table vehiclerecorddata (
|
||
| 2472 | 271 | h-you | VehicleCode decimal(5,0) unsigned not null comment '????R?[?h' |
| 2473 | , DivisionCode decimal(2,0) unsigned not null comment '?f?[?^??' |
||
| 2474 | , SeqNo decimal(2,0) not null comment '?}??' |
||
| 2475 | , RecordDate date comment '???n??' |
||
| 2476 | , Mileage mediumint(9) comment '???s????' |
||
| 2477 | , Content varchar(100) comment '???e' |
||
| 2478 | , PaymentCost decimal(10,0) comment '??p' |
||
| 2479 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2480 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2481 | 198 | h-you | , constraint vehiclerecorddata_PKC primary key (VehicleCode,DivisionCode,SeqNo)
|
| 2482 | 271 | h-you | ) comment '????L?^?f?[?^' ; |
| 2483 | 198 | h-you |
|
| 2484 | 271 | h-you | -- ????\??f?[?^
|
| 2485 | 325 | h-you | drop table if exists vehiclescheduledata cascade;
|
| 2486 | 198 | h-you |
|
| 2487 | create table vehiclescheduledata (
|
||
| 2488 | 271 | h-you | TargetDate date not null comment '????' |
| 2489 | , VehicleCode decimal(5,0) unsigned not null comment '????R?[?h' |
||
| 2490 | , MorningAfternoon decimal(1,0) not null comment '??O?E???' |
||
| 2491 | , PersonCode decimal(8,0) unsigned not null comment '?S????R?[?h' |
||
| 2492 | , TargetYear year(4) not null comment '?Y???N' |
||
| 2493 | , TargetMonth tinyint(3) unsigned not null comment '?Y????' |
||
| 2494 | , TargetDay year(4) not null comment '?Y????' |
||
| 2495 | , EntryDate datetime not null comment '?o?^???t' |
||
| 2496 | , UpdateDate datetime not null comment '?X?V???t' |
||
| 2497 | 198 | h-you | , constraint vehiclescheduledata_PKC primary key (TargetDate,VehicleCode,MorningAfternoon)
|
| 2498 | 271 | h-you | ) comment '????\??f?[?^' ; |
| 2499 | 198 | h-you |
|
| 2500 | create index VehicleScheduleData_Index1
|
||
| 2501 | on vehiclescheduledata(TargetYear);
|
||
| 2502 |
|
||
| 2503 | create index VehicleScheduleData_Index2
|
||
| 2504 | on vehiclescheduledata(TargetMonth);
|
||
| 2505 |
|
||
| 2506 | create index VehicleScheduleData_Index3
|
||
| 2507 | on vehiclescheduledata(TargetDay);
|
||
| 2508 |
|
||
| 2509 | 271 | h-you | -- ?N?}?X?^
|
| 2510 | 325 | h-you | drop table if exists yearmaster cascade;
|
| 2511 | 198 | h-you |
|
| 2512 | create table yearmaster (
|
||
| 2513 | 271 | h-you | years smallint(6) not null comment '?N' |
| 2514 | 338 | h-you | , constraint yearmaster_PKC primary key (years)
|
| 2515 | 271 | h-you | ) comment '?N?}?X?^' ; |