mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
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).
30 lines
902 B
Go
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.
|