github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/coindescription/coindescription.go (about)

     1  // Code generated by ent, DO NOT EDIT.
     2  
     3  package coindescription
     4  
     5  import (
     6  	"entgo.io/ent"
     7  	"github.com/google/uuid"
     8  )
     9  
    10  const (
    11  	// Label holds the string label denoting the coindescription type in the database.
    12  	Label = "coin_description"
    13  	// FieldID holds the string denoting the id field in the database.
    14  	FieldID = "id"
    15  	// FieldCreatedAt holds the string denoting the created_at field in the database.
    16  	FieldCreatedAt = "created_at"
    17  	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
    18  	FieldUpdatedAt = "updated_at"
    19  	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
    20  	FieldDeletedAt = "deleted_at"
    21  	// FieldEntID holds the string denoting the ent_id field in the database.
    22  	FieldEntID = "ent_id"
    23  	// FieldAppID holds the string denoting the app_id field in the database.
    24  	FieldAppID = "app_id"
    25  	// FieldCoinTypeID holds the string denoting the coin_type_id field in the database.
    26  	FieldCoinTypeID = "coin_type_id"
    27  	// FieldUsedFor holds the string denoting the used_for field in the database.
    28  	FieldUsedFor = "used_for"
    29  	// FieldTitle holds the string denoting the title field in the database.
    30  	FieldTitle = "title"
    31  	// FieldMessage holds the string denoting the message field in the database.
    32  	FieldMessage = "message"
    33  	// Table holds the table name of the coindescription in the database.
    34  	Table = "coin_descriptions"
    35  )
    36  
    37  // Columns holds all SQL columns for coindescription fields.
    38  var Columns = []string{
    39  	FieldID,
    40  	FieldCreatedAt,
    41  	FieldUpdatedAt,
    42  	FieldDeletedAt,
    43  	FieldEntID,
    44  	FieldAppID,
    45  	FieldCoinTypeID,
    46  	FieldUsedFor,
    47  	FieldTitle,
    48  	FieldMessage,
    49  }
    50  
    51  // ValidColumn reports if the column name is valid (part of the table columns).
    52  func ValidColumn(column string) bool {
    53  	for i := range Columns {
    54  		if column == Columns[i] {
    55  			return true
    56  		}
    57  	}
    58  	return false
    59  }
    60  
    61  // Note that the variables below are initialized by the runtime
    62  // package on the initialization of the application. Therefore,
    63  // it should be imported in the main as follows:
    64  //
    65  //	import _ "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/runtime"
    66  //
    67  var (
    68  	Hooks  [1]ent.Hook
    69  	Policy ent.Policy
    70  	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
    71  	DefaultCreatedAt func() uint32
    72  	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
    73  	DefaultUpdatedAt func() uint32
    74  	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
    75  	UpdateDefaultUpdatedAt func() uint32
    76  	// DefaultDeletedAt holds the default value on creation for the "deleted_at" field.
    77  	DefaultDeletedAt func() uint32
    78  	// DefaultEntID holds the default value on creation for the "ent_id" field.
    79  	DefaultEntID func() uuid.UUID
    80  	// DefaultAppID holds the default value on creation for the "app_id" field.
    81  	DefaultAppID func() uuid.UUID
    82  	// DefaultCoinTypeID holds the default value on creation for the "coin_type_id" field.
    83  	DefaultCoinTypeID func() uuid.UUID
    84  	// DefaultUsedFor holds the default value on creation for the "used_for" field.
    85  	DefaultUsedFor string
    86  	// DefaultTitle holds the default value on creation for the "title" field.
    87  	DefaultTitle string
    88  	// DefaultMessage holds the default value on creation for the "message" field.
    89  	DefaultMessage string
    90  )