Skip to content

Commit

Permalink
saving supply history
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecot committed Jan 1, 2025
1 parent 370f256 commit b322f3c
Show file tree
Hide file tree
Showing 4 changed files with 1,840 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drizzle/0045_organic_newton_destine.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS "supply_history" (
"key" text PRIMARY KEY NOT NULL,
"type" text NOT NULL,
"value" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "supply_history_key_idx" ON "supply_history" ("key");--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "supply_history_type_idx" ON "supply_history" ("type");

# GRANT ALL PRIVILEGES ON TABLE supply_history TO jsinfo;
Loading

0 comments on commit b322f3c

Please sign in to comment.