// Code generated by ent, DO NOT EDIT. package models import ( "juwan-backend/app/shop/rpc/internal/models/schema" "juwan-backend/app/shop/rpc/internal/models/shopinvitations" "juwan-backend/app/shop/rpc/internal/models/shopplayers" "juwan-backend/app/shop/rpc/internal/models/shops" "time" "github.com/shopspring/decimal" ) // The init function reads all schema descriptors with runtime code // (default values, validators, hooks and policies) and stitches it // to their package variables. func init() { shopinvitationsFields := schema.ShopInvitations{}.Fields() _ = shopinvitationsFields // shopinvitationsDescStatus is the schema descriptor for status field. shopinvitationsDescStatus := shopinvitationsFields[3].Descriptor() // shopinvitations.DefaultStatus holds the default value on creation for the status field. shopinvitations.DefaultStatus = shopinvitationsDescStatus.Default.(string) // shopinvitations.StatusValidator is a validator for the "status" field. It is called by the builders before save. shopinvitations.StatusValidator = shopinvitationsDescStatus.Validators[0].(func(string) error) // shopinvitationsDescCreatedAt is the schema descriptor for created_at field. shopinvitationsDescCreatedAt := shopinvitationsFields[5].Descriptor() // shopinvitations.DefaultCreatedAt holds the default value on creation for the created_at field. shopinvitations.DefaultCreatedAt = shopinvitationsDescCreatedAt.Default.(func() time.Time) shopplayersFields := schema.ShopPlayers{}.Fields() _ = shopplayersFields // shopplayersDescIsPrimary is the schema descriptor for is_primary field. shopplayersDescIsPrimary := shopplayersFields[2].Descriptor() // shopplayers.DefaultIsPrimary holds the default value on creation for the is_primary field. shopplayers.DefaultIsPrimary = shopplayersDescIsPrimary.Default.(bool) // shopplayersDescJoinedAt is the schema descriptor for joined_at field. shopplayersDescJoinedAt := shopplayersFields[3].Descriptor() // shopplayers.DefaultJoinedAt holds the default value on creation for the joined_at field. shopplayers.DefaultJoinedAt = shopplayersDescJoinedAt.Default.(func() time.Time) shopsFields := schema.Shops{}.Fields() _ = shopsFields // shopsDescName is the schema descriptor for name field. shopsDescName := shopsFields[2].Descriptor() // shops.NameValidator is a validator for the "name" field. It is called by the builders before save. shops.NameValidator = shopsDescName.Validators[0].(func(string) error) // shopsDescRating is the schema descriptor for rating field. shopsDescRating := shopsFields[5].Descriptor() // shops.DefaultRating holds the default value on creation for the rating field. shops.DefaultRating = shopsDescRating.Default.(decimal.Decimal) // shopsDescTotalOrders is the schema descriptor for total_orders field. shopsDescTotalOrders := shopsFields[6].Descriptor() // shops.DefaultTotalOrders holds the default value on creation for the total_orders field. shops.DefaultTotalOrders = shopsDescTotalOrders.Default.(int) // shopsDescPlayerCount is the schema descriptor for player_count field. shopsDescPlayerCount := shopsFields[7].Descriptor() // shops.DefaultPlayerCount holds the default value on creation for the player_count field. shops.DefaultPlayerCount = shopsDescPlayerCount.Default.(int) // shopsDescCommissionType is the schema descriptor for commission_type field. shopsDescCommissionType := shopsFields[8].Descriptor() // shops.DefaultCommissionType holds the default value on creation for the commission_type field. shops.DefaultCommissionType = shopsDescCommissionType.Default.(string) // shops.CommissionTypeValidator is a validator for the "commission_type" field. It is called by the builders before save. shops.CommissionTypeValidator = shopsDescCommissionType.Validators[0].(func(string) error) // shopsDescAllowMultiShop is the schema descriptor for allow_multi_shop field. shopsDescAllowMultiShop := shopsFields[10].Descriptor() // shops.DefaultAllowMultiShop holds the default value on creation for the allow_multi_shop field. shops.DefaultAllowMultiShop = shopsDescAllowMultiShop.Default.(bool) // shopsDescAllowIndependentOrders is the schema descriptor for allow_independent_orders field. shopsDescAllowIndependentOrders := shopsFields[11].Descriptor() // shops.DefaultAllowIndependentOrders holds the default value on creation for the allow_independent_orders field. shops.DefaultAllowIndependentOrders = shopsDescAllowIndependentOrders.Default.(bool) // shopsDescDispatchMode is the schema descriptor for dispatch_mode field. shopsDescDispatchMode := shopsFields[12].Descriptor() // shops.DefaultDispatchMode holds the default value on creation for the dispatch_mode field. shops.DefaultDispatchMode = shopsDescDispatchMode.Default.(string) // shops.DispatchModeValidator is a validator for the "dispatch_mode" field. It is called by the builders before save. shops.DispatchModeValidator = shopsDescDispatchMode.Validators[0].(func(string) error) // shopsDescCreatedAt is the schema descriptor for created_at field. shopsDescCreatedAt := shopsFields[15].Descriptor() // shops.DefaultCreatedAt holds the default value on creation for the created_at field. shops.DefaultCreatedAt = shopsDescCreatedAt.Default.(func() time.Time) // shopsDescUpdatedAt is the schema descriptor for updated_at field. shopsDescUpdatedAt := shopsFields[16].Descriptor() // shops.DefaultUpdatedAt holds the default value on creation for the updated_at field. shops.DefaultUpdatedAt = shopsDescUpdatedAt.Default.(func() time.Time) // shops.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. shops.UpdateDefaultUpdatedAt = shopsDescUpdatedAt.UpdateDefault.(func() time.Time) }