Код:
-- Start of DDL Script for Table SUPERMAG.FFMAPREP
-- Generated 24-июн-2013 21:01:32 from SUPERMAG@BASE
CREATE TABLE ffmaprep
(rectype NUMBER(10,0) NOT NULL,
article VARCHAR2(50) NOT NULL,
saletype CHAR(2) NOT NULL,
saleid VARCHAR2(50) NOT NULL,
salespecitem NUMBER(10,0) NOT NULL,
salelocationfrom NUMBER(10,0),
salelocationto NUMBER(10,0),
saledate DATE NOT NULL,
saleop NUMBER(5,0) NOT NULL,
saleuserop NUMBER(5,0),
salepaycash CHAR(1) NOT NULL,
saleclientindex NUMBER(10,0),
saleq NUMBER(14,3) NOT NULL,
salesum NUMBER(19,4) NOT NULL,
salenovat NUMBER(19,4) NOT NULL,
salenotax NUMBER(19,4) NOT NULL,
salecurtype NUMBER(5,0) NOT NULL,
salesumcur NUMBER(19,4) NOT NULL,
salevatrate NUMBER(8,4) NOT NULL,
primecost NUMBER(19,4) NOT NULL,
primecostnovat NUMBER(19,4) NOT NULL,
primecostforced CHAR(1) NOT NULL,
forcedmapping CHAR(1),
quantity NUMBER(14,3) NOT NULL,
incomeid VARCHAR2(50),
incometype CHAR(2),
incomespecitem NUMBER(10,0),
incomeclientindex NUMBER(10,0),
goodsowner NUMBER(5,0),
incomeq NUMBER(14,3),
incomesum NUMBER(19,4),
incomenovat NUMBER(19,4),
incomevatrate NUMBER(8,4),
incomecurtype NUMBER(5,0),
incomesumcur NUMBER(19,4),
incomedate DATE)
PCTFREE 10
INITRANS 1
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
-- Grants for Table
GRANT INSERT ON ffmaprep TO supermag_fn_repadmin_calc
/
GRANT SELECT ON ffmaprep TO supermag_fn_repadmin_calc
/
GRANT UPDATE ON ffmaprep TO supermag_fn_repadmin_calc
/
-- Indexes for FFMAPREP
CREATE INDEX ffmaprep_doc ON ffmaprep
(
saletype ASC,
saleid ASC,
salespecitem ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
CREATE INDEX ffmaprep_saledate ON ffmaprep
(
saledate ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
CREATE INDEX ffmaprep_locfrom ON ffmaprep
(
salelocationfrom ASC,
saledate ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
CREATE INDEX ffmaprep_locto ON ffmaprep
(
salelocationto ASC,
saledate ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
CREATE INDEX ffmaprep_supplier ON ffmaprep
(
incomeclientindex ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
CREATE INDEX ffmaprep_article ON ffmaprep
(
article ASC
)
PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE users
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
)
/
-- End of DDL Script for Table SUPERMAG.FFMAPREP