def self.primary_key_name : Symbol | Nil
#
class DefaultTaxon
- DefaultTaxon
- BaseModel
- Avram::Model
- Reference
- Object
Overview
全ユーザーに共有されるデフォルト分類情報
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/default_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: false, 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)
-
.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 : ::DefaultTaxon::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #delete_operation_class : ::DefaultTaxon::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 : ::DefaultTaxon::SaveOperation.class
- #taxon_ptr_id : UUID
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