Skip to content

Commit

Permalink
add roles to model
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-ng committed Apr 1, 2024
1 parent 2b163af commit 3fde706
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/typescript/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export default class User extends Model {
@Column({ type: DataType.ENUM("VP Talent", "Eteam", "Engineering", "Product", "Design", "Reviewers"), allowNull: false, defaultValue: 'Reviewers' })
permission!: Permission;

@Column({ type: DataType.ENUM("Developer, Designer"), allowNull: false })
@Column({
type: DataType.ENUM(
"Co-President", "Director Lead", "Internal Director", "External Director",
"VP Engineering", "VP Design", "VP Product", "VP Project Scoping", "VP Finance & Operations", "VP Talent",
"Graphic Designer", "Marketing & Outreach Director", "Product Manager", "Project Lead", "Project Developer", "Product Developer"
), allowNull: false
})
role!: Role;

@HasMany(() => ApplicationDashboardTable)
Expand Down

0 comments on commit 3fde706

Please sign in to comment.