mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-07 01:50:47 +08:00
29 lines
514 B
Go
29 lines
514 B
Go
package schema
|
|
|
|
import (
|
|
"entgo.io/ent"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
// Epidodes holds the schema definition for the Epidodes entity.
|
|
type Epidodes struct {
|
|
ent.Schema
|
|
}
|
|
|
|
// Fields of the Epidodes.
|
|
func (Epidodes) Fields() []ent.Field {
|
|
return []ent.Field{
|
|
field.Int("series_id"),
|
|
field.Int("season_number"),
|
|
field.Int("episode_number"),
|
|
field.String("title"),
|
|
field.String("overview"),
|
|
field.String("air_date"),
|
|
}
|
|
}
|
|
|
|
// Edges of the Epidodes.
|
|
func (Epidodes) Edges() []ent.Edge {
|
|
return nil
|
|
}
|