24 lines
1.2 KiB
Go
24 lines
1.2 KiB
Go
/*
|
|
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
|
|
*
|
|
* This work is published and licensed under a Creative Commons
|
|
* Attribution-NonCommercial-NoDerivatives 4.0 International License.
|
|
*
|
|
* Distribution of this work is permitted, but commercial use and
|
|
* modifications are strictly prohibited.
|
|
*/
|
|
package descr
|
|
|
|
type File struct {
|
|
ID string `db:"id" json:"id,omitempty" yaml:"id,omitempty"`
|
|
Collection string `db:"collection" json:"collection,omitempty" yaml:"collection,omitempty"`
|
|
Name string `db:"name" json:"name,omitempty" yaml:"name,omitempty"`
|
|
Type string `db:"type" json:"type,omitempty" yaml:"type,omitempty"`
|
|
Checksum string `db:"checksum" json:"checksum,omitempty" yaml:"checksum,omitempty"`
|
|
Size int64 `db:"size" json:"size,omitempty" yaml:"size,omitempty"`
|
|
CreatedAt string `db:"created_at" json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
|
|
UpdatedAt string `db:"updated_at" json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
|
|
CreatedBy string `db:"created_by" json:"createdBy,omitempty" yaml:"createdBy,omitempty"`
|
|
UpdatedBy string `db:"updated_by" json:"updatedBy,omitempty" yaml:"updatedBy,omitempty"`
|
|
}
|