gator/sql/postgres/schema/001_users.sql
Dan Anglin cfa6a4abad
refactor: move postgres SQL files
Move the postgres SQL schema and query files to sql/postgres.
2024-10-01 06:51:10 +01:00

10 lines
196 B
SQL

-- +goose Up
CREATE TABLE users (
id UUID PRIMARY KEY,
created_at TIMESTAMP NOT NULL,
updated_at TIMESTAMP NOT NULL,
name varchar(255) NOT NULL UNIQUE
);
-- +goose Down
DROP TABLE users;