diff --git a/server/app/database.go b/server/app/database.go index a7d93f0..67d9f86 100644 --- a/server/app/database.go +++ b/server/app/database.go @@ -30,5 +30,15 @@ func initializeDb(databaseUrl string) *sql.DB { panic(err) } + _, err = db.Exec(`CREATE TABLE IF NOT EXISTS sessions ( + id TEXT NOT NULL, + expires_at INTEGER NOT NULL, + PRIMARY KEY (id) + );`) + + if err != nil { + panic(err) + } + return db }