line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Chado::Schema::Result::Mage::Biomaterial; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
6
|
|
|
6
|
|
2803
|
$Bio::Chado::Schema::Result::Mage::Biomaterial::AUTHORITY = 'cpan:RBUELS'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
6
|
|
|
6
|
|
104
|
$Bio::Chado::Schema::Result::Mage::Biomaterial::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
|
|
37
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
99
|
|
13
|
6
|
|
|
6
|
|
26
|
use warnings; |
|
6
|
|
|
|
|
16
|
|
|
6
|
|
|
|
|
171
|
|
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
29
|
use base 'DBIx::Class::Core'; |
|
6
|
|
|
|
|
36
|
|
|
6
|
|
|
|
|
1653
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->table("biomaterial"); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
23
|
|
|
|
|
|
|
"biomaterial_id", |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
data_type => "integer", |
26
|
|
|
|
|
|
|
is_auto_increment => 1, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
sequence => "biomaterial_biomaterial_id_seq", |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
"taxon_id", |
31
|
|
|
|
|
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
32
|
|
|
|
|
|
|
"biosourceprovider_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 => 1 }, |
38
|
|
|
|
|
|
|
"description", |
39
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 1 }, |
40
|
|
|
|
|
|
|
); |
41
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("biomaterial_id"); |
42
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint("biomaterial_c1", ["name"]); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
46
|
|
|
|
|
|
|
"assay_biomaterials", |
47
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::AssayBiomaterial", |
48
|
|
|
|
|
|
|
{ "foreign.biomaterial_id" => "self.biomaterial_id" }, |
49
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
54
|
|
|
|
|
|
|
"taxon", |
55
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Organism::Organism", |
56
|
|
|
|
|
|
|
{ organism_id => "taxon_id" }, |
57
|
|
|
|
|
|
|
{ |
58
|
|
|
|
|
|
|
cascade_copy => 0, |
59
|
|
|
|
|
|
|
cascade_delete => 0, |
60
|
|
|
|
|
|
|
is_deferrable => 1, |
61
|
|
|
|
|
|
|
join_type => "LEFT", |
62
|
|
|
|
|
|
|
on_delete => "CASCADE", |
63
|
|
|
|
|
|
|
on_update => "CASCADE", |
64
|
|
|
|
|
|
|
}, |
65
|
|
|
|
|
|
|
); |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
69
|
|
|
|
|
|
|
"dbxref", |
70
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::General::Dbxref", |
71
|
|
|
|
|
|
|
{ dbxref_id => "dbxref_id" }, |
72
|
|
|
|
|
|
|
{ |
73
|
|
|
|
|
|
|
cascade_copy => 0, |
74
|
|
|
|
|
|
|
cascade_delete => 0, |
75
|
|
|
|
|
|
|
is_deferrable => 1, |
76
|
|
|
|
|
|
|
join_type => "LEFT", |
77
|
|
|
|
|
|
|
on_delete => "CASCADE", |
78
|
|
|
|
|
|
|
on_update => "CASCADE", |
79
|
|
|
|
|
|
|
}, |
80
|
|
|
|
|
|
|
); |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
84
|
|
|
|
|
|
|
"biosourceprovider", |
85
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Contact::Contact", |
86
|
|
|
|
|
|
|
{ contact_id => "biosourceprovider_id" }, |
87
|
|
|
|
|
|
|
{ |
88
|
|
|
|
|
|
|
cascade_copy => 0, |
89
|
|
|
|
|
|
|
cascade_delete => 0, |
90
|
|
|
|
|
|
|
is_deferrable => 1, |
91
|
|
|
|
|
|
|
join_type => "LEFT", |
92
|
|
|
|
|
|
|
on_delete => "CASCADE", |
93
|
|
|
|
|
|
|
on_update => "CASCADE", |
94
|
|
|
|
|
|
|
}, |
95
|
|
|
|
|
|
|
); |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
99
|
|
|
|
|
|
|
"biomaterial_dbxrefs", |
100
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::BiomaterialDbxref", |
101
|
|
|
|
|
|
|
{ "foreign.biomaterial_id" => "self.biomaterial_id" }, |
102
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
103
|
|
|
|
|
|
|
); |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
107
|
|
|
|
|
|
|
"biomaterialprops", |
108
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::Biomaterialprop", |
109
|
|
|
|
|
|
|
{ "foreign.biomaterial_id" => "self.biomaterial_id" }, |
110
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
111
|
|
|
|
|
|
|
); |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
115
|
|
|
|
|
|
|
"biomaterial_relationship_subjects", |
116
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::BiomaterialRelationship", |
117
|
|
|
|
|
|
|
{ "foreign.subject_id" => "self.biomaterial_id" }, |
118
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
119
|
|
|
|
|
|
|
); |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
123
|
|
|
|
|
|
|
"biomaterial_relationship_objects", |
124
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::BiomaterialRelationship", |
125
|
|
|
|
|
|
|
{ "foreign.object_id" => "self.biomaterial_id" }, |
126
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
127
|
|
|
|
|
|
|
); |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
131
|
|
|
|
|
|
|
"biomaterial_treatments", |
132
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::BiomaterialTreatment", |
133
|
|
|
|
|
|
|
{ "foreign.biomaterial_id" => "self.biomaterial_id" }, |
134
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
135
|
|
|
|
|
|
|
); |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
139
|
|
|
|
|
|
|
"treatments", |
140
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::Treatment", |
141
|
|
|
|
|
|
|
{ "foreign.biomaterial_id" => "self.biomaterial_id" }, |
142
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
143
|
|
|
|
|
|
|
); |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36 |
147
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1vxYhyIfJGhyzpuxMzUAbw |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration |
151
|
|
|
|
|
|
|
1; |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
__END__ |