Skip to content

Publication model: created_at, updated_at #3

@atomotic

Description

@atomotic

I suggest adding two datetime fields to the Publication model: created_at and updated_at. These fields should not be populated via API values but only on the application side.
They can be quite useful for filtering the publications table.

type Publication struct {
gorm.Model
UUID string `json:"uuid" validate:"required,uuid4_rfc4122" gorm:"uniqueIndex"`
Title string `json:"title,omitempty"`
EncryptionKey []byte `json:"encryption_key"`
Location string `json:"location" validate:"required,url"`
ContentType string `json:"content_type"`
Size uint32 `json:"size"`
Checksum string `json:"checksum" validate:"required,base64"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions