Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / SearchMarcToField.pm
1 use utf8;
2 package Koha::Schema::Result::SearchMarcToField;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::SearchMarcToField
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<search_marc_to_field>
19
20 =cut
21
22 __PACKAGE__->table("search_marc_to_field");
23
24 =head1 ACCESSORS
25
26 =head2 search
27
28   data_type: 'tinyint'
29   default_value: 1
30   is_nullable: 0
31
32 =head2 search_marc_map_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 search_field_id
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 =head2 facet
45
46   data_type: 'tinyint'
47   default_value: 0
48   is_nullable: 1
49
50 true if a facet field should be generated for this
51
52 =head2 suggestible
53
54   data_type: 'tinyint'
55   default_value: 0
56   is_nullable: 1
57
58 true if this field can be used to generate suggestions for browse
59
60 =head2 sort
61
62   data_type: 'tinyint'
63   default_value: 1
64   is_nullable: 0
65
66 Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this
67
68 =cut
69
70 __PACKAGE__->add_columns(
71   "search",
72   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
73   "search_marc_map_id",
74   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75   "search_field_id",
76   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
77   "facet",
78   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
79   "suggestible",
80   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
81   "sort",
82   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
83 );
84
85 =head1 PRIMARY KEY
86
87 =over 4
88
89 =item * L</search_marc_map_id>
90
91 =item * L</search_field_id>
92
93 =back
94
95 =cut
96
97 __PACKAGE__->set_primary_key("search_marc_map_id", "search_field_id");
98
99 =head1 RELATIONS
100
101 =head2 search_field
102
103 Type: belongs_to
104
105 Related object: L<Koha::Schema::Result::SearchField>
106
107 =cut
108
109 __PACKAGE__->belongs_to(
110   "search_field",
111   "Koha::Schema::Result::SearchField",
112   { id => "search_field_id" },
113   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114 );
115
116 =head2 search_marc_map
117
118 Type: belongs_to
119
120 Related object: L<Koha::Schema::Result::SearchMarcMap>
121
122 =cut
123
124 __PACKAGE__->belongs_to(
125   "search_marc_map",
126   "Koha::Schema::Result::SearchMarcMap",
127   { id => "search_marc_map_id" },
128   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129 );
130
131
132 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-21 12:39:23
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F/uoQ4AbA16vTZJAGm3WuQ
134
135 __PACKAGE__->add_columns(
136     '+facet' => { is_boolean => 1 },
137     '+suggestible' => { is_boolean => 1 },
138     '+sort' => { is_boolean => 1 },
139 );
140
141 1;