platform/angel_orm_generator/test/models/book.up.g.sql
2017-07-15 11:11:57 -04:00

8 lines
199 B
SQL

CREATE TEMPORARY TABLE "books" (
"id" serial,
"name" varchar,
"created_at" timestamp,
"updated_at" timestamp,
"author_id" int REFERENCES authors(id) ON DELETE CASCADE,
PRIMARY KEY(id)
);