File Coverage

blib/lib/Bio/Chado/Schema/Result/Mage/AssayBiomaterial.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::AssayBiomaterial;
2             BEGIN {
3 6     6   2827 $Bio::Chado::Schema::Result::Mage::AssayBiomaterial::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   114 $Bio::Chado::Schema::Result::Mage::AssayBiomaterial::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   39 use strict;
  6         16  
  6         108  
13 6     6   28 use warnings;
  6         17  
  6         135  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         14  
  6         1136  
16              
17              
18              
19             __PACKAGE__->table("assay_biomaterial");
20              
21              
22             __PACKAGE__->add_columns(
23             "assay_biomaterial_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "assay_biomaterial_assay_biomaterial_id_seq",
29             },
30             "assay_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "biomaterial_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "channel_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "rank",
37             { data_type => "integer", default_value => 0, is_nullable => 0 },
38             );
39             __PACKAGE__->set_primary_key("assay_biomaterial_id");
40             __PACKAGE__->add_unique_constraint(
41             "assay_biomaterial_c1",
42             ["assay_id", "biomaterial_id", "channel_id", "rank"],
43             );
44              
45              
46             __PACKAGE__->belongs_to(
47             "channel",
48             "Bio::Chado::Schema::Result::Mage::Channel",
49             { channel_id => "channel_id" },
50             {
51             cascade_copy => 0,
52             cascade_delete => 0,
53             is_deferrable => 1,
54             join_type => "LEFT",
55             on_delete => "CASCADE",
56             on_update => "CASCADE",
57             },
58             );
59              
60              
61             __PACKAGE__->belongs_to(
62             "biomaterial",
63             "Bio::Chado::Schema::Result::Mage::Biomaterial",
64             { biomaterial_id => "biomaterial_id" },
65             {
66             cascade_copy => 0,
67             cascade_delete => 0,
68             is_deferrable => 1,
69             on_delete => "CASCADE",
70             on_update => "CASCADE",
71             },
72             );
73              
74              
75             __PACKAGE__->belongs_to(
76             "assay",
77             "Bio::Chado::Schema::Result::Mage::Assay",
78             { assay_id => "assay_id" },
79             {
80             cascade_copy => 0,
81             cascade_delete => 0,
82             is_deferrable => 1,
83             on_delete => "CASCADE",
84             on_update => "CASCADE",
85             },
86             );
87              
88              
89             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
90             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rY31rDP5M4Pw89g/vTtXQQ
91              
92              
93             # You can replace this text with custom content, and it will be preserved on regeneration
94             1;
95              
96             __END__