create tables necessary to expand targt price list
This commit is contained in:
parent
0708793aeb
commit
dbbf7d6c6c
16
tables/core_target.ms.sql
Normal file
16
tables/core_target.ms.sql
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
DROP TABLE IF EXISTS pricing.pricing.core_target;
|
||||||
|
|
||||||
|
CREATE TABLE pricing.pricing.core_target (
|
||||||
|
compset VARCHAR(MAX) NOT NULL,
|
||||||
|
stlc VARCHAR(30) NOT NULL,
|
||||||
|
floor NUMERIC(20,5) NOT NULL,
|
||||||
|
options VARCHAR(MAX) NOT NULL,
|
||||||
|
PRIMARY KEY (stlc)
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE SCHEMA import;
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS pricing.import.core_target;
|
||||||
|
|
||||||
|
-- CREATE TABLE pricing.import.core_target AS (SELECT * FROM pricing.pricing.core_target);
|
||||||
|
SELECT * INTO pricing.import.core_target FROM pricing.pricing.core_target;
|
7
tables/option_sequence.ms.sql
Normal file
7
tables/option_sequence.ms.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
CREATE TABLE pricing.pricing.option_sequence (
|
||||||
|
entity varchar(30) NOT NULL,
|
||||||
|
seq int NOT NULL,
|
||||||
|
func varchar(30) NOT NULL,
|
||||||
|
"domain" varchar(30) NOT NULL,
|
||||||
|
CONSTRAINT option_sequence_pkey PRIMARY KEY (entity)
|
||||||
|
);
|
7
tables/option_sequence.pg.sql
Normal file
7
tables/option_sequence.pg.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
CREATE TABLE option_sequence (
|
||||||
|
entity text NOT NULL,
|
||||||
|
seq int4 NOT NULL,
|
||||||
|
func text NOT NULL,
|
||||||
|
"domain" text NOT NULL,
|
||||||
|
CONSTRAINT option_sequence_pkey PRIMARY KEY (entity)
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user