DB/Schema/Result/CustomItemTypeField.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DB/Schema/Result/CustomItemType.pm ↑ Summary DB/Schema/Result/DeletedItem.pm »
1 13 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Biblio::Zotero::DB::Schema::Result::CustomItemTypeField;
3 13 $Biblio::Zotero::DB::Schema::Result::CustomItemTypeField::VERSION = '0.004';
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7  
8 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 13 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13  
14 13 __PACKAGE__->table("customItemTypeFields");
15  
16  
17 13 __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 13 __PACKAGE__->set_primary_key("customitemtypeid", "orderindex");
32  
33  
34 13 __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 13 __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 13 __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 13 1;
74  
75 __END__
« DB/Schema/Result/CustomItemType.pm ↑ Summary DB/Schema/Result/DeletedItem.pm »