chore: update comment on the users.github_com_user_id field (#17037)

Follow up to https://github.com/coder/coder/pull/17029.
This commit is contained in:
Hugo Dutka
2025-03-21 13:31:17 +01:00
committed by GitHub
parent a71aa202dc
commit de6080c46d
4 changed files with 4 additions and 2 deletions

View File

@ -861,7 +861,7 @@ COMMENT ON COLUMN users.quiet_hours_schedule IS 'Daily (!) cron schedule (with o
COMMENT ON COLUMN users.name IS 'Name of the Coder user'; COMMENT ON COLUMN users.name IS 'Name of the Coder user';
COMMENT ON COLUMN users.github_com_user_id IS 'The GitHub.com numerical user ID. At time of implementation, this is used to check if the user has starred the Coder repository.'; COMMENT ON COLUMN users.github_com_user_id IS 'The GitHub.com numerical user ID. It is used to check if the user has starred the Coder repository. It is also used for filtering users in the users list CLI command, and may become more widely used in the future.';
COMMENT ON COLUMN users.hashed_one_time_passcode IS 'A hash of the one-time-passcode given to the user.'; COMMENT ON COLUMN users.hashed_one_time_passcode IS 'A hash of the one-time-passcode given to the user.';

View File

@ -0,0 +1 @@
COMMENT ON COLUMN users.github_com_user_id IS 'The GitHub.com numerical user ID. At time of implementation, this is used to check if the user has starred the Coder repository.';

View File

@ -0,0 +1 @@
COMMENT ON COLUMN users.github_com_user_id IS 'The GitHub.com numerical user ID. It is used to check if the user has starred the Coder repository. It is also used for filtering users in the users list CLI command, and may become more widely used in the future.';

View File

@ -3180,7 +3180,7 @@ type User struct {
QuietHoursSchedule string `db:"quiet_hours_schedule" json:"quiet_hours_schedule"` QuietHoursSchedule string `db:"quiet_hours_schedule" json:"quiet_hours_schedule"`
// Name of the Coder user // Name of the Coder user
Name string `db:"name" json:"name"` Name string `db:"name" json:"name"`
// The GitHub.com numerical user ID. At time of implementation, this is used to check if the user has starred the Coder repository. // The GitHub.com numerical user ID. It is used to check if the user has starred the Coder repository. It is also used for filtering users in the users list CLI command, and may become more widely used in the future.
GithubComUserID sql.NullInt64 `db:"github_com_user_id" json:"github_com_user_id"` GithubComUserID sql.NullInt64 `db:"github_com_user_id" json:"github_com_user_id"`
// A hash of the one-time-passcode given to the user. // A hash of the one-time-passcode given to the user.
HashedOneTimePasscode []byte `db:"hashed_one_time_passcode" json:"hashed_one_time_passcode"` HashedOneTimePasscode []byte `db:"hashed_one_time_passcode" json:"hashed_one_time_passcode"`