Adding migration files for users tables

This commit is contained in:
Jesús Espino 2020-11-17 19:44:13 +01:00
parent 11d336fef0
commit ea81d04937
4 changed files with 30 additions and 0 deletions

View file

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

View file

@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS users (
id VARCHAR(100),
username VARCHAR(100),
email VARCHAR(255),
password VARCHAR(100),
mfa_secret VARCHAR(100),
auth_service VARCHAR(20),
auth_data VARCHAR(255),
Props JSON,
CreateAt BIGINT,
UpdateAt BIGINT,
DeleteAt BIGINT,
PRIMARY KEY (id)
);

View file

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

View file

@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS users (
id VARCHAR(100),
username VARCHAR(100),
email VARCHAR(255),
password VARCHAR(100),
mfa_secret VARCHAR(100),
auth_service VARCHAR(20),
auth_data VARCHAR(255),
Props TEXT,
CreateAt BIGINT,
UpdateAt BIGINT,
DeleteAt BIGINT,
PRIMARY KEY (id)
);