diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-08 03:43:08 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-08 03:50:53 +0300 |
commit | e849e705c30cceec3cf7336a21bed96c8a911e90 (patch) | |
tree | 93f559bcd4cf3e53193930d112e564a2b7462ac8 /pkg/model | |
parent | 3ee654f6fb3cdf119630bfba8066c96ec26428c3 (diff) |
Добавил рейтинг
Добавил страницу топа
Добавил rss/xml/json feed
Diffstat (limited to 'pkg/model')
-rw-r--r-- | pkg/model/quote.go | 1 |
1 files changed, 1 insertions, 0 deletions
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"` } |