if exists(select * from sysobjects where id = object_id('dbo.SST015'))
drop table dbo.SST015
go
create table dbo.SST015
(
NUM char(15) not null,
DT varchar(8) null,
CSTCD varchar(8) null,
OUT_CLS char(1) null,
PCH_DPTCD varchar(8) null,
OUT_DPTCD varchar(8) null,
PD_DPTCD varchar(8) null,
AMT numeric(14,3) null default 0,
VAT numeric(14,3) null default 0,
UNCOL numeric(14,3) null default 0,
COMAMT numeric(14,3) null default 0,
COMVAT numeric(14,3) null default 0,
COMCOL numeric(14,3) null default 0,
MEMCARD varchar(20) null, /*PosErp(spkÇÁ·ÎÁ§Æ®¸í)*/
SU numeric(5) null default 0, /*PosErp */
APP_CLS char(1) null,
INDT varchar(20) null,
INCD varchar(10) null,
LSTDT varchar(20) null,
LSTCD varchar(10) null,
constraint PK_SST015 primary key (NUM)
)
go
if exists(select name from sysindexes where name = 'IX_SST015A')
DROP INDEX dbo.SST015.IX_SST015A
go
CREATE INDEX IX_SST015A ON dbo.SST015(CSTCD,DT)
go
/* -------------------------------------------------------------------------- */
/* Å×À̺í¸í : SST016 (SPK´ëÇ¥°ø»çDetail/ Ãâ°í4010¿¡¼ ǰ¸ñ¼±ÅÃ2009.12.20ÀÏ) 2004.2.28(Åä) Ãß°¡*/
/* -------------------------------------------------------------------------- */
if exists(select * from sysobjects where id = object_id('dbo.SST016'))
drop table dbo.SST016
go
create table dbo.SST016
(
NUM char(15) not null,
SEQ numeric(3) not null,
ITMCD varchar(20) null,
QTY numeric(14,3) null default 0,
DAN numeric(14,3) null default 0,
AMT numeric(14,3) null default 0,
VAT numeric(14,3) null default 0,
UNCOL numeric(14,3) null default 0,
COMAMT numeric(14,3) null default 0,
COMVAT numeric(14,3) null default 0,
COMCOL numeric(14,3) null default 0,
APP_YN char(1) null,
ORD_NUM varchar(12) null,
ORD_SEQ numeric(3) null default 0,
PDITMCD varchar(20) null,
BILL_CD varchar(12) null,
MAGAM char(1) null,
REF varchar(40) null,
INDT varchar(20) null,
INCD varchar(10) null,
LSTDT varchar(20) null,
LSTCD varchar(10) null,
constraint PK_SST016 primary key (NUM,SEQ)
)
go |
|