File Coverage

blib/lib/Bio/Chado/Schema/Result/Library/Library.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::Library;
2             BEGIN {
3 6     6   3036 $Bio::Chado::Schema::Result::Library::Library::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   103 $Bio::Chado::Schema::Result::Library::Library::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   36 use strict;
  6         14  
  6         105  
13 6     6   26 use warnings;
  6         12  
  6         135  
14              
15 6     6   31 use base 'DBIx::Class::Core';
  6         28  
  6         1636  
16              
17              
18              
19             __PACKAGE__->table("library");
20              
21              
22             __PACKAGE__->add_columns(
23             "library_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "library_library_id_seq",
29             },
30             "organism_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "name",
33             { data_type => "varchar", is_nullable => 1, size => 255 },
34             "uniquename",
35             { data_type => "text", is_nullable => 0 },
36             "type_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
38             "is_obsolete",
39             { data_type => "integer", default_value => 0, is_nullable => 0 },
40             "timeaccessioned",
41             {
42             data_type => "timestamp",
43             default_value => \"current_timestamp",
44             is_nullable => 0,
45             original => { default_value => \"now()" },
46             },
47             "timelastmodified",
48             {
49             data_type => "timestamp",
50             default_value => \"current_timestamp",
51             is_nullable => 0,
52             original => { default_value => \"now()" },
53             },
54             );
55             __PACKAGE__->set_primary_key("library_id");
56             __PACKAGE__->add_unique_constraint("library_c1", ["organism_id", "uniquename", "type_id"]);
57              
58              
59             __PACKAGE__->has_many(
60             "cell_line_libraries",
61             "Bio::Chado::Schema::Result::CellLine::CellLineLibrary",
62             { "foreign.library_id" => "self.library_id" },
63             { cascade_copy => 0, cascade_delete => 0 },
64             );
65              
66              
67             __PACKAGE__->belongs_to(
68             "type",
69             "Bio::Chado::Schema::Result::Cv::Cvterm",
70             { cvterm_id => "type_id" },
71             {
72             cascade_copy => 0,
73             cascade_delete => 0,
74             is_deferrable => 1,
75             on_delete => "CASCADE",
76             on_update => "CASCADE",
77             },
78             );
79              
80              
81             __PACKAGE__->belongs_to(
82             "organism",
83             "Bio::Chado::Schema::Result::Organism::Organism",
84             { organism_id => "organism_id" },
85             {
86             cascade_copy => 0,
87             cascade_delete => 0,
88             is_deferrable => 1,
89             on_delete => "CASCADE",
90             on_update => "CASCADE",
91             },
92             );
93              
94              
95             __PACKAGE__->has_many(
96             "library_cvterms",
97             "Bio::Chado::Schema::Result::Library::LibraryCvterm",
98             { "foreign.library_id" => "self.library_id" },
99             { cascade_copy => 0, cascade_delete => 0 },
100             );
101              
102              
103             __PACKAGE__->has_many(
104             "library_dbxrefs",
105             "Bio::Chado::Schema::Result::Library::LibraryDbxref",
106             { "foreign.library_id" => "self.library_id" },
107             { cascade_copy => 0, cascade_delete => 0 },
108             );
109              
110              
111             __PACKAGE__->has_many(
112             "library_features",
113             "Bio::Chado::Schema::Result::Library::LibraryFeature",
114             { "foreign.library_id" => "self.library_id" },
115             { cascade_copy => 0, cascade_delete => 0 },
116             );
117              
118              
119             __PACKAGE__->has_many(
120             "libraryprops",
121             "Bio::Chado::Schema::Result::Library::Libraryprop",
122             { "foreign.library_id" => "self.library_id" },
123             { cascade_copy => 0, cascade_delete => 0 },
124             );
125              
126              
127             __PACKAGE__->has_many(
128             "library_pubs",
129             "Bio::Chado::Schema::Result::Library::LibraryPub",
130             { "foreign.library_id" => "self.library_id" },
131             { cascade_copy => 0, cascade_delete => 0 },
132             );
133              
134              
135             __PACKAGE__->has_many(
136             "library_synonyms",
137             "Bio::Chado::Schema::Result::Library::LibrarySynonym",
138             { "foreign.library_id" => "self.library_id" },
139             { cascade_copy => 0, cascade_delete => 0 },
140             );
141              
142              
143             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
144             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/OylZiGTtXYr3rweD5UKPQ
145              
146              
147             # You can replace this text with custom content, and it will be preserved on regeneration
148             1;
149              
150             __END__