mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 20:16:17 -06:00
add nullzero back to accountid tag
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
parent
01a7296107
commit
d895e5fd7f
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ import (
|
|||
|
||||
// Account represents either a local or a remote fediverse account, gotosocial or otherwise (mastodon, pleroma, etc).
|
||||
type Account struct {
|
||||
ID string `validate:"required,ulid" bun:"type:CHAR(26),pk,notnull,unique"` // id of this item in the database
|
||||
ID string `validate:"required,ulid" bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // id of this item in the database
|
||||
CreatedAt time.Time `validate:"-" bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` // when was item created
|
||||
UpdatedAt time.Time `validate:"-" bun:"type:timestamp,nullzero,notnull,default:current_timestamp"` // when was item last updated
|
||||
Username string `validate:"required" bun:",nullzero,notnull,unique:userdomain"` // Username of the account, should just be a string of [a-zA-Z0-9_]. Can be added to domain to create the full username in the form ``[username]@[domain]`` eg., ``user_96@example.org``. Username and domain should be unique *with* each other
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue