Diesel migrations

This commit is contained in:
nefrace committed 2022-11-06 02:39:13 +03:00
1 parent 960a509385
commit 39af0b2c10
18 files changed
+225

No files matched your search

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE users
@@ -0,0 +1,11 @@
-- Your SQL goes here
-- Your SQL goes here
CREATE TABLE users (
id BIGINT PRIMARY KEY,
first_name TEXT NOT NULL,
last_name TEXT,
username TEXT,
karma INT DEFAULT 0,
messages_count INT DEFAULT 0
)