Clean up schema for table keys

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

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 Sep 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading