Skip to content

Commit

Permalink
fix: sequelize model (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duy Cuong Tran authored Oct 28, 2020
1 parent bd3ffc7 commit d7be30d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/cat.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class Cat extends Model {

public updatedAt: Date;

public deletedAt: Date;

public category?: Category;

static associate() {
Expand Down
2 changes: 2 additions & 0 deletions src/models/category.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Category extends Model {

public updatedAt: Date;

public deletedAt: Date;

public cats?: Cat[];

static associate() {
Expand Down

0 comments on commit d7be30d

Please sign in to comment.