feat: add diesel, but not works

This commit is contained in:
2021-02-12 23:06:29 +08:00
parent d383b36f00
commit fb84b0f85e
12 changed files with 193 additions and 0 deletions

View File

View File

@@ -0,0 +1,4 @@
-- This file should undo anything in `up.sql`
DROP TABLE posts

View File

@@ -0,0 +1,8 @@
-- Your SQL goes here
CREATE TABLE posts (
id INTEGER PRIMARY KEY,
title VARCHAR NOT NULL,
body TEXT NOT NULL,
published BOOLEAN NOT NULL DEFAULT 'f'
)