Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions apps/api/drizzle/0014_omniscient_rumiko_fujikawa.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CREATE TABLE `revlogs` (
`id` text PRIMARY KEY NOT NULL,
`user_id` text NOT NULL,
`difficulty` real DEFAULT 0,
`due` text NOT NULL,
`due_timestamp_ms` integer NOT NULL,
`review` text NOT NULL,
`review_timestamp_ms` integer NOT NULL,
`learning_steps` integer DEFAULT 0,
`scheduled_days` integer DEFAULT 0,
`stability` real DEFAULT 0,
`state` integer DEFAULT 0,
`direction` text DEFAULT 'forward' NOT NULL,
`source` text DEFAULT 'review' NOT NULL,
`created_at` integer DEFAULT (unixepoch()) NOT NULL,
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
);
Loading