mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 07:56:20 -06:00
Add ContentType to internal models
This commit is contained in:
parent
ab7ec43988
commit
2791a9951f
2 changed files with 28 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue