mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 19:47:47 +08:00
basic find and download ability
This commit is contained in:
26
ent/schema/history.go
Normal file
26
ent/schema/history.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user