github.com/NpoolPlatform/chain-middleware@v0.0.0-20240228100535-eb1bcf896eb9/pkg/db/ent/fiat/fiat.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package fiat 4 5 import ( 6 "entgo.io/ent" 7 "github.com/google/uuid" 8 ) 9 10 const ( 11 // Label holds the string label denoting the fiat type in the database. 12 Label = "fiat" 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 // FieldName holds the string denoting the name field in the database. 24 FieldName = "name" 25 // FieldLogo holds the string denoting the logo field in the database. 26 FieldLogo = "logo" 27 // FieldUnit holds the string denoting the unit field in the database. 28 FieldUnit = "unit" 29 // Table holds the table name of the fiat in the database. 30 Table = "fiats" 31 ) 32 33 // Columns holds all SQL columns for fiat fields. 34 var Columns = []string{ 35 FieldID, 36 FieldCreatedAt, 37 FieldUpdatedAt, 38 FieldDeletedAt, 39 FieldEntID, 40 FieldName, 41 FieldLogo, 42 FieldUnit, 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 // DefaultName holds the default value on creation for the "name" field. 75 DefaultName string 76 // DefaultLogo holds the default value on creation for the "logo" field. 77 DefaultLogo string 78 // DefaultUnit holds the default value on creation for the "unit" field. 79 DefaultUnit string 80 )