Skip to content

Commit

Permalink
fix: remove user_id from info models
Browse files Browse the repository at this point in the history
  • Loading branch information
AvilaAndre committed Feb 10, 2025
1 parent 447289c commit 129d1e1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions website/app/models/participant_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export default class ParticipantInfo extends BaseModel {
@column({ isPrimary: true })
declare id: number

@column()
declare userId: number | null

@hasOne(() => User)
declare user: HasOne<typeof User>

Expand Down
3 changes: 0 additions & 3 deletions website/app/models/promoter_info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ export default class PromoterInfo extends BaseModel {
@column({ isPrimary: true })
declare id: number

@column()
declare userId: number | null

@hasOne(() => User)
declare user: HasOne<typeof User>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export default class extends BaseSchema {
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.integer('user_id')
.unique()
.references('id')
.inTable('users')

table.timestamp('created_at')
table.timestamp('updated_at')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export default class extends BaseSchema {
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.integer('user_id')
.unique()
.references('id')
.inTable('users')

table.timestamp('created_at')
table.timestamp('updated_at')
Expand Down

0 comments on commit 129d1e1

Please sign in to comment.