def self.primary_key_name : Symbol | Nil
#
class CollectionSetting
- CollectionSetting
- BaseModel
- Avram::Model
- Reference
- Object
Overview
コレクション設定モデル
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/collection_setting.crConstant Summary
-
ASSOCIATIONS =
[] of Nil
-
コレクション設定モデル
-
COLUMNS =
[{name: id, type: UUID, 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: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: collection_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: institution_code, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: latest_collection_code, type: Int32, nilable: false, autogenerated: false, value: 0, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}] of Nil
-
コレクション設定モデル
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
UUID
Constructors
- .new(id : UUID, created_at : Time, user_id : Int32 | Nil, collection_name : String, institution_code : String, latest_collection_code : Int32, note : String)
-
.new(rs : DB::ResultSet)
コレクション設定モデル
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
-
.from_rs(rs : DB::ResultSet)
コレクション設定モデル
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Macro Summary
Instance Method Summary
-
#base_query_class : ::CollectionSetting::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #collection_name : String
- #created_at : Time
- #delete_operation_class : ::CollectionSetting::DeleteOperation.class
- #id : UUID
- #institution_code : String
- #latest_collection_code : Int32
- #note : String
- #save_operation_class : ::CollectionSetting::SaveOperation.class
- #user_id : Int32 | Nil
Constructor methods inherited from class BaseModel
new(rs : DB::ResultSet)
new
Class methods inherited from class BaseModel
database : Avram::Database.class
database,
from_rs(rs : DB::ResultSet)
from_rs
Macros inherited from class BaseModel
default_columns
default_columns
Constructor Detail
def self.new(id : UUID, created_at : Time, user_id : Int32 | Nil, collection_name : String, institution_code : String, latest_collection_code : Int32, note : String)
#
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation