change datatypea and remove sqlc query
This commit is contained in:
parent
4564085075
commit
cbf7a41c80
@ -8,11 +8,11 @@ CREATE TABLE users(
|
||||
"banned_at" timestamp,
|
||||
"banned_until" timestamp,
|
||||
"ban_reason" varchar,
|
||||
"is_permaban" boolean,
|
||||
"is_admin" boolean,
|
||||
"is_critics" boolean,
|
||||
"is_verified" boolean,
|
||||
"is_active" boolean,
|
||||
"is_permaban" boolean default(false),
|
||||
"is_admin" boolean default(false),
|
||||
"is_critics" boolean default(false),
|
||||
"is_verified" boolean default(false),
|
||||
"is_active" boolean default(true),
|
||||
"social_media" jsonb,
|
||||
"created_at" timestamp default(now()),
|
||||
"updated_at" timestamp default(now())
|
||||
|
@ -15,12 +15,6 @@ WHERE
|
||||
id = sqlc.arg(id)
|
||||
RETURNING *;
|
||||
|
||||
|
||||
-- name: GetUser :one
|
||||
SELECT * FROM USERS
|
||||
WHERE username = $1;
|
||||
|
||||
|
||||
-- name: UpdatePassword :exec
|
||||
UPDATE users
|
||||
SET password = $1
|
||||
|
Loading…
Reference in New Issue
Block a user