Files
ent/entc/integration/gremlin/ent/task/task.go
Ariel Mashraki 0e49dd1d9f entc/gen: support local package names for generated packages
The new Alias option adds package aliases (local names) for all type-packages that
their import identifier conflicts with user-defined packages (i.e. GoType).
2022-02-02 15:50:00 +02:00

30 lines
902 B
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 entc, DO NOT EDIT.
package enttask
import (
"entgo.io/ent/entc/integration/ent/schema/task"
)
const (
// Label holds the string label denoting the task type in the database.
Label = "task"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldPriority holds the string denoting the priority field in the database.
FieldPriority = "priority"
)
var (
// DefaultPriority holds the default value on creation for the "priority" field.
DefaultPriority task.Priority
// PriorityValidator is a validator for the "priority" field. It is called by the builders before save.
PriorityValidator func(int) error
)
// comment from another template.