File Coverage

blib/lib/Bio/Chado/Schema/Result/Stock/StockCvterm.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::Stock::StockCvterm;
2             BEGIN {
3 6     6   2534 $Bio::Chado::Schema::Result::Stock::StockCvterm::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   110 $Bio::Chado::Schema::Result::Stock::StockCvterm::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   38 use strict;
  6         14  
  6         111  
13 6     6   40 use warnings;
  6         14  
  6         139  
14              
15 6     6   32 use base 'DBIx::Class::Core';
  6         13  
  6         1028  
16              
17              
18              
19             __PACKAGE__->table("stock_cvterm");
20              
21              
22             __PACKAGE__->add_columns(
23             "stock_cvterm_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "stock_cvterm_stock_cvterm_id_seq",
29             },
30             "stock_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "cvterm_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "pub_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
36             );
37             __PACKAGE__->set_primary_key("stock_cvterm_id");
38             __PACKAGE__->add_unique_constraint("stock_cvterm_c1", ["stock_id", "cvterm_id", "pub_id"]);
39              
40              
41             __PACKAGE__->belongs_to(
42             "cvterm",
43             "Bio::Chado::Schema::Result::Cv::Cvterm",
44             { cvterm_id => "cvterm_id" },
45             {
46             cascade_copy => 0,
47             cascade_delete => 0,
48             is_deferrable => 1,
49             on_delete => "CASCADE",
50             on_update => "CASCADE",
51             },
52             );
53              
54              
55             __PACKAGE__->belongs_to(
56             "pub",
57             "Bio::Chado::Schema::Result::Pub::Pub",
58             { pub_id => "pub_id" },
59             {
60             cascade_copy => 0,
61             cascade_delete => 0,
62             is_deferrable => 1,
63             on_delete => "CASCADE",
64             on_update => "CASCADE",
65             },
66             );
67              
68              
69             __PACKAGE__->belongs_to(
70             "stock",
71             "Bio::Chado::Schema::Result::Stock::Stock",
72             { stock_id => "stock_id" },
73             {
74             cascade_copy => 0,
75             cascade_delete => 0,
76             is_deferrable => 1,
77             on_delete => "CASCADE",
78             on_update => "CASCADE",
79             },
80             );
81              
82              
83             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
84             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p6tR85c1LZevOnmLQzKWCw
85              
86              
87             # You can replace this text with custom content, and it will be preserved on regeneration
88             1;
89              
90             __END__