This commit is contained in:
parent
0850dab882
commit
6a6941789f
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ services:
|
|||
environment:
|
||||
- "RUST_LOG=info"
|
||||
- "ROCKET_ADDRESS=0.0.0.0"
|
||||
- "DATABASE_URL=postgres://user:pass@postgres/watchdogs"
|
||||
- "DATABASE_URL=postgres://user:pass@postgres/pacco"
|
||||
|
||||
postgres:
|
||||
image: timescale/timescaledb:latest-pg16
|
||||
|
|
|
@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS user_session (
|
|||
"user" varchar(255) NOT NULL,
|
||||
"created" timestamptz NOT NULL DEFAULT NOW(),
|
||||
"csrf" UUID NOT NULL DEFAULT gen_random_uuid(),
|
||||
"name" varchar(255)
|
||||
"name" varchar(255),
|
||||
kind session_kind NOT NULL DEFAULT 'user',
|
||||
FOREIGN KEY("user") REFERENCES users(username)
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue