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() );