// Code generated by entc, DO NOT EDIT. package player import ( "time" ) const ( // Label holds the string label denoting the player type in the database. Label = "player" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAvatarURL holds the string denoting the avatar_url field in the database. FieldAvatarURL = "avatar_url" // FieldVanityURL holds the string denoting the vanity_url field in the database. FieldVanityURL = "vanity_url" // FieldVanityURLReal holds the string denoting the vanity_url_real field in the database. FieldVanityURLReal = "vanity_url_real" // FieldVac holds the string denoting the vac field in the database. FieldVac = "vac" // FieldVacDate holds the string denoting the vac_date field in the database. FieldVacDate = "vac_date" // FieldVacCount holds the string denoting the vac_count field in the database. FieldVacCount = "vac_count" // FieldSteamUpdated holds the string denoting the steam_updated field in the database. FieldSteamUpdated = "steam_updated" // FieldSharecodeUpdated holds the string denoting the sharecode_updated field in the database. FieldSharecodeUpdated = "sharecode_updated" // FieldAuthCode holds the string denoting the auth_code field in the database. FieldAuthCode = "auth_code" // FieldProfileCreated holds the string denoting the profile_created field in the database. FieldProfileCreated = "profile_created" // EdgeStats holds the string denoting the stats edge name in mutations. EdgeStats = "stats" // EdgeMatches holds the string denoting the matches edge name in mutations. EdgeMatches = "matches" // Table holds the table name of the player in the database. Table = "players" // StatsTable is the table that holds the stats relation/edge. StatsTable = "stats" // StatsInverseTable is the table name for the Stats entity. // It exists in this package in order to avoid circular dependency with the "stats" package. StatsInverseTable = "stats" // StatsColumn is the table column denoting the stats relation/edge. StatsColumn = "player_stats" // MatchesTable is the table that holds the matches relation/edge. The primary key declared below. MatchesTable = "player_matches" // MatchesInverseTable is the table name for the Match entity. // It exists in this package in order to avoid circular dependency with the "match" package. MatchesInverseTable = "matches" ) // Columns holds all SQL columns for player fields. var Columns = []string{ FieldID, FieldName, FieldAvatarURL, FieldVanityURL, FieldVanityURLReal, FieldVac, FieldVacDate, FieldVacCount, FieldSteamUpdated, FieldSharecodeUpdated, FieldAuthCode, FieldProfileCreated, } var ( // MatchesPrimaryKey and MatchesColumn2 are the table columns denoting the // primary key for the matches relation (M2M). MatchesPrimaryKey = []string{"player_id", "match_id"} ) // ValidColumn reports if the column name is valid (part of the table columns). func ValidColumn(column string) bool { for i := range Columns { if column == Columns[i] { return true } } return false } var ( // DefaultVac holds the default value on creation for the "vac" field. DefaultVac bool // DefaultSteamUpdated holds the default value on creation for the "steam_updated" field. DefaultSteamUpdated func() time.Time )