react-rust-postgres: add connection to postgres with migrations

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet
2020-03-26 10:39:45 +01:00
parent bed22c74f5
commit b73e252639
12 changed files with 192 additions and 6 deletions

View File

@@ -0,0 +1 @@
DROP TABLE users;

View File

@@ -0,0 +1,4 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
login TEXT UNIQUE NOT NULL
);