class DefaultTaxon

Overview

全ユーザーに共有されるデフォルト分類情報

Included Modules

Defined in:

models/default_taxon.cr

Constant 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

Class Method Summary

Macro Summary

Instance Method Summary

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(taxon_ptr_id : UUID, is_private : Bool) #

def self.new(rs : DB::ResultSet) #

全ユーザーに共有されるデフォルト分類情報


Class Method Detail

def self.column_names : Array(Symbol) #

def self.columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String)) #

def self.ensure_correct_column_mappings! #

def self.from_rs(rs : DB::ResultSet) #

全ユーザーに共有されるデフォルト分類情報


def self.primary_key_name : Symbol | Nil #

[View source]
def self.schema_enforcer_validations #

def self.table_name : String #

Macro Detail

macro default_columns #

[View source]

Instance Method Detail

def base_query_class : ::DefaultTaxon::BaseQuery.class #

This makes it easy for plugins and extensions to use the base SaveOperation


def delete_operation_class : ::DefaultTaxon::DeleteOperation.class #

def id #

If not using default 'id' primary key Then point 'id' to the primary key


[View source]
def is_private : Bool #

def is_private? : Bool #

def save_operation_class : ::DefaultTaxon::SaveOperation.class #

def taxon_ptr_id : UUID #