Skip to content

Commit

Permalink
Add api tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 30, 2024
1 parent 873c401 commit eec720a
Show file tree
Hide file tree
Showing 4 changed files with 423 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/api/drizzle/0004_windy_mystique.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CREATE TABLE `api_tokens` (
`id` text PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`token` text NOT NULL,
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `api_tokens_token_unique` ON `api_tokens` (`token`);
Loading

0 comments on commit eec720a

Please sign in to comment.