1 package SGN
::Schema
::LinkageGroup
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base
'DBIx::Class::Core';
14 SGN::Schema::LinkageGroup
18 __PACKAGE__
->table("linkage_group");
27 sequence: 'linkage_group_lg_id_seq'
45 =head2 north_location_id
51 =head2 south_location_id
59 __PACKAGE__
->add_columns(
62 data_type
=> "integer",
63 is_auto_increment
=> 1,
65 sequence
=> "linkage_group_lg_id_seq",
68 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
70 { data_type
=> "integer", is_nullable
=> 0 },
72 { data_type
=> "text", is_nullable
=> 1 },
74 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
76 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
78 __PACKAGE__
->set_primary_key("lg_id");
79 __PACKAGE__
->add_unique_constraint(
80 "linkage_group_map_version_id_key",
81 ["map_version_id", "lg_order"],
83 __PACKAGE__
->add_unique_constraint(
84 "linkage_group_map_version_id_key1",
85 ["map_version_id", "lg_name"],
94 Related object: L<SGN::Schema::MarkerLocation>
98 __PACKAGE__
->belongs_to(
100 "SGN::Schema::MarkerLocation",
101 { location_id
=> "north_location_id" },
105 on_delete
=> "CASCADE",
106 on_update
=> "CASCADE",
114 Related object: L<SGN::Schema::MapVersion>
118 __PACKAGE__
->belongs_to(
120 "SGN::Schema::MapVersion",
121 { map_version_id
=> "map_version_id" },
125 on_delete
=> "CASCADE",
126 on_update
=> "CASCADE",
130 =head2 south_location
134 Related object: L<SGN::Schema::MarkerLocation>
138 __PACKAGE__
->belongs_to(
140 "SGN::Schema::MarkerLocation",
141 { location_id
=> "south_location_id" },
145 on_delete
=> "CASCADE",
146 on_update
=> "CASCADE",
150 =head2 marker_locations
154 Related object: L<SGN::Schema::MarkerLocation>
158 __PACKAGE__
->has_many(
160 "SGN::Schema::MarkerLocation",
161 { "foreign.lg_id" => "self.lg_id" },
162 { cascade_copy
=> 0, cascade_delete
=> 0 },
166 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
167 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AeXr/gcdemGIXiaObXaycw
170 # You can replace this text with custom content, and it will be preserved on regeneration