Bug 17170: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-10-06 09:05:57 -03:00
parent 47228046ee
commit 9f1e167f6f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -0,0 +1,99 @@
use utf8;
package Koha::Schema::Result::SearchFilter;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
Koha::Schema::Result::SearchFilter
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
=head1 TABLE: C<search_filters>
=cut
__PACKAGE__->table("search_filters");
=head1 ACCESSORS
=head2 id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
=head2 name
data_type: 'varchar'
is_nullable: 0
size: 255
=head2 query
data_type: 'mediumtext'
is_nullable: 1
=head2 limits
data_type: 'mediumtext'
is_nullable: 1
=head2 opac
data_type: 'tinyint'
default_value: 0
is_nullable: 0
whether this filter is shown on OPAC
=head2 staff_client
data_type: 'tinyint'
default_value: 0
is_nullable: 0
whether this filter is shown in staff client
=cut
__PACKAGE__->add_columns(
"id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"name",
{ data_type => "varchar", is_nullable => 0, size => 255 },
"query",
{ data_type => "mediumtext", is_nullable => 1 },
"limits",
{ data_type => "mediumtext", is_nullable => 1 },
"opac",
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"staff_client",
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
);
=head1 PRIMARY KEY
=over 4
=item * L</id>
=back
=cut
__PACKAGE__->set_primary_key("id");
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-06 12:05:17
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8QjxOudinfXOrLj/KkZc5Q
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;