mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-28 05:27:41 +08:00
first draft version
This commit is contained in:
30
ent/schema/downloadclients.go
Normal file
30
ent/schema/downloadclients.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user