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