๐Ÿ‘ฉโ€๐Ÿš’ Firefighters API written in Gleam!
lustre gleam

:card_file_box: add user_account table

kacaii.dev 175dfccd 09209866

verified
+18 -3
+2
.sqruff
··· 1 + [sqruff] 2 + dialect = postgres
+2
compose.yml
··· 3 3 container_name: postgres 4 4 image: docker.io/postgres:18-alpine 5 5 ports: [5432:5432] 6 + volumes: 7 + - ./sql/create:/docker-entrypoint-initdb.d 6 8 restart: unless-stopped 7 9 environment: 8 10 - POSTGRES_USER
+3 -3
justfile
··· 6 6 just --list 7 7 8 8 # ๏€… Build Lustre runtime and start HTTP server 9 - dev: compose-up 9 + dev: up 10 10 just client::build 11 11 just server::run 12 12 13 13 # Run PostgreSQL container 14 14 [group("db")] 15 - compose-up: 15 + up: 16 16 podman-compose -f compose.yml up --detach 17 17 18 18 # Stop PostgreSQL container 19 19 [group("db")] 20 - compose-down: 20 + down: 21 21 podman-compose -f compose.yml down --volumes
+11
sql/create/tables.sql
··· 1 + create table public.user_account ( 2 + id uuid default uuidv7, 3 + full_name text not null, 4 + password_hash text not null, 5 + phone text unique not null, 6 + email text unique not null, 7 + is_active boolean not null default false, 8 + created_at timestamp not null default current_timestamp, 9 + updated_at timestamp not null default current_timestamp, 10 + primary key (id) 11 + );