mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sahkal Poddar <sahkalplanet@gmail.com> Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in> Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com> Co-authored-by: Venkatesh <inventvenkat@gmail.com> Co-authored-by: venkatesh.devendran <venkatesh.devendran@juspay.in> Co-authored-by: Abhishek Marrivagu <68317979+Abhicodes-crypto@users.noreply.github.com>
14 lines
521 B
SQL
14 lines
521 B
SQL
-- Your SQL goes here
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
id SERIAL PRIMARY KEY,
|
|
user_id VARCHAR(64) NOT NULL UNIQUE,
|
|
email VARCHAR(255) NOT NULL UNIQUE,
|
|
name VARCHAR(255) NOT NULL,
|
|
password VARCHAR(255) NOT NULL,
|
|
is_verified bool NOT NULL DEFAULT false,
|
|
created_at TIMESTAMP NOT NULL DEFAULT now(),
|
|
last_modified_at TIMESTAMP NOT NULL DEFAULT now()
|
|
);
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS user_id_index ON users (user_id);
|
|
CREATE UNIQUE INDEX IF NOT EXISTS user_email_index ON users (email); |