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
49 extra: {list => ["string","date","number","boolean","sum"]}
52 what type of data this holds, relevant when storing it in the search engine
56 __PACKAGE__->add_columns(
58 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60 { data_type => "varchar", is_nullable => 0, size => 255 },
62 { data_type => "varchar", is_nullable => 1, size => 255 },
66 extra => { list => ["string", "date", "number", "boolean", "sum"] },
81 __PACKAGE__->set_primary_key("id");
83 =head1 UNIQUE CONSTRAINTS
95 __PACKAGE__->add_unique_constraint("name", ["name"]);
99 =head2 search_marc_to_fields
103 Related object: L<Koha::Schema::Result::SearchMarcToField>
107 __PACKAGE__->has_many(
108 "search_marc_to_fields",
109 "Koha::Schema::Result::SearchMarcToField",
110 { "foreign.search_field_id" => "self.id" },
111 { cascade_copy => 0, cascade_delete => 0 },
114 =head2 search_marc_maps
118 Composing rels: L</search_marc_to_fields> -> search_marc_map
122 __PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");
125 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-09-25 15:21:43
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HD0m5hWYi/GXgz1rvk+Ipw
129 # You can replace this text with custom code or comments, and it will be preserved on regeneration