File size: 393 Bytes
1f30e8c 9dd9a58 1f30e8c | 1 2 3 4 5 6 7 8 9 10 11 | CREATE TABLE device_bindings (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES auth.users(id) ON DELETE CASCADE,
license_id UUID,
device_fingerprint TEXT NOT NULL,
device_info JSONB,
is_active BOOLEAN DEFAULT true,
activated_at TIMESTAMPTZ DEFAULT NOW(),
last_seen_at TIMESTAMPTZ DEFAULT NOW(),
created_at TIMESTAMPTZ DEFAULT NOW()
); |