feat: init postgres implementation via sqlx

This commit is contained in:
realaravinth
2022-05-08 20:02:17 +05:30
parent 02abffd63a
commit dba1f662a7
16 changed files with 308 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS mcaptcha_users (
name VARCHAR(100) NOT NULL UNIQUE,
email VARCHAR(100) UNIQUE DEFAULT NULL,
email_verified BOOLEAN DEFAULT NULL,
secret varchar(50) NOT NULL UNIQUE,
password TEXT NOT NULL,
ID SERIAL PRIMARY KEY NOT NULL
);