-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a28bb27
commit cacf9f6
Showing
17 changed files
with
1,222 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from "drizzle-kit"; | ||
|
||
export default defineConfig({ | ||
schema: "./src/schema.ts", | ||
out: "./migrations", | ||
dialect: "postgresql", | ||
dbCredentials: { | ||
url: process.env.DATABASE_URL, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-- Current sql file was generated after introspecting the database | ||
-- If you want to run this migration please uncomment this code before executing migrations | ||
/* | ||
CREATE TABLE "cars" ( | ||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
"month" text, | ||
"make" text, | ||
"importer_type" text, | ||
"fuel_type" text, | ||
"vehicle_type" text, | ||
"number" integer | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE "coe" ( | ||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
"month" text, | ||
"bidding_no" integer, | ||
"vehicle_class" text, | ||
"quota" integer, | ||
"bids_success" integer, | ||
"bids_received" integer, | ||
"premium" integer | ||
); | ||
--> statement-breakpoint | ||
CREATE INDEX "fuel_type_idx" ON "cars" USING btree ("fuel_type" text_ops);--> statement-breakpoint | ||
CREATE INDEX "make_fuel_type_idx" ON "cars" USING btree ("make" text_ops,"fuel_type" text_ops);--> statement-breakpoint | ||
CREATE INDEX "make_idx" ON "cars" USING btree ("make" text_ops);--> statement-breakpoint | ||
CREATE INDEX "month_idx" ON "cars" USING btree ("month" text_ops);--> statement-breakpoint | ||
CREATE INDEX "month_make_idx" ON "cars" USING btree ("month" text_ops,"make" text_ops);--> statement-breakpoint | ||
CREATE INDEX "number_idx" ON "cars" USING btree ("number" int4_ops);--> statement-breakpoint | ||
CREATE INDEX "bids_idx" ON "coe" USING btree ("bids_success" int4_ops,"bids_received" int4_ops);--> statement-breakpoint | ||
CREATE INDEX "month_bidding_no_idx" ON "coe" USING btree ("month" text_ops,"bidding_no" int4_ops);--> statement-breakpoint | ||
CREATE INDEX "month_bidding_no_vehicle_class_idx" ON "coe" USING btree ("month" int4_ops,"bidding_no" int4_ops,"vehicle_class" text_ops);--> statement-breakpoint | ||
CREATE INDEX "month_vehicle_idx" ON "coe" USING btree ("month" text_ops,"vehicle_class" text_ops);--> statement-breakpoint | ||
CREATE INDEX "premium_idx" ON "coe" USING btree ("premium" int4_ops);--> statement-breakpoint | ||
CREATE INDEX "vehicle_class_idx" ON "coe" USING btree ("vehicle_class" text_ops); | ||
*/ |
Oops, something went wrong.