Actix-Demo/migrations/2020-05-02-115427_create_users/up.sql
Rohan Sircar cb26393fcd Many updates
Split codebase into modules
Added custom all in one error type
Added password to user model
Added password hashing using bcrypt
Added model validation for username using regex
2020-05-09 12:07:08 +05:30

8 lines
193 B
SQL

-- Your SQL goes here
CREATE TABLE users (
id INTEGER PRIMARY KEY NOT NULL ,
name VARCHAR NOT NULL,
password VARCHAR NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
)