DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

2342afea3190f66f8dfa7039a93207054ef9c4f7 — Jonni Liljamo 1 year, 9 months ago be1fddd
fix(api): avoid duplicate user details at the db level
1 files changed, 3 insertions(+), 1 deletions(-)

M api/migrations/2023-02-17-075706_create_users/up.sql
M api/migrations/2023-02-17-075706_create_users/up.sql => api/migrations/2023-02-17-075706_create_users/up.sql +3 -1
@@ 6,7 6,9 @@ CREATE TABLE users (
    updated_at TIMESTAMPTZ NOT NULL DEFAULT current_timestamp,
    username VARCHAR NOT NULL,
    email VARCHAR NOT NULL,
    password VARCHAR NOT NULL
    password VARCHAR NOT NULL,
    UNIQUE(username),
    UNIQUE(email)
);

SELECT diesel_manage_updated_at('users');