class

Post

Inherits DB::Mappable < Avram::PrimaryKeyMethods < BaseModel < 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}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil}, {name: body, type: String, nilable: false, autogenerated: false, value: nil}] of Nil
PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = UUID

Constructors

new(id : UUID, created_at : Time, updated_at : Time, body : String)
new(__temp_134 : DB::ResultSet)

Class methods

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

Instance methods

base_query_class

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

body
body=(_body : String::Lucky::ColumnType)
created_at
created_at=(_created_at : Time::Lucky::ColumnType)
delete_operation_class
id
id=(_id : UUID::Lucky::ColumnType)
save_operation_class
updated_at
updated_at=(_updated_at : Time::Lucky::ColumnType)

Nested types