~ubuntu-branches/ubuntu/trusty/libbio-chado-schema-perl/trusty

« back to all changes in this revision

Viewing changes to lib/Bio/Chado/Schema/Result/NaturalDiversity/NdExperimentStockprop.pm

  • Committer: Package Import Robot
  • Author(s): Olivier Sallou
  • Date: 2011-11-02 15:20:02 UTC
  • Revision ID: package-import@ubuntu.com-20111102152002-5vye1vtqsyr5kkhl
Tags: upstream-0.09040
ImportĀ upstreamĀ versionĀ 0.09040

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockprop;
 
2
BEGIN {
 
3
  $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockprop::AUTHORITY = 'cpan:RBUELS';
 
4
}
 
5
BEGIN {
 
6
  $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockprop::VERSION = '0.09040';
 
7
}
 
8
 
 
9
# Created by DBIx::Class::Schema::Loader
 
10
# DO NOT MODIFY THE FIRST PART OF THIS FILE
 
11
 
 
12
use strict;
 
13
use warnings;
 
14
 
 
15
use base 'DBIx::Class::Core';
 
16
 
 
17
 
 
18
=head1 NAME
 
19
 
 
20
Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStockprop
 
21
 
 
22
=head1 DESCRIPTION
 
23
 
 
24
Property/value associations for experiment_stocks. This table can store the properties such as treatment
 
25
 
 
26
=cut
 
27
 
 
28
__PACKAGE__->table("nd_experiment_stockprop");
 
29
 
 
30
=head1 ACCESSORS
 
31
 
 
32
=head2 nd_experiment_stockprop_id
 
33
 
 
34
  data_type: 'integer'
 
35
  is_auto_increment: 1
 
36
  is_nullable: 0
 
37
  sequence: 'nd_experiment_stockprop_nd_experiment_stockprop_id_seq'
 
38
 
 
39
=head2 nd_experiment_stock_id
 
40
 
 
41
  data_type: 'integer'
 
42
  is_foreign_key: 1
 
43
  is_nullable: 0
 
44
 
 
45
The experiment_stock to which the property applies.
 
46
 
 
47
=head2 type_id
 
48
 
 
49
  data_type: 'integer'
 
50
  is_foreign_key: 1
 
51
  is_nullable: 0
 
52
 
 
53
The name of the property as a reference to a controlled vocabulary term.
 
54
 
 
55
=head2 value
 
56
 
 
57
  data_type: 'text'
 
58
  is_nullable: 1
 
59
 
 
60
The value of the property.
 
61
 
 
62
=head2 rank
 
63
 
 
64
  data_type: 'integer'
 
65
  default_value: 0
 
66
  is_nullable: 0
 
67
 
 
68
The rank of the property value, if the property has an array of values.
 
69
 
 
70
=cut
 
71
 
 
72
__PACKAGE__->add_columns(
 
73
  "nd_experiment_stockprop_id",
 
74
  {
 
75
    data_type         => "integer",
 
76
    is_auto_increment => 1,
 
77
    is_nullable       => 0,
 
78
    sequence          => "nd_experiment_stockprop_nd_experiment_stockprop_id_seq",
 
79
  },
 
80
  "nd_experiment_stock_id",
 
81
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 
82
  "type_id",
 
83
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 
84
  "value",
 
85
  { data_type => "text", is_nullable => 1 },
 
86
  "rank",
 
87
  { data_type => "integer", default_value => 0, is_nullable => 0 },
 
88
);
 
89
__PACKAGE__->set_primary_key("nd_experiment_stockprop_id");
 
90
__PACKAGE__->add_unique_constraint(
 
91
  "nd_experiment_stockprop_c1",
 
92
  ["nd_experiment_stock_id", "type_id", "rank"],
 
93
);
 
94
 
 
95
=head1 RELATIONS
 
96
 
 
97
=head2 type
 
98
 
 
99
Type: belongs_to
 
100
 
 
101
Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
 
102
 
 
103
=cut
 
104
 
 
105
__PACKAGE__->belongs_to(
 
106
  "type",
 
107
  "Bio::Chado::Schema::Result::Cv::Cvterm",
 
108
  { cvterm_id => "type_id" },
 
109
  {
 
110
    cascade_copy   => 0,
 
111
    cascade_delete => 0,
 
112
    is_deferrable  => 1,
 
113
    on_delete      => "CASCADE",
 
114
    on_update      => "CASCADE",
 
115
  },
 
116
);
 
117
 
 
118
=head2 nd_experiment_stock
 
119
 
 
120
Type: belongs_to
 
121
 
 
122
Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStock>
 
123
 
 
124
=cut
 
125
 
 
126
__PACKAGE__->belongs_to(
 
127
  "nd_experiment_stock",
 
128
  "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStock",
 
129
  { nd_experiment_stock_id => "nd_experiment_stock_id" },
 
130
  {
 
131
    cascade_copy   => 0,
 
132
    cascade_delete => 0,
 
133
    is_deferrable  => 1,
 
134
    on_delete      => "CASCADE",
 
135
    on_update      => "CASCADE",
 
136
  },
 
137
);
 
138
 
 
139
 
 
140
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-09-22 08:45:24
 
141
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eN9VG/OU31AabGa+MWvv5w
 
142
 
 
143
 
 
144
# You can replace this text with custom content, and it will be preserved on regeneration
 
145
1;