media

package
v0.0.0-...-35a7c86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

type Media struct {
	models.Model
	Name     string   `gorm:"column:name;not null;unique_index:name" json:"name" form:"name"`
	Tags     tags.Tag `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
	Filepath string   `gorm:"column:filepath;not null;" json:"filepath" form:"filepath"`
}

func (*Media) BeforeCreate

func (m *Media) BeforeCreate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL