fix
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2024-12-27 04:56:15 +01:00
parent 0850dab882
commit 6a6941789f
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ services:
environment: environment:
- "RUST_LOG=info" - "RUST_LOG=info"
- "ROCKET_ADDRESS=0.0.0.0" - "ROCKET_ADDRESS=0.0.0.0"
- "DATABASE_URL=postgres://user:pass@postgres/watchdogs" - "DATABASE_URL=postgres://user:pass@postgres/pacco"
postgres: postgres:
image: timescale/timescaledb:latest-pg16 image: timescale/timescaledb:latest-pg16

View file

@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS user_session (
"user" varchar(255) NOT NULL, "user" varchar(255) NOT NULL,
"created" timestamptz NOT NULL DEFAULT NOW(), "created" timestamptz NOT NULL DEFAULT NOW(),
"csrf" UUID NOT NULL DEFAULT gen_random_uuid(), "csrf" UUID NOT NULL DEFAULT gen_random_uuid(),
"name" varchar(255) "name" varchar(255),
kind session_kind NOT NULL DEFAULT 'user', kind session_kind NOT NULL DEFAULT 'user',
FOREIGN KEY("user") REFERENCES users(username) FOREIGN KEY("user") REFERENCES users(username)
); );