primary_key_name
Merchant
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 = [{type: User, assoc_name: user, foreign_key: :user_id,
relationship_type: :belongs_to,
through: nil}] 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: name, type: String, nilable: false, autogenerated: false, value: nil}, {name: description, type: String, nilable: false, autogenerated: false, value: nil}, {name: user_id, type: User::PrimaryKeyType, 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, name : String, description : String, user_id : UUID)
new(__temp_119 : DB::ResultSet)
Class methods
column_names
columns
ensure_correct_column_mappings!
from_rs(__temp_119 : DB::ResultSet)
schema_enforcer_validations
table_name
Instance methods
base_query_class
This makes it easy for plugins and extensions to use the base SaveOperation
created_at
created_at=(_created_at : Time::Lucky::ColumnType)
delete_operation_class
description
description=(_description : String::Lucky::ColumnType)
id
id=(_id : UUID::Lucky::ColumnType)
name
name=(_name : String::Lucky::ColumnType)
save_operation_class
updated_at
updated_at=(_updated_at : Time::Lucky::ColumnType)
user
user!
user_count
user_id
user_id=(_user_id : User::PrimaryKeyType::Lucky::ColumnType)
user_query