Skip to content

Commit

Permalink
feat: add deletedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Dec 2, 2024
1 parent 7560383 commit dc10e8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exports.up = function (knex) {

table.timestamp('createdAt').defaultTo(knex.fn.now())
table.timestamp('updatedAt').defaultTo(knex.fn.now())
table.timestamp('deletedAt')
})
}

Expand Down
4 changes: 4 additions & 0 deletions packages/auth/src/tenant/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ export class Tenant extends BaseModel {

public idpConsentUrl!: string
public idpSecret!: string

public createdAt!: Date
public updatedAt!: Date
public deletedAt?: Date
}

0 comments on commit dc10e8f

Please sign in to comment.