IDstring`validate:"required,ulid" bun:"type:CHAR(26),pk,nullzero,notnull,unique"`// id of this item in the database
CreatedAttime.Time`validate:"-" bun:",nullzero,notnull,default:current_timestamp"`// when was item created
UpdatedAttime.Time`validate:"-" bun:",nullzero,notnull,default:current_timestamp"`// when was item last updated
Domainstring`validate:"required,fqdn" bun:",nullzero,notnull"`// domain to block. Eg. 'whatever.com'
CreatedByAccountIDstring`validate:"required,ulid" bun:"type:CHAR(26),nullzero,notnull"`// Account ID of the creator of this block
CreatedByAccount*Account`validate:"-" bun:"rel:belongs-to"`// Account corresponding to createdByAccountID
PrivateCommentstring`validate:"-" bun:",nullzero"`// Private comment on this block, viewable to admins
PublicCommentstring`validate:"-" bun:",nullzero"`// Public comment on this block, viewable (optionally) by everyone
Obfuscatebool`validate:"-" bun:",nullzero,default:false"`// whether the domain name should appear obfuscated when displaying it publicly
SubscriptionIDstring`validate:"omitempty,ulid" bun:"type:CHAR(26),nullzero"`// if this block was created through a subscription, what's the subscription ID?