1 package SGN
::Schema
::Map
;
6 use base
'DBIx::Class';
8 __PACKAGE__
->load_components("Core");
9 __PACKAGE__
->table("map");
10 __PACKAGE__
->add_columns(
13 data_type
=> "integer",
14 default_value
=> "nextval('map_map_id_seq'::regclass)",
15 is_auto_increment
=> 1,
22 default_value
=> undef,
29 default_value
=> undef,
36 default_value
=> undef,
43 default_value
=> undef,
49 data_type
=> "integer",
50 default_value
=> undef,
57 data_type
=> "integer",
58 default_value
=> undef,
66 default_value
=> "'cM'::text",
72 data_type
=> "integer",
73 default_value
=> undef,
79 __PACKAGE__
->set_primary_key("map_id");
80 __PACKAGE__
->belongs_to(
82 "SGN::Schema::Accession",
83 { accession_id
=> "ancestor" },
84 { join_type
=> "LEFT" },
86 __PACKAGE__
->belongs_to(
88 "SGN::Schema::Accession",
89 { accession_id
=> "parent_2" },
90 { join_type
=> "LEFT" },
92 __PACKAGE__
->belongs_to(
94 "SGN::Schema::Accession",
95 { accession_id
=> "parent_1" },
96 { join_type
=> "LEFT" },
98 __PACKAGE__
->has_many(
100 "SGN::Schema::MapVersion",
101 { "foreign.map_id" => "self.map_id" },
103 __PACKAGE__
->has_many(
105 "SGN::Schema::PcrExperiment",
106 { "foreign.map_id" => "self.map_id" },
110 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
111 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VAbpsHO3jE5BVJ77K8dd5Q
114 # You can replace this text with custom content, and it will be preserved on regeneration