2 package Koha::Schema::Result::SearchField;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SearchField
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<search_field>
22 __PACKAGE__->table("search_field");
38 the name of the field as it will be stored in the search engine
46 the human readable name of the field, for display
51 extra: {list => ["","string","date","number","boolean","sum","isbn","stdno"]}
54 what type of data this holds, relevant when storing it in the search engine
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62 { data_type => "varchar", is_nullable => 0, size => 255 },
64 { data_type => "varchar", is_nullable => 0, size => 255 },
69 list => ["", "string", "date", "number", "boolean", "sum", "isbn", "stdno"],
85 __PACKAGE__->set_primary_key("id");
87 =head1 UNIQUE CONSTRAINTS
99 __PACKAGE__->add_unique_constraint("name", ["name"]);
103 =head2 search_marc_to_fields
107 Related object: L<Koha::Schema::Result::SearchMarcToField>
111 __PACKAGE__->has_many(
112 "search_marc_to_fields",
113 "Koha::Schema::Result::SearchMarcToField",
114 { "foreign.search_field_id" => "self.id" },
115 { cascade_copy => 0, cascade_delete => 0 },
119 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-09 12:50:58
120 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NDRiXH19vBOhrMoyJqVTGQ
122 __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");