gotosocial/internal/gtsmodel
kim (grufwub) 9488f3431e rename gtsmodel readme
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2021-09-10 08:36:47 +01:00
..
account.go add nullzero back to accountid tag 2021-09-10 08:30:54 +01:00
application.go further database tag fixes 2021-09-09 20:43:06 +01:00
block.go further database tag fixes 2021-09-09 20:43:06 +01:00
client.go client_test 2021-09-02 12:17:14 +02:00
domainblock.go further database tag fixes 2021-09-09 20:43:06 +01:00
emaildomainblock.go moving stuff around 2021-09-01 18:29:25 +02:00
emoji.go further database tag fixes 2021-09-09 20:43:06 +01:00
follow.go further database tag fixes 2021-09-09 20:43:06 +01:00
followrequest.go further database tag fixes 2021-09-09 20:43:06 +01:00
instance.go further database tag fixes 2021-09-09 20:43:06 +01:00
mediaattachment.go more db tag fixups 2021-09-09 20:55:08 +01:00
mention.go moving stuff around 2021-09-01 18:29:25 +02:00
notification.go moving stuff around 2021-09-01 18:29:25 +02:00
README.md rename gtsmodel readme 2021-09-10 08:36:47 +01:00
routersession.go moving stuff around 2021-09-01 18:29:25 +02:00
status.go more db tag fixups 2021-09-09 20:55:08 +01:00
statusbookmark.go moving stuff around 2021-09-01 18:29:25 +02:00
statusfave.go moving stuff around 2021-09-01 18:29:25 +02:00
statusmute.go moving stuff around 2021-09-01 18:29:25 +02:00
tag.go moving stuff around 2021-09-01 18:29:25 +02:00
token.go more db tag fixups 2021-09-09 20:55:08 +01:00
user.go handle oauth token scope, fix user.SigninCount + token.UserID 2021-09-08 20:46:08 +01:00

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!