From 1a7ff61a2f71157e838f21a38e0ff42fccedadd5 Mon Sep 17 00:00:00 2001 From: Mandar Ramdas Date: Wed, 12 Jun 2019 18:14:02 +0530 Subject: [PATCH] changed db metadata for column DeletedAt --- model/Base.go | 2 +- model/TenantBase.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/Base.go b/model/Base.go index 9034ed9..e6b94a6 100644 --- a/model/Base.go +++ b/model/Base.go @@ -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"` } diff --git a/model/TenantBase.go b/model/TenantBase.go index 6b959a0..233071c 100644 --- a/model/TenantBase.go +++ b/model/TenantBase.go @@ -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"` }