Skip to content

Commit

Permalink
Update migrations (#77)
Browse files Browse the repository at this point in the history
* Generate new initial migrations

* Add migrate, migrate-prod command
  • Loading branch information
BrianUribe6 authored Mar 14, 2024
1 parent bc2c982 commit 0f6637e
Show file tree
Hide file tree
Showing 12 changed files with 149 additions and 899 deletions.
53 changes: 53 additions & 0 deletions apps/front-end/drizzle/0000_common_umar.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
CREATE TABLE `account` (
`userId` text NOT NULL,
`type` text NOT NULL,
`provider` text NOT NULL,
`providerAccountId` text NOT NULL,
`refresh_token` text,
`access_token` text,
`expires_at` integer,
`token_type` text,
`scope` text,
`id_token` text,
`session_state` text,
PRIMARY KEY(`provider`, `providerAccountId`)
);
--> statement-breakpoint
CREATE TABLE `document` (
`name` text PRIMARY KEY NOT NULL,
`createdOn` integer,
`modifiedOn` integer,
`data` blob,
`id` text NOT NULL
);
--> statement-breakpoint
CREATE TABLE `notebook_document` (
`notebookId` text PRIMARY KEY NOT NULL,
`documentName` text NOT NULL
);
--> statement-breakpoint
CREATE TABLE `notebook` (
`id` text PRIMARY KEY NOT NULL,
`authorId` text NOT NULL
);
--> statement-breakpoint
CREATE TABLE `session` (
`sessionToken` text PRIMARY KEY NOT NULL,
`userId` text NOT NULL,
`expires` integer NOT NULL
);
--> statement-breakpoint
CREATE TABLE `user` (
`id` text PRIMARY KEY NOT NULL,
`name` text,
`email` text,
`emailVerified` integer,
`image` text
);
--> statement-breakpoint
CREATE TABLE `verificationToken` (
`identifier` text NOT NULL,
`token` text NOT NULL,
`expires` integer NOT NULL,
PRIMARY KEY(`identifier`, `token`)
);
57 changes: 0 additions & 57 deletions apps/front-end/drizzle/0000_panoramic_james_howlett.sql

This file was deleted.

7 changes: 0 additions & 7 deletions apps/front-end/drizzle/0001_rare_doorman.sql

This file was deleted.

8 changes: 0 additions & 8 deletions apps/front-end/drizzle/0002_ambitious_ser_duncan.sql

This file was deleted.

Loading

0 comments on commit 0f6637e

Please sign in to comment.