Clean up schema for table keys
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
From https://gitlab.com/gitlab-com/infrastructure/issues/1709 (private to GitLab employees):
- Wrong data type: last_used_at should be timestamptz
- Missing FK: user_id -> users (493488 entries violate this rule)
- Missing constraint: key NOT NULL
- Missing constraint: fingerprint NOT NULL (1 entry violates this rule, id 666)
Edited by 🤖 GitLab Bot 🤖