mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
27 lines
534 B
Go
27 lines
534 B
Go
package schema
|
|
|
|
import (
|
|
"entgo.io/ent"
|
|
"entgo.io/ent/schema/field"
|
|
)
|
|
|
|
// NotificationClient holds the schema definition for the NotificationClient entity.
|
|
type NotificationClient struct {
|
|
ent.Schema
|
|
}
|
|
|
|
// Fields of the NotificationClient.
|
|
func (NotificationClient) Fields() []ent.Field {
|
|
return []ent.Field{
|
|
field.String("name"),
|
|
field.String("service"),
|
|
field.String("settings"),
|
|
field.Bool("enabled").Default(true),
|
|
}
|
|
}
|
|
|
|
// Edges of the NotificationClient.
|
|
func (NotificationClient) Edges() []ent.Edge {
|
|
return nil
|
|
}
|