TinySkin/db/ent/schema/usertoken.go
2023-09-03 17:00:10 +08:00

24 lines
381 B
Go

package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// UserToken holds the schema definition for the UserToken entity.
type UserToken struct {
ent.Schema
}
// Fields of the UserToken.
func (UserToken) Fields() []ent.Field {
return []ent.Field{
field.Uint64("token_id"),
}
}
// Edges of the UserToken.
func (UserToken) Edges() []ent.Edge {
return nil
}