Add comments to storage types

This commit is contained in:
mStar aka a person 2024-06-06 11:54:50 +00:00
parent 1fbdf7fc9d
commit 94197780e1
7 changed files with 31 additions and 8 deletions

View file

@ -16,6 +16,9 @@ type User struct {
Handle string // Handle is the full handle, eg @max@example.com
CreatedAt time.Time // When this entry was created
UpdatedAt time.Time // When this account was last updated. Will also be used for refreshing remote accounts
// When this entry was deleted (for soft deletions)
// Soft delete means that this entry still exists in the db, but gorm won't include it anymore unless specifically told to
// If not null, this entry is marked as deleted
DeletedAt gorm.DeletedAt `gorm:"index"`
Remote bool // Whether the account is a local or remote one
Server string // The url of the server this account is from