Skip to content

Commit

Permalink
optional user pronouns and gender
Browse files Browse the repository at this point in the history
  • Loading branch information
KavikaPalletenne committed Dec 30, 2024
1 parent 2ec5c18 commit 877c388
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions backend/migrations/20240406023149_create_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ CREATE TABLE users (
email TEXT NOT NULL UNIQUE,
zid TEXT,
name TEXT NOT NULL,
pronouns TEXT NOT NULL,
gender TEXT NOT NULL,
pronouns TEXT,
gender TEXT,
degree_name TEXT,
degree_starting_year INTEGER,
role user_role NOT NULL,
role user_role NOT NULL DEFAULT 'User',
created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Expand Down
4 changes: 2 additions & 2 deletions backend/server/src/models/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ pub struct ApplicationData {
pub user_email: String,
pub user_zid: Option<String>,
pub user_name: String,
pub user_pronouns: String,
pub user_gender: String,
pub user_pronouns: Option<String>,
pub user_gender: Option<String>,
pub user_degree_name: Option<String>,
pub user_degree_starting_year: Option<i32>,
pub status: ApplicationStatus,
Expand Down
8 changes: 4 additions & 4 deletions backend/server/src/models/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pub struct UserDetails {
pub email: String,
pub zid: Option<String>,
pub name: String,
pub pronouns: String,
pub gender: String,
pub pronouns: Option<String>,
pub gender: Option<String>,
pub degree_name: Option<String>,
pub degree_starting_year: Option<i32>,
}
Expand All @@ -27,8 +27,8 @@ pub struct User {
pub email: String,
pub zid: Option<String>,
pub name: String,
pub pronouns: String,
pub gender: String,
pub pronouns: Option<String>,
pub gender: Option<String>,
pub degree_name: Option<String>,
pub degree_starting_year: Option<i32>,
pub role: UserRole,
Expand Down

0 comments on commit 877c388

Please sign in to comment.