line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::Chado::Schema::Result::Project::Project; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
6
|
|
|
6
|
|
2777
|
$Bio::Chado::Schema::Result::Project::Project::AUTHORITY = 'cpan:RBUELS'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
6
|
|
|
6
|
|
100
|
$Bio::Chado::Schema::Result::Project::Project::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
|
|
189
|
use strict; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
111
|
|
13
|
6
|
|
|
6
|
|
26
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
130
|
|
14
|
|
|
|
|
|
|
|
15
|
6
|
|
|
6
|
|
27
|
use base 'DBIx::Class::Core'; |
|
6
|
|
|
|
|
28
|
|
|
6
|
|
|
|
|
1625
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->table("project"); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
23
|
|
|
|
|
|
|
"project_id", |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
data_type => "integer", |
26
|
|
|
|
|
|
|
is_auto_increment => 1, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
sequence => "project_project_id_seq", |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
"name", |
31
|
|
|
|
|
|
|
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
32
|
|
|
|
|
|
|
"description", |
33
|
|
|
|
|
|
|
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("project_id"); |
36
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint("project_c1", ["name"]); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
40
|
|
|
|
|
|
|
"assay_projects", |
41
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Mage::AssayProject", |
42
|
|
|
|
|
|
|
{ "foreign.project_id" => "self.project_id" }, |
43
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
44
|
|
|
|
|
|
|
); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
48
|
|
|
|
|
|
|
"nd_experiment_projects", |
49
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProject", |
50
|
|
|
|
|
|
|
{ "foreign.project_id" => "self.project_id" }, |
51
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
56
|
|
|
|
|
|
|
"project_contacts", |
57
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Project::ProjectContact", |
58
|
|
|
|
|
|
|
{ "foreign.project_id" => "self.project_id" }, |
59
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
64
|
|
|
|
|
|
|
"projectprops", |
65
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Project::Projectprop", |
66
|
|
|
|
|
|
|
{ "foreign.project_id" => "self.project_id" }, |
67
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
68
|
|
|
|
|
|
|
); |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
72
|
|
|
|
|
|
|
"project_pubs", |
73
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Project::ProjectPub", |
74
|
|
|
|
|
|
|
{ "foreign.project_id" => "self.project_id" }, |
75
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
80
|
|
|
|
|
|
|
"project_relationship_subject_projects", |
81
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Project::ProjectRelationship", |
82
|
|
|
|
|
|
|
{ "foreign.subject_project_id" => "self.project_id" }, |
83
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
84
|
|
|
|
|
|
|
); |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
88
|
|
|
|
|
|
|
"project_relationship_object_projects", |
89
|
|
|
|
|
|
|
"Bio::Chado::Schema::Result::Project::ProjectRelationship", |
90
|
|
|
|
|
|
|
{ "foreign.object_project_id" => "self.project_id" }, |
91
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
92
|
|
|
|
|
|
|
); |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56 |
96
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Na5ci/BXIaIn8CMtMuOjug |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
sub create_projectprops { |
101
|
0
|
|
|
0
|
1
|
|
my ($self, $props, $opts) = @_; |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
# process opts |
104
|
|
|
|
|
|
|
$opts->{cv_name} = 'project_property' |
105
|
0
|
0
|
|
|
|
|
unless defined $opts->{cv_name}; |
106
|
0
|
|
|
|
|
|
return Bio::Chado::Schema::Util->create_properties |
107
|
|
|
|
|
|
|
( properties => $props, |
108
|
|
|
|
|
|
|
options => $opts, |
109
|
|
|
|
|
|
|
row => $self, |
110
|
|
|
|
|
|
|
prop_relation_name => 'projectprops', |
111
|
|
|
|
|
|
|
); |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration |
115
|
|
|
|
|
|
|
1; |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
__END__ |