File size: 358 Bytes
e08027e
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
CREATE TABLE device_bindings (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    license_id UUID NOT NULL,
    user_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()
);