line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
13
|
|
|
13
|
|
11460
|
use utf8; |
|
13
|
|
|
|
|
31
|
|
|
13
|
|
|
|
|
102
|
|
2
|
|
|
|
|
|
|
package Biblio::Zotero::DB::Schema::Result::Field; |
3
|
|
|
|
|
|
|
$Biblio::Zotero::DB::Schema::Result::Field::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
|
|
736
|
use strict; |
|
13
|
|
|
|
|
209
|
|
|
13
|
|
|
|
|
383
|
|
9
|
13
|
|
|
13
|
|
67
|
use warnings; |
|
13
|
|
|
|
|
31
|
|
|
13
|
|
|
|
|
371
|
|
10
|
|
|
|
|
|
|
|
11
|
13
|
|
|
13
|
|
76
|
use base 'DBIx::Class::Core'; |
|
13
|
|
|
|
|
32
|
|
|
13
|
|
|
|
|
4443
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
__PACKAGE__->table("fields"); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
18
|
|
|
|
|
|
|
"fieldid", |
19
|
|
|
|
|
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
20
|
|
|
|
|
|
|
"fieldname", |
21
|
|
|
|
|
|
|
{ data_type => "text", is_nullable => 1 }, |
22
|
|
|
|
|
|
|
"fieldformatid", |
23
|
|
|
|
|
|
|
{ data_type => "int", is_foreign_key => 1, is_nullable => 1 }, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("fieldid"); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
31
|
|
|
|
|
|
|
"base_field_mappings_basefieldids", |
32
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::BaseFieldMapping", |
33
|
|
|
|
|
|
|
{ "foreign.basefieldid" => "self.fieldid" }, |
34
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
39
|
|
|
|
|
|
|
"base_field_mappings_fieldids", |
40
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::BaseFieldMapping", |
41
|
|
|
|
|
|
|
{ "foreign.fieldid" => "self.fieldid" }, |
42
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
47
|
|
|
|
|
|
|
"custom_base_field_mappings", |
48
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::CustomBaseFieldMapping", |
49
|
|
|
|
|
|
|
{ "foreign.basefieldid" => "self.fieldid" }, |
50
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
55
|
|
|
|
|
|
|
"custom_item_type_fields", |
56
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::CustomItemTypeField", |
57
|
|
|
|
|
|
|
{ "foreign.fieldid" => "self.fieldid" }, |
58
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
59
|
|
|
|
|
|
|
); |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
63
|
|
|
|
|
|
|
"fieldformatid", |
64
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::FieldFormat", |
65
|
|
|
|
|
|
|
{ fieldformatid => "fieldformatid" }, |
66
|
|
|
|
|
|
|
{ |
67
|
|
|
|
|
|
|
is_deferrable => 0, |
68
|
|
|
|
|
|
|
join_type => "LEFT", |
69
|
|
|
|
|
|
|
on_delete => "NO ACTION", |
70
|
|
|
|
|
|
|
on_update => "NO ACTION", |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
76
|
|
|
|
|
|
|
"item_datas", |
77
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::ItemData", |
78
|
|
|
|
|
|
|
{ "foreign.fieldid" => "self.fieldid" }, |
79
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
80
|
|
|
|
|
|
|
); |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
84
|
|
|
|
|
|
|
"item_type_fields", |
85
|
|
|
|
|
|
|
"Biblio::Zotero::DB::Schema::Result::ItemTypeField", |
86
|
|
|
|
|
|
|
{ "foreign.fieldid" => "self.fieldid" }, |
87
|
|
|
|
|
|
|
{ cascade_copy => 0, cascade_delete => 0 }, |
88
|
|
|
|
|
|
|
); |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38 |
92
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aBezepkeZs0zrI3xTKTpoA |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
96
|
|
|
|
|
|
|
1; |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
__END__ |