def self.primary_key_name : Symbol | Nil
#
class CollectPointsTour
- CollectPointsTour
- BaseModel
- Avram::Model
- Reference
- Object
Overview
採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/collect_points_tour.crConstant Summary
-
ASSOCIATIONS =
[{type: CollectPoint, assoc_name: collect_point, foreign_key: :collectpoint_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}, {type: Tour, assoc_name: tour, foreign_key: :tour_id, relationship_type: :belongs_to, through: nil, base_query_class: nil}] of Nil
-
採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル
-
COLUMNS =
[{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: collectpoint_id, type: CollectPoint::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: tour_id, type: Tour::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル
-
PRIMARY_KEY_NAME =
:id
-
PRIMARY_KEY_TYPE =
Int32
Constructors
- .new(id : Int32, collectpoint_id : UUID, tour_id : UUID)
-
.new(rs : DB::ResultSet)
採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
-
.from_rs(rs : DB::ResultSet)
採集地点と採集行の多対多アソシエーションを作るための中間テーブル用モデル
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Macro Summary
Instance Method Summary
-
#base_query_class : ::CollectPointsTour::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #collect_point : CollectPoint
- #collect_point! : CollectPoint
- #collect_point_count : Int64
-
#collect_point_preloaded? : Bool
Returns
true
if the association has been preloaded - #collect_point_query
- #collectpoint_id : CollectPoint::PrimaryKeyType
- #delete_operation_class : ::CollectPointsTour::DeleteOperation.class
- #id : Int32
- #save_operation_class : ::CollectPointsTour::SaveOperation.class
- #tour : Tour
- #tour! : Tour
- #tour_count : Int64
- #tour_id : Tour::PrimaryKeyType
-
#tour_preloaded? : Bool
Returns
true
if the association has been preloaded - #tour_query
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
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation