def self.primary_key_name : Symbol | Nil
#
class CustomTaxon
- CustomTaxon
- BaseModel
- Avram::Model
- Reference
- Object
Overview
ユーザー定義のカスタム分類情報モデル
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/custom_taxon.crConstant Summary
-
ASSOCIATIONS =
[] of Nil
-
ユーザー定義のカスタム分類情報モデル
-
COLUMNS =
[{name: taxon_ptr_id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: is_private, type: Bool, nilable: false, autogenerated: false, value: true, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
ユーザー定義のカスタム分類情報モデル
-
PRIMARY_KEY_NAME =
:taxon_ptr_id
-
PRIMARY_KEY_TYPE =
UUID
Constructors
- .new(taxon_ptr_id : UUID, is_private : Bool, user_id : Int32 | Nil)
-
.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 : ::CustomTaxon::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #delete_operation_class : ::CustomTaxon::DeleteOperation.class
-
#id
If not using default 'id' primary key Then point 'id' to the primary key
- #is_private : Bool
- #is_private? : Bool
- #save_operation_class : ::CustomTaxon::SaveOperation.class
- #taxon_ptr_id : UUID
- #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
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation