Rocket/examples/todo/db/seed.sql

8 lines
196 B
MySQL
Raw Normal View History

CREATE TABLE tasks (
2017-05-26 23:44:53 +00:00
id INTEGER PRIMARY KEY AUTOINCREMENT,
description VARCHAR NOT NULL,
completed BOOLEAN NOT NULL DEFAULT 0
);
2017-05-26 23:44:53 +00:00
INSERT INTO tasks (description) VALUES ("demo task");