first draft version

This commit is contained in:
Simon Ding
2024-06-22 17:15:24 +08:00
parent be0dc4a466
commit ab8e653c5b
63 changed files with 15137 additions and 17 deletions

View File

@@ -0,0 +1,30 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// DownloadClients holds the schema definition for the DownloadClients entity.
type DownloadClients struct {
ent.Schema
}
// Fields of the DownloadClients.
func (DownloadClients) Fields() []ent.Field {
return []ent.Field{
field.Bool("enable"),
field.String("name"),
field.String("implementation"),
field.String("settings"),
field.String("priority"),
field.Bool("remove_completed_downloads"),
field.Bool("remove_failed_downloads"),
field.String("tags"),
}
}
// Edges of the DownloadClients.
func (DownloadClients) Edges() []ent.Edge {
return nil
}