chore: do some work

This commit is contained in:
Simon Ding
2024-07-06 10:59:30 +08:00
parent c703552267
commit 7d9dc17f87
14 changed files with 245 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
package schema
import (
"time"
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
@@ -20,6 +22,7 @@ func (Series) Fields() []ent.Field {
field.String("overview"),
field.String("path"),
field.String("poster_path").Optional(),
field.Time("created_at").Default(time.Now()),
}
}