Migrations - uuid fix

This commit is contained in:
PB
2025-11-08 19:24:12 +01:00
parent 3907be917d
commit d5596b59cb
6 changed files with 17 additions and 8 deletions

View File

@@ -1,11 +1,13 @@
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
CREATE TABLE catalog.product
(
id uuid NOT NULL DEFAULT uuid_generate_v4(),
id uuid NOT NULL DEFAULT gen_random_uuid(),
"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,
created_at timestamp with time zone NOT NULL DEFAULT now(),
updated_at timestamp with time zone,
PRIMARY KEY (id)
);