platform/packages/orm/angel_migration_runner/example/todo.sql

15 lines
301 B
MySQL
Raw Permalink Normal View History

2019-02-14 17:15:34 +00:00
-- Generated by running `todo.dart`
CREATE TABLE "users" (
"id" serial,
"username" varchar(32) UNIQUE,
"password" varchar,
"account_confirmed" serial
);
CREATE TABLE "todos" (
"id" serial,
"user_id" int REFERENCES "user"("id") ON DELETE CASCADE,
"text" varchar,
"completed" serial
);