Files
upstream-ent/entc/integration/gremlin/ent/card/card.go
upstream-mirror 4b3ad0b611
Some checks failed
Atlas CI Public / lint (push) Failing after 13s
Atlas CI Public / sync (push) Has been skipped
snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:12:36 +05:00

59 lines
2.3 KiB
Go

// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
// Code generated by ent, DO NOT EDIT.
package card
import (
"time"
"entgo.io/ent/dialect/gremlin/graph/dsl"
)
const (
// Label holds the string label denoting the card type in the database.
Label = "card"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldCreateTime holds the string denoting the create_time field in the database.
FieldCreateTime = "create_time"
// FieldUpdateTime holds the string denoting the update_time field in the database.
FieldUpdateTime = "update_time"
// FieldBalance holds the string denoting the balance field in the database.
FieldBalance = "balance"
// FieldNumber holds the string denoting the number field in the database.
FieldNumber = "number"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// EdgeOwner holds the string denoting the owner edge name in mutations.
EdgeOwner = "owner"
// EdgeSpec holds the string denoting the spec edge name in mutations.
EdgeSpec = "spec"
// OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database.
OwnerInverseLabel = "user_card"
// SpecInverseLabel holds the string label denoting the spec inverse edge type in the database.
SpecInverseLabel = "spec_card"
)
var (
// DefaultCreateTime holds the default value on creation for the "create_time" field.
DefaultCreateTime func() time.Time
// DefaultUpdateTime holds the default value on creation for the "update_time" field.
DefaultUpdateTime func() time.Time
// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
UpdateDefaultUpdateTime func() time.Time
// DefaultBalance holds the default value on creation for the "balance" field.
DefaultBalance float64
// NumberValidator is a validator for the "number" field. It is called by the builders before save.
NumberValidator func(string) error
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
)
// OrderOption defines the ordering options for the Card queries.
type OrderOption func(*dsl.Traversal)
// comment from another template.