リビジョン 457
請求削除履歴テーブル追加
trunk/ddl/ProcessManagement.sql | ||
---|---|---|
1 | 1 |
-- Project Name : noname |
2 |
-- Date/Time : 2018/09/20 10:20:05
|
|
2 |
-- Date/Time : 2018/10/23 8:09:34
|
|
3 | 3 |
-- Author : Horiuchi |
4 | 4 |
-- RDBMS Type : MySQL |
5 | 5 |
-- Application : A5:SQL Mk-2 |
... | ... | |
2244 | 2244 |
, constraint reminvoicedatadetail_PKC primary key (InvoiceNo,SeqNo) |
2245 | 2245 |
) comment '????????????f?[?^' ; |
2246 | 2246 |
|
2247 |
-- ????????f?[?^ |
|
2248 |
--* BackupToTempTable |
|
2249 |
drop table if exists removerequest cascade; |
|
2250 |
|
|
2251 |
--* RestoreFromTempTable |
|
2252 |
create table removerequest ( |
|
2253 |
RemoveNo decimal(10,0) not null comment '???No' |
|
2254 |
, RemoveDate decimal(8,0) not null comment '?????????' |
|
2255 |
, RemovePersonCode decimal(8,0) unsigned not null comment '????????S????R?[?h' |
|
2256 |
, RemoveComment varchar(500) comment '??????e' |
|
2257 |
, RequestNo decimal(9,0) not null comment '????No' |
|
2258 |
, ReqConstructionCode decimal(10,0) not null comment '?????H?????' |
|
2259 |
, ORDERNO decimal(2,0) not null comment '??t???' |
|
2260 |
, RequestMonth decimal(6,0) not null comment '??????' |
|
2261 |
, OrderersDivision decimal(5,0) not null comment '???????' |
|
2262 |
, OrderersCode decimal(5,0) not null comment '??????R?[?h' |
|
2263 |
, OrderersName varchar(120) not null comment '???????' |
|
2264 |
, ReqConstructionName varchar(120) not null comment '?????H??????' |
|
2265 |
, RequestTotalAmount decimal(10,0) not null comment '???????z???v' |
|
2266 |
, RequestAmount decimal(10,0) not null comment '???????z' |
|
2267 |
, TaxAmount decimal(10,0) not null comment '?????' |
|
2268 |
, UnPaidAmount decimal(10,0) comment '??????' |
|
2269 |
, Note varchar(120) comment '???l' |
|
2270 |
, AssignedFlg decimal(1,0) comment '??????t???O' |
|
2271 |
, InvoiceNo decimal(9,0) not null comment '??????no' |
|
2272 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
|
2273 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
|
2274 |
, constraint removerequest_PKC primary key (RemoveNo,RemoveDate) |
|
2275 |
) comment '????????f?[?^' ; |
|
2276 |
|
|
2277 |
create index RemoveRequest_Index1 |
|
2278 |
on removerequest(RequestNo); |
|
2279 |
|
|
2280 |
create index RemoveRequest_Index2 |
|
2281 |
on removerequest(ReqConstructionCode); |
|
2282 |
|
|
2283 |
create index RemoveRequest_Index3 |
|
2284 |
on removerequest(ORDERNO); |
|
2285 |
|
|
2286 |
-- ????????f?[?^???? |
|
2287 |
--* BackupToTempTable |
|
2288 |
drop table if exists removerequestdetail cascade; |
|
2289 |
|
|
2290 |
--* RestoreFromTempTable |
|
2291 |
create table removerequestdetail ( |
|
2292 |
RemoveNo decimal(10,0) not null comment '???No' |
|
2293 |
, SeqNo decimal(9,0) not null comment '??tno' |
|
2294 |
, RequestNo decimal(9,0) not null comment '????no' |
|
2295 |
, MainConstructionCode decimal(10,0) not null comment '?{?H?????' |
|
2296 |
, ConstructionCode decimal(10,0) not null comment '?H?????' |
|
2297 |
, ConstructionKind decimal(1,0) not null comment '?H????' |
|
2298 |
, RequestAmount decimal(10,0) not null comment '???????z' |
|
2299 |
, TaxAmount decimal(10,0) not null comment '?????' |
|
2300 |
, ENTRYDATE datetime not null comment '?o?^?N????' |
|
2301 |
, UPDATEDATE datetime not null comment '?X?V?N????' |
|
2302 |
, constraint removerequestdetail_PKC primary key (RemoveNo,SeqNo) |
|
2303 |
) comment '????????f?[?^????' ; |
|
2304 |
|
|
2247 | 2305 |
-- ?????f?[?^ |
2248 | 2306 |
--* BackupToTempTable |
2249 | 2307 |
drop table if exists requestdata cascade; |
他の形式にエクスポート: Unified diff