From e849e705c30cceec3cf7336a21bed96c8a911e90 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 8 Oct 2024 03:43:08 +0300 Subject: Добавил рейтинг Добавил страницу топа Добавил rss/xml/json feed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/quote.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/model') diff --git a/pkg/model/quote.go b/pkg/model/quote.go index 0ad89cf..1e397b8 100644 --- a/pkg/model/quote.go +++ b/pkg/model/quote.go @@ -14,6 +14,7 @@ type Quote struct { Quote string `bun:",notnull"` Approved bool Archive bool + Rating int CreatedAt time.Time `bun:",nullzero,notnull,default:current_timestamp"` DeletedAt time.Time `bun:",soft_delete,nullzero"` } -- cgit v1.2.3