-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Generate new initial migrations * Add migrate, migrate-prod command
- Loading branch information
1 parent
bc2c982
commit 0f6637e
Showing
12 changed files
with
149 additions
and
899 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,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`) | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.