Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / SearchFilter.pm
1 use utf8;
2 package Koha::Schema::Result::SearchFilter;
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::SearchFilter
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<search_filters>
19
20 =cut
21
22 __PACKAGE__->table("search_filters");
23
24 =head1 ACCESSORS
25
26 =head2 search_filter_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 name
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 255
37
38 filter name
39
40 =head2 query
41
42   data_type: 'mediumtext'
43   is_nullable: 1
44
45 filter query part
46
47 =head2 limits
48
49   data_type: 'mediumtext'
50   is_nullable: 1
51
52 filter limits part
53
54 =head2 opac
55
56   data_type: 'tinyint'
57   default_value: 0
58   is_nullable: 0
59
60 whether this filter is shown on OPAC
61
62 =head2 staff_client
63
64   data_type: 'tinyint'
65   default_value: 0
66   is_nullable: 0
67
68 whether this filter is shown in staff client
69
70 =cut
71
72 __PACKAGE__->add_columns(
73   "search_filter_id",
74   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
75   "name",
76   { data_type => "varchar", is_nullable => 0, size => 255 },
77   "query",
78   { data_type => "mediumtext", is_nullable => 1 },
79   "limits",
80   { data_type => "mediumtext", is_nullable => 1 },
81   "opac",
82   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
83   "staff_client",
84   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
85 );
86
87 =head1 PRIMARY KEY
88
89 =over 4
90
91 =item * L</search_filter_id>
92
93 =back
94
95 =cut
96
97 __PACKAGE__->set_primary_key("search_filter_id");
98
99
100 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-06 12:25:18
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:De9VF9DBMhzsbPIbyFGXlQ
102
103 __PACKAGE__->add_columns(
104     '+opac'         => { is_boolean => 1 },
105     '+staff_client' => { is_boolean => 1 },
106 );
107
108 1;