def self.primary_key_name : Symbol | Nil
        #
      
      
      class Deck
Included Modules
- Avram::PrimaryKeyMethods
 - DB::Mappable
 - LuckyCache::Cachable
 
Defined in:
models/deck.crConstant Summary
- 
        ASSOCIATIONS = 
[{type: LeitnerBox, assoc_name: leitner_box, foreign_key: :leitner_box_id, relationship_type: :belongs_to, through: nil}, {type: Card, assoc_name: cards, foreign_key: :deck_id, relationship_type: :has_many, through: nil}] of Nil - 
        COLUMNS = 
[{name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: leitner_box_id, type: LeitnerBox::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: period_unit, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: period_type, type: Deck::Period, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: level, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil - 
        PRIMARY_KEY_NAME = 
:id - 
        PRIMARY_KEY_TYPE = 
Int64 
Constructors
- .new(id : Int64, created_at : Time, updated_at : Time, leitner_box_id : Int64, period_unit : Int32, period_type : Int32 | Int64, level : Int32)
 - .new(__temp_147 : DB::ResultSet)
 
Class Method Summary
- .column_names : Array(Symbol)
 - .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
 - .ensure_correct_column_mappings!
 - .from_rs(__temp_147 : DB::ResultSet)
 - .primary_key_name : Symbol | Nil
 - .schema_enforcer_validations
 - .table_name : String
 
Instance Method Summary
- #_preloaded_cards=(vals : Array(Card)) : Array(Card)
 - 
        #base_query_class : ::Deck::BaseQuery.class
        
          
This makes it easy for plugins and extensions to use the base SaveOperation
 - #cards : Array(Card)
 - #cards! : Array(Card)
 - #cards_count : Int64
 - #cards_preloaded? : Bool
 - #cards_query
 - #cards_to_study
 - #created_at : Time
 - #created_at=(_created_at : Time::Lucky::ColumnType)
 - #delete_operation_class : ::Deck::DeleteOperation.class
 - #id : Int64
 - #id=(_id : Int64::Lucky::ColumnType)
 - #leitner_box : LeitnerBox
 - #leitner_box! : LeitnerBox
 - #leitner_box_count : Int64
 - #leitner_box_id : LeitnerBox::PrimaryKeyType
 - #leitner_box_id=(_leitner_box_id : LeitnerBox::PrimaryKeyType::Lucky::ColumnType)
 - 
        #leitner_box_preloaded? : Bool
        
          
Returns
trueif the association has been preloaded - #leitner_box_query
 - #level : Int32
 - #level=(_level : Int32::Lucky::ColumnType)
 - #period_type : Deck::Period
 - #period_type=(_period_type : Deck::Period::Lucky::ColumnType)
 - #period_unit : Int32
 - #period_unit=(_period_unit : Int32::Lucky::ColumnType)
 - #save_operation_class : ::Deck::SaveOperation.class
 - #updated_at : Time
 - #updated_at=(_updated_at : Time::Lucky::ColumnType)
 
Class methods inherited from class BaseModel
  
  
    
      database : Avram::Database.class
    database
    
  
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
    
    
    
    
  
Constructor Detail
        
        def self.new(id : Int64, created_at : Time, updated_at : Time, leitner_box_id : Int64, period_unit : Int32, period_type : Int32 | Int64, level : Int32)
        #
      
      
      Class Method Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation