2 package Koha::Schema::Result::SearchMarcToField;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SearchMarcToField
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<search_marc_to_field>
22 __PACKAGE__->table("search_marc_to_field");
32 =head2 search_marc_map_id
38 =head2 search_field_id
50 true if a facet field should be generated for this
58 true if this field can be used to generate suggestions for browse
66 Sort defaults to 1 (Yes) and creates sort fields in the index, 0 (no) will prevent this
70 __PACKAGE__->add_columns(
72 { data_type => "tinyint", default_value => 1, is_nullable => 0 },
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
78 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
80 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
82 { data_type => "tinyint", default_value => 1, is_nullable => 0 },
89 =item * L</search_marc_map_id>
91 =item * L</search_field_id>
97 __PACKAGE__->set_primary_key("search_marc_map_id", "search_field_id");
105 Related object: L<Koha::Schema::Result::SearchField>
109 __PACKAGE__->belongs_to(
111 "Koha::Schema::Result::SearchField",
112 { id => "search_field_id" },
113 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
116 =head2 search_marc_map
120 Related object: L<Koha::Schema::Result::SearchMarcMap>
124 __PACKAGE__->belongs_to(
126 "Koha::Schema::Result::SearchMarcMap",
127 { id => "search_marc_map_id" },
128 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
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
135 __PACKAGE__->add_columns(
136 '+facet' => { is_boolean => 1 },
137 '+suggestible' => { is_boolean => 1 },
138 '+sort' => { is_boolean => 1 },