def self.primary_key_name : Symbol | Nil
#
class CollectPoint
- CollectPoint
- BaseModel
- Avram::Model
- Reference
- Object
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/collect_point.crConstant Summary
-
ASSOCIATIONS =
[{type: CollectPointsTour, assoc_name: collect_points_tour, foreign_key: :collect_point_id, relationship_type: :has_many, through: nil, base_query_class: CollectPointsTour::BaseQuery}, {type: Tour, assoc_name: tours, foreign_key: :collect_point_id, relationship_type: :has_many, through: [:collect_points_tour, :tours], base_query_class: Tour::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: contient, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: island_group, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: island, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: country, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: state_provice, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: county, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: municipality, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: verbatim_locality, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: japanese_place_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: japanese_place_name_detail, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: coordinate_precision, type: Float64, nilable: false, autogenerated: false, value: 0.0, serialized: false, allow_blank: false}, {name: location, type: PostGIS::Point2D, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: minimum_elevation, type: Float64, nilable: false, autogenerated: false, value: 0.0, serialized: false, allow_blank: false}, {name: maximum_elevation, type: Float64, nilable: false, autogenerated: false, value: 0.0, serialized: false, allow_blank: false}, {name: minimum_depth, type: Float64, nilable: false, autogenerated: false, value: 0.0, serialized: false, allow_blank: false}, {name: maximum_depth, type: Float64, nilable: false, autogenerated: false, value: 0.0, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: image1, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image2, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image3, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image4, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image5, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, 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, contient : String, island_group : String, island : String, country : String, state_provice : String, county : String, municipality : String, verbatim_locality : String, japanese_place_name : String, japanese_place_name_detail : String, coordinate_precision : Float64 | PG::Numeric, location : PostGIS::Point2D, minimum_elevation : Float64 | PG::Numeric, maximum_elevation : Float64 | PG::Numeric, minimum_depth : Float64 | PG::Numeric, maximum_depth : Float64 | PG::Numeric, note : String, image1 : Nil | String, image2 : Nil | String, image3 : Nil | String, image4 : Nil | String, image5 : Nil | String, user_id : Int32 | Nil)
- .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
- #_preloaded_collect_points_tour=(vals : Array(CollectPointsTour)) : Array(CollectPointsTour)
- #_preloaded_tours=(vals : Array(Tour)) : Array(Tour)
-
#base_query_class : ::CollectPoint::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #collect_points_tour : Array(CollectPointsTour)
- #collect_points_tour! : Array(CollectPointsTour)
- #collect_points_tour_count : Int64
- #collect_points_tour_preloaded? : Bool
- #collect_points_tour_query
- #contient : String
- #coordinate_precision : Float64
- #country : String
- #county : String
- #created_at : Time
- #delete_operation_class : ::CollectPoint::DeleteOperation.class
- #id : UUID
- #image1 : String | Nil
- #image2 : String | Nil
- #image3 : String | Nil
- #image4 : String | Nil
- #image5 : String | Nil
- #island : String
- #island_group : String
- #japanese_place_name : String
- #japanese_place_name_detail : String
- #location : PostGIS::Point2D
- #maximum_depth : Float64
- #maximum_elevation : Float64
- #minimum_depth : Float64
- #minimum_elevation : Float64
- #municipality : String
- #note : String
- #save_operation_class : ::CollectPoint::SaveOperation.class
- #state_provice : String
- #tours : Array(Tour)
- #tours! : Array(Tour)
- #tours_count : Int64
- #tours_preloaded? : Bool
- #tours_query
- #user_id : Int32 | Nil
- #verbatim_locality : String
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
def self.new(id : UUID, created_at : Time, contient : String, island_group : String, island : String, country : String, state_provice : String, county : String, municipality : String, verbatim_locality : String, japanese_place_name : String, japanese_place_name_detail : String, coordinate_precision : Float64 | PG::Numeric, location : PostGIS::Point2D, minimum_elevation : Float64 | PG::Numeric, maximum_elevation : Float64 | PG::Numeric, minimum_depth : Float64 | PG::Numeric, maximum_depth : Float64 | PG::Numeric, note : String, image1 : Nil | String, image2 : Nil | String, image3 : Nil | String, image4 : Nil | String, image5 : Nil | String, user_id : Int32 | Nil)
#
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation