CREATE EXTENSION IF NOT EXISTS "pgcrypto";

CREATE SCHEMA "config" AUTHORIZATION egommerce;

CREATE TABLE IF NOT EXISTS config.settings
(
    id uuid NOT NULL DEFAULT gen_random_uuid(),
    "name" character varying NOT NULL,
    "value" character varying NOT NULL,
    PRIMARY KEY (id),
    UNIQUE (name)
);


ALTER TABLE IF EXISTS config.settings OWNER to egommerce;
