Rocket/examples/todo/db/seed.sql

8 lines
180 B
SQL

CREATE TABLE tasks (
id INTEGER PRIMARY KEY,
description VARCHAR NOT NULL,
completed BOOLEAN NOT NULL DEFAULT 0
);
INSERT INTO tasks (description) VALUES ("my first task");