From 3853b84c9f0fd70a160c0f09fb59665eef2a4be6 Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 8 Sep 2026 19:02:15 +0530 Subject: [PATCH] profile --- models/tenant.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/models/tenant.go b/models/tenant.go index bbd0873..aba47a8 100644 --- a/models/tenant.go +++ b/models/tenant.go @@ -24,6 +24,14 @@ type Tenantinfo struct { Latitude string `json:"latitude"` Longitude string `json:"longitude"` Tenantimage string `json:"tenantimage"` + // When the merchant was created. + // + // The column has always been there — `tenants.created` defaults to now() — + // and `GetTenantByID` already does SELECT a.*, so the value was in every + // result set and thrown away for want of a field to scan into. A shop + // profile that cannot say how long the business has been on the platform is + // missing a fact the database has held all along. + Created time.Time `json:"created"` Tenantinfo string `json:"tenantinfo"` // The FSSAI or trade licence. //