Add ContentType to internal models

This commit is contained in:
ewin 2025-03-03 13:40:05 -05:00
commit 2791a9951f
No known key found for this signature in database
2 changed files with 28 additions and 1 deletions

View file

@ -40,7 +40,7 @@ type StatusEdit struct {
PollVotes []int `bun:",array"` // Poll vote count at time of status edit, only set if poll votes were reset.
StatusID string `bun:"type:CHAR(26),nullzero,notnull"` // The originating status ID this is a historical edit of.
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // The creation time of this version of the status content (according to receiving server).
ContentType StatusContentType `bun:",nullzero"` // TODO
// We don't bother having a *gtsmodel.Status model here
// as the StatusEdit is always just attached to a Status,
// so it doesn't need a self-reference back to it.