GoToSocial/internal/gtsmodel
tobi c7c9fff730
use timestamptz instead of timestamp (#237)
2021-09-20 17:41:52 +02:00
..
README.md Prune unnecessary nullzeros, fixup db tags (#200) 2021-09-10 10:08:21 +02:00
account.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
application.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
block.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
client.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
domainblock.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
emaildomainblock.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
emoji.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
follow.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
followrequest.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
instance.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
mediaattachment.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
mention.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
notification.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
routersession.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
status.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
statusbookmark.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
statusfave.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
statusmute.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
tag.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
token.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00
user.go use timestamptz instead of timestamp (#237) 2021-09-20 17:41:52 +02:00

README.md

A note on when we should set data structures linked to objects in the database to use the bun nullzero tag -- this should only be done if the member type is a pointer, or if the this primitive type is literally invalid with an empty value (e.g. media IDs which when empty signifies a null database value, compared to say an account note which when empty could mean either an empty note OR null database value).

Obviously it is a little more complex than this in practice, but keep it in mind!