Bug 20434: Update UNIMARC framework - auth (SAUTTIT)
[koha.git] / Koha / Schema / Result / SearchHistory.pm
blobe2886df82c90a69b5d4bae2591f6bf3d2fb12fc7
1 use utf8;
2 package Koha::Schema::Result::SearchHistory;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::SearchHistory - Opac search history results
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<search_history>
20 =cut
22 __PACKAGE__->table("search_history");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 userid
34 data_type: 'integer'
35 is_nullable: 0
37 =head2 sessionid
39 data_type: 'varchar'
40 is_nullable: 0
41 size: 32
43 =head2 query_desc
45 data_type: 'varchar'
46 is_nullable: 0
47 size: 255
49 =head2 query_cgi
51 data_type: 'mediumtext'
52 is_nullable: 0
54 =head2 type
56 data_type: 'varchar'
57 default_value: 'biblio'
58 is_nullable: 0
59 size: 16
61 =head2 total
63 data_type: 'integer'
64 is_nullable: 0
66 =head2 time
68 data_type: 'timestamp'
69 datetime_undef_if_invalid: 1
70 default_value: current_timestamp
71 is_nullable: 0
73 =cut
75 __PACKAGE__->add_columns(
76 "id",
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 "userid",
79 { data_type => "integer", is_nullable => 0 },
80 "sessionid",
81 { data_type => "varchar", is_nullable => 0, size => 32 },
82 "query_desc",
83 { data_type => "varchar", is_nullable => 0, size => 255 },
84 "query_cgi",
85 { data_type => "mediumtext", is_nullable => 0 },
86 "type",
88 data_type => "varchar",
89 default_value => "biblio",
90 is_nullable => 0,
91 size => 16,
93 "total",
94 { data_type => "integer", is_nullable => 0 },
95 "time",
97 data_type => "timestamp",
98 datetime_undef_if_invalid => 1,
99 default_value => \"current_timestamp",
100 is_nullable => 0,
104 =head1 PRIMARY KEY
106 =over 4
108 =item * L</id>
110 =back
112 =cut
114 __PACKAGE__->set_primary_key("id");
117 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
118 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d+Qf8sL7wLldvw2qPLoBgQ
121 # You can replace this text with custom content, and it will be preserved on regeneration