/*
 * 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

import (
	"mstore/pkg/uuid"
)

type File struct {
	ID         uuid.UUID `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  uuid.UUID `db:"created_by"  json:"createdBy,omitempty"  yaml:"createdBy,omitempty"`
	UpdatedBy  uuid.UUID `db:"updated_by"  json:"updatedBy,omitempty"  yaml:"updatedBy,omitempty"`
}
