File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Study.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::Mage::Study;
2             BEGIN {
3 6     6   2593 $Bio::Chado::Schema::Result::Mage::Study::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::Mage::Study::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   34 use strict;
  6         14  
  6         99  
13 6     6   27 use warnings;
  6         12  
  6         130  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         13  
  6         1217  
16              
17              
18              
19             __PACKAGE__->table("study");
20              
21              
22             __PACKAGE__->add_columns(
23             "study_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "study_study_id_seq",
29             },
30             "contact_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "pub_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
34             "dbxref_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "name",
37             { data_type => "text", is_nullable => 0 },
38             "description",
39             { data_type => "text", is_nullable => 1 },
40             );
41             __PACKAGE__->set_primary_key("study_id");
42             __PACKAGE__->add_unique_constraint("study_c1", ["name"]);
43              
44              
45             __PACKAGE__->belongs_to(
46             "pub",
47             "Bio::Chado::Schema::Result::Pub::Pub",
48             { pub_id => "pub_id" },
49             {
50             cascade_copy => 0,
51             cascade_delete => 0,
52             is_deferrable => 1,
53             join_type => "LEFT",
54             on_delete => "CASCADE",
55             on_update => "CASCADE",
56             },
57             );
58              
59              
60             __PACKAGE__->belongs_to(
61             "contact",
62             "Bio::Chado::Schema::Result::Contact::Contact",
63             { contact_id => "contact_id" },
64             {
65             cascade_copy => 0,
66             cascade_delete => 0,
67             is_deferrable => 1,
68             on_delete => "CASCADE",
69             on_update => "CASCADE",
70             },
71             );
72              
73              
74             __PACKAGE__->belongs_to(
75             "dbxref",
76             "Bio::Chado::Schema::Result::General::Dbxref",
77             { dbxref_id => "dbxref_id" },
78             {
79             cascade_copy => 0,
80             cascade_delete => 0,
81             is_deferrable => 1,
82             join_type => "LEFT",
83             on_delete => "CASCADE",
84             on_update => "CASCADE",
85             },
86             );
87              
88              
89             __PACKAGE__->has_many(
90             "study_assays",
91             "Bio::Chado::Schema::Result::Mage::StudyAssay",
92             { "foreign.study_id" => "self.study_id" },
93             { cascade_copy => 0, cascade_delete => 0 },
94             );
95              
96              
97             __PACKAGE__->has_many(
98             "studydesigns",
99             "Bio::Chado::Schema::Result::Mage::Studydesign",
100             { "foreign.study_id" => "self.study_id" },
101             { cascade_copy => 0, cascade_delete => 0 },
102             );
103              
104              
105             __PACKAGE__->has_many(
106             "studyprops",
107             "Bio::Chado::Schema::Result::Mage::Studyprop",
108             { "foreign.study_id" => "self.study_id" },
109             { cascade_copy => 0, cascade_delete => 0 },
110             );
111              
112              
113             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
114             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RMMCAvWl3IS8XLyAwR1ADg
115              
116              
117             # You can replace this text with custom content, and it will be preserved on regeneration
118             1;
119              
120             __END__