agent-workspace / supabase /tables /licenses.sql
luom2645's picture
Add files using upload-large-folder tool
62e1b50 verified
Raw History Blame Contribute Delete
465 Bytes
CREATE TABLE licenses (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID NOT NULL,
license_key TEXT UNIQUE NOT NULL,
device_id TEXT,
device_name TEXT,
device_type TEXT CHECK (device_type IN ('desktop',
'mobile',
'tablet')),
is_active BOOLEAN DEFAULT false,
activated_at TIMESTAMP WITH TIME ZONE,
expires_at TIMESTAMP WITH TIME ZONE,
created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc',
now())
);