class

SpecimenLabel

Inherits Avram::PrimaryKeyMethods < DB::Mappable < DB::Serializable < LuckyCache::Cachable < BaseModel < DB::Mappable < DB::Serializable < LuckyCache::Cachable < Avram::Model < Avram::SchemaEnforcer < Avram::Polymorphic < Avram::Associations < Avram::Associations::BelongsTo < Avram::Associations::HasOne < Avram::Associations::HasMany < Reference < Object

Constants

ASSOCIATIONS = [{type: SpecimenLabelLabelSpecimen, assoc_name: label_specimens, foreign_key: :specimen_label_id, relationship_type: :has_many, through: nil, base_query_class: SpecimenLabelLabelSpecimen::BaseQuery}] 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: name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = UUID

Constructors

new(id : UUID, created_at : Time, user_id : Int32 | Nil, name : String)
new(rs : DB::ResultSet)

Class methods

column_names
columns
ensure_correct_column_mappings!
from_rs(rs : DB::ResultSet)
primary_key_name
Source
schema_enforcer_validations
table_name

Instance methods

_preloaded_label_specimens=(vals : Array(SpecimenLabelLabelSpecimen)) : Array(SpecimenLabelLabelSpecimen)
base_query_class

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

created_at
delete_operation_class
id
label_specimens
label_specimens!
label_specimens_count
label_specimens_preloaded?
label_specimens_query
name
save_operation_class
user_id

Macros

default_columns
Source

Nested types