NotificationTypeNotificationType`validate:"oneof=follow follow_request mention reblog favourite poll status" bun:",nullzero,notnull"`// Type of this notification
TargetAccountIDstring`validate:"ulid" bun:"type:CHAR(26),nullzero,notnull"`// Which account does this notification target (ie., who will receive the notification?)
TargetAccount*Account`validate:"-" bun:"rel:belongs-to"`// Which account performed the action that created this notification?
OriginAccountIDstring`validate:"ulid" bun:"type:CHAR(26),nullzero,notnull"`// ID of the account that performed the action that created the notification.
OriginAccount*Account`validate:"-" bun:"rel:belongs-to"`// Account corresponding to originAccountID
StatusIDstring`validate:"required_if=NotificationType mention,required_if=NotificationType reblog,required_if=NotificationType favourite,required_if=NotificationType status,omitempty,ulid" bun:"type:CHAR(26),nullzero"`// If the notification pertains to a status, what is the database ID of that status?
Status*Status`validate:"-" bun:"rel:belongs-to"`// Status corresponding to statusID