28 lines
1019 B
Julia
28 lines
1019 B
Julia
"""
|
|
CREATE TABLE "public"."wine" (
|
|
"wine_id" uuid DEFAULT gen_random_uuid() NOT NULL,
|
|
"seo_name" character varying(128) NOT NULL,
|
|
"wine_name" character varying(128) NOT NULL,
|
|
"winery" character varying(128) NOT NULL,
|
|
"vintage" integer NOT NULL,
|
|
"region" character varying(128) NOT NULL,
|
|
"country" character varying(128) NOT NULL,
|
|
"wine_type" character varying(128) NOT NULL,
|
|
"grape" character varying(128) NOT NULL,
|
|
"serving_temperature" character varying(128) NOT NULL,
|
|
"intensity" integer NULL,
|
|
"sweetness" integer NULL,
|
|
"tannin" integer NULL,
|
|
"acidity" integer NULL,
|
|
"fizziness" integer NULL,
|
|
"tasting_notes" text NULL,
|
|
"image_url" jsonb NULL,
|
|
"manufacturer_sku" text NULL,
|
|
"note" text NULL,
|
|
"other_attributes" jsonb NULL,
|
|
"created_time" timestamp with time zone DEFAULT CURRENT_TIMESTAMP NULL,
|
|
"updated_time" timestamp with time zone DEFAULT CURRENT_TIMESTAMP NULL,
|
|
"description" text NULL,
|
|
PRIMARY KEY (wine_id)
|
|
);
|
|
""" |