Refactor and added scheduler container in k8s config
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
CREATE TABLE catalog.product
|
||||
(
|
||||
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
|
||||
pid uuid NOT NULL DEFAULT gen_random_uuid(),
|
||||
id uuid NOT NULL DEFAULT uuid_generate_v4(),
|
||||
"name" character varying NOT NULL,
|
||||
slug character varying NOT NULL,
|
||||
price double precision NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL DEFAULT now(),
|
||||
updated_at timestamp without time zone,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
ALTER TABLE IF EXISTS catalog.product
|
||||
OWNER to postgres;
|
||||
|
||||
COMMENT ON COLUMN catalog.product.pid
|
||||
IS 'Unique product ID. EAN, UPC etc...';
|
||||
ALTER TABLE IF EXISTS catalog.product OWNER to egommerce;
|
||||
|
||||
@@ -6,5 +6,5 @@ GRANT ALL PRIVILEGES ON DATABASE egommerce TO egommerce;
|
||||
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
|
||||
-- CREATE SCHEMA "identity"
|
||||
-- AUTHORIZATION egommerce;
|
||||
CREATE SCHEMA "identity" AUTHORIZATION egommerce;
|
||||
CREATE SCHEMA catalog AUTHORIZATION egommerce;
|
||||
|
||||
Reference in New Issue
Block a user