File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/Assay.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::Assay;
2             BEGIN {
3 6     6   2716 $Bio::Chado::Schema::Result::Mage::Assay::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   108 $Bio::Chado::Schema::Result::Mage::Assay::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   43 use strict;
  6         13  
  6         103  
13 6     6   25 use warnings;
  6         13  
  6         130  
14              
15 6     6   27 use base 'DBIx::Class::Core';
  6         16  
  6         1782  
16              
17              
18              
19             __PACKAGE__->table("assay");
20              
21              
22             __PACKAGE__->add_columns(
23             "assay_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "assay_assay_id_seq",
29             },
30             "arraydesign_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "protocol_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
34             "assaydate",
35             {
36             data_type => "timestamp",
37             default_value => \"current_timestamp",
38             is_nullable => 1,
39             original => { default_value => \"now()" },
40             },
41             "arrayidentifier",
42             { data_type => "text", is_nullable => 1 },
43             "arraybatchidentifier",
44             { data_type => "text", is_nullable => 1 },
45             "operator_id",
46             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47             "dbxref_id",
48             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
49             "name",
50             { data_type => "text", is_nullable => 1 },
51             "description",
52             { data_type => "text", is_nullable => 1 },
53             );
54             __PACKAGE__->set_primary_key("assay_id");
55             __PACKAGE__->add_unique_constraint("assay_c1", ["name"]);
56              
57              
58             __PACKAGE__->has_many(
59             "acquisitions",
60             "Bio::Chado::Schema::Result::Mage::Acquisition",
61             { "foreign.assay_id" => "self.assay_id" },
62             { cascade_copy => 0, cascade_delete => 0 },
63             );
64              
65              
66             __PACKAGE__->belongs_to(
67             "dbxref",
68             "Bio::Chado::Schema::Result::General::Dbxref",
69             { dbxref_id => "dbxref_id" },
70             {
71             cascade_copy => 0,
72             cascade_delete => 0,
73             is_deferrable => 1,
74             join_type => "LEFT",
75             on_delete => "CASCADE",
76             on_update => "CASCADE",
77             },
78             );
79              
80              
81             __PACKAGE__->belongs_to(
82             "operator",
83             "Bio::Chado::Schema::Result::Contact::Contact",
84             { contact_id => "operator_id" },
85             {
86             cascade_copy => 0,
87             cascade_delete => 0,
88             is_deferrable => 1,
89             on_delete => "CASCADE",
90             on_update => "CASCADE",
91             },
92             );
93              
94              
95             __PACKAGE__->belongs_to(
96             "protocol",
97             "Bio::Chado::Schema::Result::Mage::Protocol",
98             { protocol_id => "protocol_id" },
99             {
100             cascade_copy => 0,
101             cascade_delete => 0,
102             is_deferrable => 1,
103             join_type => "LEFT",
104             on_delete => "CASCADE",
105             on_update => "CASCADE",
106             },
107             );
108              
109              
110             __PACKAGE__->belongs_to(
111             "arraydesign",
112             "Bio::Chado::Schema::Result::Mage::Arraydesign",
113             { arraydesign_id => "arraydesign_id" },
114             {
115             cascade_copy => 0,
116             cascade_delete => 0,
117             is_deferrable => 1,
118             on_delete => "CASCADE",
119             on_update => "CASCADE",
120             },
121             );
122              
123              
124             __PACKAGE__->has_many(
125             "assay_biomaterials",
126             "Bio::Chado::Schema::Result::Mage::AssayBiomaterial",
127             { "foreign.assay_id" => "self.assay_id" },
128             { cascade_copy => 0, cascade_delete => 0 },
129             );
130              
131              
132             __PACKAGE__->has_many(
133             "assay_projects",
134             "Bio::Chado::Schema::Result::Mage::AssayProject",
135             { "foreign.assay_id" => "self.assay_id" },
136             { cascade_copy => 0, cascade_delete => 0 },
137             );
138              
139              
140             __PACKAGE__->has_many(
141             "assayprops",
142             "Bio::Chado::Schema::Result::Mage::Assayprop",
143             { "foreign.assay_id" => "self.assay_id" },
144             { cascade_copy => 0, cascade_delete => 0 },
145             );
146              
147              
148             __PACKAGE__->has_many(
149             "controls",
150             "Bio::Chado::Schema::Result::Mage::Control",
151             { "foreign.assay_id" => "self.assay_id" },
152             { cascade_copy => 0, cascade_delete => 0 },
153             );
154              
155              
156             __PACKAGE__->has_many(
157             "study_assays",
158             "Bio::Chado::Schema::Result::Mage::StudyAssay",
159             { "foreign.assay_id" => "self.assay_id" },
160             { cascade_copy => 0, cascade_delete => 0 },
161             );
162              
163              
164             __PACKAGE__->has_many(
165             "studyfactorvalues",
166             "Bio::Chado::Schema::Result::Mage::Studyfactorvalue",
167             { "foreign.assay_id" => "self.assay_id" },
168             { cascade_copy => 0, cascade_delete => 0 },
169             );
170              
171              
172             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
173             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FEzIz5WqOsh/Rq3XcKN71g
174              
175              
176             # You can replace this text with custom content, and it will be preserved on regeneration
177             1;
178              
179             __END__