Bug 8976: DBIC schema changes
[koha.git] / Koha / Schema / Result / Quote.pm
1 use utf8;
2 package Koha::Schema::Result::Quote;
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::Quote
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<quotes>
19
20 =cut
21
22 __PACKAGE__->table("quotes");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique id for the quote
33
34 =head2 source
35
36   data_type: 'mediumtext'
37   is_nullable: 1
38
39 source/credit for the quote
40
41 =head2 text
42
43   data_type: 'longtext'
44   is_nullable: 0
45
46 text of the quote
47
48 =head2 timestamp
49
50   data_type: 'datetime'
51   datetime_undef_if_invalid: 1
52   is_nullable: 1
53
54 date and time that the quote last appeared in the opac
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "id",
60   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61   "source",
62   { data_type => "mediumtext", is_nullable => 1 },
63   "text",
64   { data_type => "longtext", is_nullable => 0 },
65   "timestamp",
66   {
67     data_type => "datetime",
68     datetime_undef_if_invalid => 1,
69     is_nullable => 1,
70   },
71 );
72
73 =head1 PRIMARY KEY
74
75 =over 4
76
77 =item * L</id>
78
79 =back
80
81 =cut
82
83 __PACKAGE__->set_primary_key("id");
84
85
86 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
87 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AsjlfoqGCpt8DKeRpizVjA
88
89
90 # You can replace this text with custom content, and it will be preserved on regeneration
91 1;