new table to store target price components
This commit is contained in:
parent
c77a6643b2
commit
e9bd81f352
16
tables/core_target.pg.sql
Normal file
16
tables/core_target.pg.sql
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
DROP TABLE IF EXISTS pricequote.core_target;
|
||||
|
||||
CREATE TABLE pricequote.core_target (
|
||||
compset TEXT NOT NULL,
|
||||
stlc TEXT NOT NULL,
|
||||
floor NUMERIC NOT NULL,
|
||||
options JSONB NOT NULL,
|
||||
PRIMARY KEY (stlc)
|
||||
);
|
||||
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON pricequote.target_prices TO PUBLIC;
|
||||
|
||||
DROP TABLE IF EXISTS import.core_target;
|
||||
|
||||
CREATE TABLE import.core_target AS (SELECT * FROM pricequote.core_target);
|
Loading…
Reference in New Issue
Block a user