Skip to content

Commit d7518ab

Browse files
committed
database/models/user: Reorder fields
1 parent ded2537 commit d7518ab

File tree

1 file changed

+4
-4
lines changed
  • crates/crates_io_database/src/models

1 file changed

+4
-4
lines changed

crates/crates_io_database/src/models/user.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ use crates_io_diesel_helpers::lower;
1616
#[derive(Clone, Debug, Queryable, Identifiable, Selectable, Serialize)]
1717
pub struct User {
1818
pub id: i32,
19+
pub name: Option<String>,
20+
pub gh_id: i32,
21+
pub gh_login: String,
22+
pub gh_avatar: Option<String>,
1923
#[diesel(deserialize_as = String)]
2024
#[serde(skip)]
2125
pub gh_access_token: SecretString,
22-
pub gh_login: String,
23-
pub name: Option<String>,
24-
pub gh_avatar: Option<String>,
25-
pub gh_id: i32,
2626
pub account_lock_reason: Option<String>,
2727
pub account_lock_until: Option<DateTime<Utc>>,
2828
pub is_admin: bool,

0 commit comments

Comments
 (0)