File Coverage

blib/lib/Biblio/Zotero/DB/Schema/Result/CustomItemTypeField.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 13     13   12245 use utf8;
  13         33  
  13         105  
2             package Biblio::Zotero::DB::Schema::Result::CustomItemTypeField;
3             $Biblio::Zotero::DB::Schema::Result::CustomItemTypeField::VERSION = '0.003';
4             # Created by DBIx::Class::Schema::Loader
5             # DO NOT MODIFY THE FIRST PART OF THIS FILE
6              
7              
8 13     13   721 use strict;
  13         29  
  13         402  
9 13     13   73 use warnings;
  13         34  
  13         368  
10              
11 13     13   79 use base 'DBIx::Class::Core';
  13         33  
  13         3930  
12              
13              
14             __PACKAGE__->table("customItemTypeFields");
15              
16              
17             __PACKAGE__->add_columns(
18             "customitemtypeid",
19             { data_type => "int", is_foreign_key => 1, is_nullable => 0 },
20             "fieldid",
21             { data_type => "int", is_foreign_key => 1, is_nullable => 1 },
22             "customfieldid",
23             { data_type => "int", is_foreign_key => 1, is_nullable => 1 },
24             "hide",
25             { data_type => "int", is_nullable => 0 },
26             "orderindex",
27             { data_type => "int", is_nullable => 0 },
28             );
29              
30              
31             __PACKAGE__->set_primary_key("customitemtypeid", "orderindex");
32              
33              
34             __PACKAGE__->belongs_to(
35             "customfieldid",
36             "Biblio::Zotero::DB::Schema::Result::CustomField",
37             { customfieldid => "customfieldid" },
38             {
39             is_deferrable => 0,
40             join_type => "LEFT",
41             on_delete => "NO ACTION",
42             on_update => "NO ACTION",
43             },
44             );
45              
46              
47             __PACKAGE__->belongs_to(
48             "customitemtypeid",
49             "Biblio::Zotero::DB::Schema::Result::CustomItemType",
50             { customitemtypeid => "customitemtypeid" },
51             { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
52             );
53              
54              
55             __PACKAGE__->belongs_to(
56             "fieldid",
57             "Biblio::Zotero::DB::Schema::Result::Field",
58             { fieldid => "fieldid" },
59             {
60             is_deferrable => 0,
61             join_type => "LEFT",
62             on_delete => "NO ACTION",
63             on_update => "NO ACTION",
64             },
65             );
66              
67              
68             # Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38
69             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J7vZwhA6IbKSqu9f0Y6ZMw
70              
71              
72             # You can replace this text with custom code or comments, and it will be preserved on regeneration
73             1;
74              
75             __END__