Initial implementation of db stuffs

Got the migrations and datastructures in. Next step is building db
utility function into the db module or client module
This commit is contained in:
2026-05-18 14:54:57 -07:00
parent 907c6a8fb0
commit c92ee309a9
21 changed files with 262 additions and 1 deletions
@@ -0,0 +1,3 @@
-- This file should undo anything in `up.sql`
DROP TABLE groups;
DROP TYPE user_t;
@@ -0,0 +1,11 @@
-- Your SQL goes here
CREATE TYPE user_t AS (
name TEXT,
server TEXT
);
CREATE TABLE groups (
id SERIAL PRIMARY KEY,
groupname TEXT NOT NULL,
role TEXT,
username user_t NOT NULL
)