Files
polaris/ent/schema/series.go
2024-06-22 17:15:24 +08:00

29 lines
493 B
Go

package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Series holds the schema definition for the Series entity.
type Series struct {
ent.Schema
}
// Fields of the Series.
func (Series) Fields() []ent.Field {
return []ent.Field{
field.Int("tmdb_id"),
field.String("imdb_id"),
field.String("title"),
field.String("original_name"),
field.String("overview"),
field.String("path"),
}
}
// Edges of the Series.
func (Series) Edges() []ent.Edge {
return nil
}