mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Keep track of API usage in user accounts, improve approval mechanism (#95)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user