File Coverage

blib/lib/Bio/Chado/Schema/Result/Library/LibrarySynonym.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::Library::LibrarySynonym;
2             BEGIN {
3 6     6   2729 $Bio::Chado::Schema::Result::Library::LibrarySynonym::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::Library::LibrarySynonym::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   37 use strict;
  6         14  
  6         100  
13 6     6   40 use warnings;
  6         16  
  6         143  
14              
15 6     6   29 use base 'DBIx::Class::Core';
  6         13  
  6         1134  
16              
17              
18              
19             __PACKAGE__->table("library_synonym");
20              
21              
22             __PACKAGE__->add_columns(
23             "library_synonym_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "library_synonym_library_synonym_id_seq",
29             },
30             "synonym_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "library_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             "is_current",
37             { data_type => "boolean", default_value => \"true", is_nullable => 0 },
38             "is_internal",
39             { data_type => "boolean", default_value => \"false", is_nullable => 0 },
40             );
41             __PACKAGE__->set_primary_key("library_synonym_id");
42             __PACKAGE__->add_unique_constraint("library_synonym_c1", ["synonym_id", "library_id", "pub_id"]);
43              
44              
45             __PACKAGE__->belongs_to(
46             "pub",
47             "Bio::Chado::Schema::Result::Pub::Pub",
48             { pub_id => "pub_id" },
49             {
50             cascade_copy => 0,
51             cascade_delete => 0,
52             is_deferrable => 1,
53             on_delete => "CASCADE",
54             on_update => "CASCADE",
55             },
56             );
57              
58              
59             __PACKAGE__->belongs_to(
60             "library",
61             "Bio::Chado::Schema::Result::Library::Library",
62             { library_id => "library_id" },
63             {
64             cascade_copy => 0,
65             cascade_delete => 0,
66             is_deferrable => 1,
67             on_delete => "CASCADE",
68             on_update => "CASCADE",
69             },
70             );
71              
72              
73             __PACKAGE__->belongs_to(
74             "synonym",
75             "Bio::Chado::Schema::Result::Sequence::Synonym",
76             { synonym_id => "synonym_id" },
77             {
78             cascade_copy => 0,
79             cascade_delete => 0,
80             is_deferrable => 1,
81             on_delete => "CASCADE",
82             on_update => "CASCADE",
83             },
84             );
85              
86              
87             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
88             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fUcodL0RaOUDBXby/tIDng
89              
90              
91             # You can replace this text with custom content, and it will be preserved on regeneration
92             1;
93              
94             __END__