update tables primary key to use serial/integer

This commit is contained in:
juancwu 2025-12-17 11:25:53 -05:00
commit f251f52fa9
8 changed files with 14 additions and 14 deletions

View file

@ -1,7 +1,7 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS users (
id TEXT PRIMARY KEY,
id SERIAL PRIMARY KEY NOT NULL,
email TEXT UNIQUE NOT NULL,
password_hash TEXT NULL, -- Allow null for passwordless login
pending_email TEXT NULL, -- Store new email when changing email