1
0
Fork 0
forked from gorb/backend

feat: implement proper user and me structs

This commit is contained in:
Radical 2025-05-20 18:04:44 +02:00
parent cee1b41e89
commit b66c8f0613
5 changed files with 191 additions and 76 deletions

View file

@ -68,6 +68,7 @@ async fn main() -> Result<(), Error> {
password varchar(512) NOT NULL,
email varchar(100) NOT NULL,
email_verified boolean NOT NULL DEFAULT FALSE,
avatar varchar(100) DEFAULT NULL,
is_deleted boolean NOT NULL DEFAULT FALSE,
deleted_at int8 DEFAULT NULL,
CONSTRAINT unique_username_active UNIQUE NULLS NOT DISTINCT (username, is_deleted),