class

Pessoa

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

Constants

ASSOCIATIONS = [] of Nil
COLUMNS = [{name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: apelido, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: nome, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: nascimento, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: stack, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = UUID

Constructors

new(id : UUID, apelido : String, nome : String, nascimento : Time | Nil, stack : Nil | String)
new(__temp_122 : DB::ResultSet)

Class methods

column_names
columns
ensure_correct_column_mappings!
from_params(params)
Source
from_rs(__temp_122 : DB::ResultSet)
primary_key_name
schema_enforcer_validations
table_name

Instance methods

apelido
apelido=(_apelido : String::Lucky::ColumnType)
base_query_class

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

delete_operation_class
id
id=(_id : UUID::Lucky::ColumnType)
nascimento
nascimento=(_nascimento : Time::Lucky::ColumnType | Nil)
nascimento_as_string
Source
nascimento_as_string=(value : String | Nil)
Source
nome
nome=(_nome : String::Lucky::ColumnType)
save_operation_class
stack
stack=(_stack : String::Lucky::ColumnType | Nil)
stack_as_array
Source
to_tuple
Source

Nested types