primary_key_name
Game
Inherits DB::Mappable < Avram::PrimaryKeyMethods < LuckyCache::Cachable < BaseModel < LuckyCache::Cachable < Avram::Model < Avram::SchemaEnforcer < Avram::Polymorphic < Avram::Associations < Avram::Associations::BelongsTo < Avram::Associations::HasOne < Avram::Associations::HasMany < Reference < Object
Constants
ASSOCIATIONS = [{type: Draw, assoc_name: draw, foreign_key: :draw_id,
relationship_type: :belongs_to,
through: nil}] of Nil
COLUMNS = [{name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: sheet, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: team_a_score, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: team_b_score, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: team_a_name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: team_b_name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: team_a_club_name, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: team_b_club_name, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: team_a_hammer, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: current_end, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: final, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: draw_id, type: Draw::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int64
Constructors
new(id : Int64, created_at : Time, updated_at : Time, sheet : Int16, team_a_score : Int16, team_b_score : Int16, team_a_name : String, team_b_name : String, team_a_club_name : Nil | String, team_b_club_name : Nil | String, team_a_hammer : Bool, current_end : Int16, final : Bool, draw_id : Int64)
new(__temp_202 : DB::ResultSet)
Class methods
column_names
columns
ensure_correct_column_mappings!
from_rs(__temp_202 : DB::ResultSet)
schema_enforcer_validations
table_name
Instance methods
base_query_class
This makes it easy for plugins and extensions to use the base SaveOperation
bonspiel!(*args, **options)
Sourcebonspiel!(*args, **options, &)
Sourcecreated_at
created_at=(_created_at : Time::Lucky::ColumnType)
current_end
current_end=(_current_end : Int16::Lucky::ColumnType)
delete_operation_class
draw
draw!
draw_count
draw_id
draw_id=(_draw_id : Draw::PrimaryKeyType::Lucky::ColumnType)
draw_query
final
final=(_final : Bool::Lucky::ColumnType)
final?
id
id=(_id : Int64::Lucky::ColumnType)
presenting?
Sourcesave_operation_class
sheet
sheet=(_sheet : Int16::Lucky::ColumnType)
team_a_club_name
team_a_club_name=(_team_a_club_name : String::Lucky::ColumnType | Nil)
team_a_hammer
team_a_hammer=(_team_a_hammer : Bool::Lucky::ColumnType)
team_a_hammer?
team_a_name
team_a_name=(_team_a_name : String::Lucky::ColumnType)
team_a_score
team_a_score=(_team_a_score : Int16::Lucky::ColumnType)
team_b_club_name
team_b_club_name=(_team_b_club_name : String::Lucky::ColumnType | Nil)
team_b_hammer?
Sourceteam_b_name
team_b_name=(_team_b_name : String::Lucky::ColumnType)
team_b_score
team_b_score=(_team_b_score : Int16::Lucky::ColumnType)
updated_at
updated_at=(_updated_at : Time::Lucky::ColumnType)