basic find and download ability

This commit is contained in:
Simon Ding
2024-07-01 11:34:54 +08:00
parent ab8e653c5b
commit 3b7a444164
13 changed files with 2304 additions and 0 deletions

26
ent/schema/history.go Normal file
View File

@@ -0,0 +1,26 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// History holds the schema definition for the History entity.
type History struct {
ent.Schema
}
// Fields of the History.
func (History) Fields() []ent.Field {
return []ent.Field{
field.Int("series_id"),
field.Int("episode_id"),
field.String("source_title"),
field.Time("date"),
}
}
// Edges of the History.
func (History) Edges() []ent.Edge {
return nil
}