Skip to content

Commit

Permalink
changed db metadata for column DeletedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarmrr committed Jun 12, 2019
1 parent 7a5f0d1 commit 1a7ff61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/Base.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ type Base struct {
ID uuid.UUID `gorm:"type:varchar(36);primary_key;"`
CreatedAt time.Time `gorm:"column:createdOn"`
UpdatedAt time.Time `gorm:"column:modifiedOn"`
DeletedAt *time.Time `sql:"index" gorm:"deletedOn"`
DeletedAt *time.Time `sql:"index" gorm:"column:deletedOn"`
}
2 changes: 1 addition & 1 deletion model/TenantBase.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ type TenantBase struct {
TenantID uuid.UUID `gorm:"type:varchar(36);column:tenantId;"`
CreatedAt time.Time `gorm:"column:createdOn"`
UpdatedAt time.Time `gorm:"column:modifiedOn"`
DeletedAt *time.Time `sql:"index" gorm:"deletedOn"`
DeletedAt *time.Time `sql:"index" gorm:"column:deletedOn"`
}

0 comments on commit 1a7ff61

Please sign in to comment.