rs-basic/members/diesel-demo/migrations/2024-06-27-090844_create_table/up.sql

9 lines
172 B
SQL

-- Your SQL goes here
CREATE TABLE `posts`(
`id` INTEGER NOT NULL PRIMARY KEY,
`title` TEXT NOT NULL,
`body` TEXT NOT NULL,
`published` BOOL NOT NULL DEFAULT false
);