Keep track of API usage in user accounts, improve approval mechanism (#95)

This commit is contained in:
Brian Hackett
2025-04-04 14:40:10 -07:00
committed by GitHub
parent 4f5051dee5
commit 9389fb2afc
11 changed files with 190 additions and 120 deletions

View File

@@ -6,7 +6,9 @@ CREATE TABLE IF NOT EXISTS public.profiles (
username TEXT UNIQUE,
full_name TEXT,
avatar_url TEXT,
is_admin BOOLEAN DEFAULT FALSE NOT NULL
is_admin BOOLEAN DEFAULT FALSE NOT NULL,
peanuts_used INTEGER DEFAULT 0 NOT NULL,
peanuts_refunded INTEGER DEFAULT 0 NOT NULL
);
-- Create a trigger to update the updated_at column