def self.primary_key_name : Symbol | Nil
#
class Paper
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- LuckyCache::Cachable
Defined in:
models/paper.crConstant Summary
-
ASSOCIATIONS =
[] of Nil
-
COLUMNS =
[{name: id, type: UUID, 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: name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: summary, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: published_year, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: published_month, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: published_day, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: recorded_species, type: Array(String), nilable: false, autogenerated: false, value: [] of String, serialized: false}, {name: used_specimens, type: Array(String), nilable: false, autogenerated: false, value: [] of String, serialized: false}, {name: links, type: Array(String), nilable: false, autogenerated: false, value: [] of String, serialized: false}] of Nil
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
UUID
Constructors
- .new(id : UUID, created_at : Time, updated_at : Time, name : String, summary : String, published_year : Int32, published_month : Int32, published_day : Int32, recorded_species : Array(String), used_specimens : Array(String), links : Array(String))
- .new(__temp_111 : 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_111 : DB::ResultSet)
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Instance Method Summary
-
#base_query_class : ::Paper::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #created_at : Time
- #created_at=(_created_at : Time::Lucky::ColumnType)
- #delete_operation_class : ::Paper::DeleteOperation.class
- #id : UUID
- #id=(_id : UUID::Lucky::ColumnType)
- #links : Array(String)
- #links=(_links : Array(String))
- #name : String
- #name=(_name : String::Lucky::ColumnType)
- #published_day : Int32
- #published_day=(_published_day : Int32::Lucky::ColumnType)
- #published_month : Int32
- #published_month=(_published_month : Int32::Lucky::ColumnType)
- #published_year : Int32
- #published_year=(_published_year : Int32::Lucky::ColumnType)
- #recorded_species : Array(String)
- #recorded_species=(_recorded_species : Array(String))
- #save_operation_class : ::Paper::SaveOperation.class
- #summary : String
- #summary=(_summary : String::Lucky::ColumnType)
- #updated_at : Time
- #updated_at=(_updated_at : Time::Lucky::ColumnType)
- #used_specimens : Array(String)
- #used_specimens=(_used_specimens : Array(String))
Class methods inherited from class BaseModel
database : Avram::Database.class
database
Constructor Detail
def self.new(id : UUID, created_at : Time, updated_at : Time, name : String, summary : String, published_year : Int32, published_month : Int32, published_day : Int32, recorded_species : Array(String), used_specimens : Array(String), links : Array(String))
#
Class Method Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation