From b0b895f9bdf0bd5ab171267101b4c91ca4d74505 Mon Sep 17 00:00:00 2001 From: dragonmuffin Date: Fri, 16 Aug 2024 22:16:53 +0500 Subject: [PATCH] add CreatedAt&UpdatedAt to contest model --- internal/models/contest.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/models/contest.go b/internal/models/contest.go index c3b4182..b8d0caf 100644 --- a/internal/models/contest.go +++ b/internal/models/contest.go @@ -1,8 +1,8 @@ package models type Contest struct { - Id *int `db:"id"` - Name *string `db:"name"` - //CreatedAt time.Time `db:"created_at"` FIXME - //UpdatedAt time.Time `db:"updated_at"` FIXME + Id *int `db:"id"` + Name *string `db:"name"` + CreatedAt *time.Time `db:"created_at"` + UpdatedAt *time.Time `db:"updated_at"` }