File Coverage

blib/lib/Bio/Chado/Schema/Result/General/Tableinfo.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::General::Tableinfo;
2             BEGIN {
3 6     6   2593 $Bio::Chado::Schema::Result::General::Tableinfo::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::General::Tableinfo::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         141  
13 6     6   77 use warnings;
  6         14  
  6         207  
14              
15 6     6   30 use base 'DBIx::Class::Core';
  6         40  
  6         1071  
16              
17              
18              
19             __PACKAGE__->table("tableinfo");
20              
21              
22             __PACKAGE__->add_columns(
23             "tableinfo_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "tableinfo_tableinfo_id_seq",
29             },
30             "name",
31             { data_type => "varchar", is_nullable => 0, size => 30 },
32             "primary_key_column",
33             { data_type => "varchar", is_nullable => 1, size => 30 },
34             "is_view",
35             { data_type => "integer", default_value => 0, is_nullable => 0 },
36             "view_on_table_id",
37             { data_type => "integer", is_nullable => 1 },
38             "superclass_table_id",
39             { data_type => "integer", is_nullable => 1 },
40             "is_updateable",
41             { data_type => "integer", default_value => 1, is_nullable => 0 },
42             "modification_date",
43             {
44             data_type => "date",
45             default_value => \"current_timestamp",
46             is_nullable => 0,
47             original => { default_value => \"now()" },
48             },
49             );
50             __PACKAGE__->set_primary_key("tableinfo_id");
51             __PACKAGE__->add_unique_constraint("tableinfo_c1", ["name"]);
52              
53              
54             __PACKAGE__->has_many(
55             "controls",
56             "Bio::Chado::Schema::Result::Mage::Control",
57             { "foreign.tableinfo_id" => "self.tableinfo_id" },
58             { cascade_copy => 0, cascade_delete => 0 },
59             );
60              
61              
62             __PACKAGE__->has_many(
63             "magedocumentations",
64             "Bio::Chado::Schema::Result::Mage::Magedocumentation",
65             { "foreign.tableinfo_id" => "self.tableinfo_id" },
66             { cascade_copy => 0, cascade_delete => 0 },
67             );
68              
69              
70             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
71             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0EOLyHeZBC5uBYw0qeqENQ
72              
73              
74             # You can replace this text with custom content, and it will be preserved on regeneration
75             1;
76              
77             __END__