github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/coinusedfor/coinusedfor.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package coinusedfor 4 5 import ( 6 "entgo.io/ent" 7 "github.com/google/uuid" 8 ) 9 10 const ( 11 // Label holds the string label denoting the coinusedfor type in the database. 12 Label = "coin_used_for" 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 // FieldCoinTypeID holds the string denoting the coin_type_id field in the database. 24 FieldCoinTypeID = "coin_type_id" 25 // FieldUsedFor holds the string denoting the used_for field in the database. 26 FieldUsedFor = "used_for" 27 // FieldPriority holds the string denoting the priority field in the database. 28 FieldPriority = "priority" 29 // Table holds the table name of the coinusedfor in the database. 30 Table = "coin_used_fors" 31 ) 32 33 // Columns holds all SQL columns for coinusedfor fields. 34 var Columns = []string{ 35 FieldID, 36 FieldCreatedAt, 37 FieldUpdatedAt, 38 FieldDeletedAt, 39 FieldEntID, 40 FieldCoinTypeID, 41 FieldUsedFor, 42 FieldPriority, 43 } 44 45 // ValidColumn reports if the column name is valid (part of the table columns). 46 func ValidColumn(column string) bool { 47 for i := range Columns { 48 if column == Columns[i] { 49 return true 50 } 51 } 52 return false 53 } 54 55 // Note that the variables below are initialized by the runtime 56 // package on the initialization of the application. Therefore, 57 // it should be imported in the main as follows: 58 // 59 // import _ "github.com/NpoolPlatform/chain-middleware/pkg/db/ent/runtime" 60 // 61 var ( 62 Hooks [1]ent.Hook 63 Policy ent.Policy 64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. 65 DefaultCreatedAt func() uint32 66 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. 67 DefaultUpdatedAt func() uint32 68 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. 69 UpdateDefaultUpdatedAt func() uint32 70 // DefaultDeletedAt holds the default value on creation for the "deleted_at" field. 71 DefaultDeletedAt func() uint32 72 // DefaultEntID holds the default value on creation for the "ent_id" field. 73 DefaultEntID func() uuid.UUID 74 // DefaultCoinTypeID holds the default value on creation for the "coin_type_id" field. 75 DefaultCoinTypeID func() uuid.UUID 76 // DefaultUsedFor holds the default value on creation for the "used_for" field. 77 DefaultUsedFor string 78 // DefaultPriority holds the default value on creation for the "priority" field. 79 DefaultPriority uint32 80 )