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