File Coverage

blib/lib/Bio/Chado/Schema/Result/NaturalDiversity/NdExperimentPhenotype.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::NaturalDiversity::NdExperimentPhenotype;
2             BEGIN {
3 6     6   2799 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPhenotype::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   103 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPhenotype::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   49 use strict;
  6         13  
  6         118  
13 6     6   26 use warnings;
  6         19  
  6         130  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         16  
  6         931  
16              
17              
18              
19             __PACKAGE__->table("nd_experiment_phenotype");
20              
21              
22             __PACKAGE__->add_columns(
23             "nd_experiment_phenotype_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "nd_experiment_phenotype_nd_experiment_phenotype_id_seq",
29             },
30             "nd_experiment_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "phenotype_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             );
35             __PACKAGE__->set_primary_key("nd_experiment_phenotype_id");
36             __PACKAGE__->add_unique_constraint(
37             "nd_experiment_phenotype_c1",
38             ["nd_experiment_id", "phenotype_id"],
39             );
40              
41              
42             __PACKAGE__->belongs_to(
43             "phenotype",
44             "Bio::Chado::Schema::Result::Phenotype::Phenotype",
45             { phenotype_id => "phenotype_id" },
46             {
47             cascade_copy => 0,
48             cascade_delete => 0,
49             is_deferrable => 1,
50             on_delete => "CASCADE",
51             on_update => "CASCADE",
52             },
53             );
54              
55              
56             __PACKAGE__->belongs_to(
57             "nd_experiment",
58             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment",
59             { nd_experiment_id => "nd_experiment_id" },
60             {
61             cascade_copy => 0,
62             cascade_delete => 0,
63             is_deferrable => 1,
64             on_delete => "CASCADE",
65             on_update => "CASCADE",
66             },
67             );
68              
69              
70             # Created by DBIx::Class::Schema::Loader v0.07002 @ 2010-10-28 03:52:24
71             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SFx6wlA51/yT5QJEKkuHjw
72              
73              
74             # You can replace this text with custom content, and it will be preserved on regeneration
75             1;
76              
77             __END__