Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- device_id
- account_id
- is_owner
- device_id = (specific device id)
- account_id = (any account id)
- is_owner = true
- device_id = (specific device id)
- account_id = (any account id)
- is_owner = false
- CREATE UNIQUE INDEX idx_name ON table_name(device_id, account_id)
- WHERE is_owner = true;
Add Comment
Please, Sign In to add comment