Add comments to storage types
This commit is contained in:
parent
1fbdf7fc9d
commit
94197780e1
7 changed files with 31 additions and 8 deletions
|
@ -7,9 +7,12 @@ import (
|
|||
)
|
||||
|
||||
type MediaFile struct {
|
||||
ID string `gorm:"primarykey"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ID string `gorm:"primarykey"` // The unique ID of this media file
|
||||
CreatedAt time.Time // When this entry was created
|
||||
UpdatedAt time.Time // When this entry was last updated
|
||||
// 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 attachment is a remote one
|
||||
Link string // url if remote attachment, identifier if local
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue