diff --git a/Database/init-database.sql b/Database/init-database.sql index 91e9f95..9adc7c8 100644 --- a/Database/init-database.sql +++ b/Database/init-database.sql @@ -14,12 +14,14 @@ CREATE TABLE "Products" ( "ProductLines" text[] NOT NULL, "IsOnWarehouse" boolean NOT NULL, "ProductMeasure" integer NOT NULL, - "DeliveryMakeUp" double precision NULL, + "DeliveryMakeUp" double precision, "Price" numeric NOT NULL, CONSTRAINT "PK_Products" PRIMARY KEY ("Id") ); +CREATE INDEX "IX_Products_Name" ON "Products" USING GIN (to_tsvector('russian', "Name")); + INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") -VALUES ('20230511043408_Init', '7.0.5'); +VALUES ('20240117210635_Init', '8.0.0'); COMMIT; \ No newline at end of file