feat: got sqlc to work
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
-- name: CreateUser :one
|
||||
INSERT INTO user (username, verified, banned, registration_date) VALUES ($1, false, false, NOW()) RETURNING id, username, verified, banned, registration_date;
|
||||
INSERT INTO users(username, verified, banned, registration_date) VALUES ($1, false, false, NOW()) RETURNING id, username, verified, banned, registration_date;
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
CREATE TABLE IF NOT EXISTS "users" (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
username VARCHAR(20) UNIQUE NOT NULL,
|
||||
banned BOOLEAN NOT NULL,
|
||||
verified BOOLEAN,
|
||||
banned BOOLEAN,
|
||||
registration_date TIMESTAMP NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
version: "2"
|
||||
sql:
|
||||
- schema: "../postgresql/schema.sql"
|
||||
- schema: "schema.sql"
|
||||
queries: "query.sql"
|
||||
engine: "postgresql"
|
||||
gen:
|
||||
|
||||
Reference in New Issue
Block a user