a3be8e82db909296824c91ed9f580b835f045a28
[koha_fer] / Koha / Schema / Result / OpacNews.pm
1 use utf8;
2 package Koha::Schema::Result::OpacNews;
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::OpacNews
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<opac_news>
19
20 =cut
21
22 __PACKAGE__->table("opac_news");
23
24 =head1 ACCESSORS
25
26 =head2 idnew
27
28   data_type: 'integer'
29   extra: {unsigned => 1}
30   is_auto_increment: 1
31   is_nullable: 0
32
33 =head2 title
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 250
39
40 =head2 new
41
42   accessor: undef
43   data_type: 'text'
44   is_nullable: 0
45
46 =head2 lang
47
48   data_type: 'varchar'
49   default_value: (empty string)
50   is_nullable: 0
51   size: 25
52
53 =head2 timestamp
54
55   data_type: 'timestamp'
56   datetime_undef_if_invalid: 1
57   default_value: current_timestamp
58   is_nullable: 0
59
60 =head2 expirationdate
61
62   data_type: 'date'
63   datetime_undef_if_invalid: 1
64   is_nullable: 1
65
66 =head2 number
67
68   data_type: 'integer'
69   is_nullable: 1
70
71 =cut
72
73 __PACKAGE__->add_columns(
74   "idnew",
75   {
76     data_type => "integer",
77     extra => { unsigned => 1 },
78     is_auto_increment => 1,
79     is_nullable => 0,
80   },
81   "title",
82   { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
83   "new",
84   { accessor => undef, data_type => "text", is_nullable => 0 },
85   "lang",
86   { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
87   "timestamp",
88   {
89     data_type => "timestamp",
90     datetime_undef_if_invalid => 1,
91     default_value => \"current_timestamp",
92     is_nullable => 0,
93   },
94   "expirationdate",
95   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
96   "number",
97   { data_type => "integer", is_nullable => 1 },
98 );
99
100 =head1 PRIMARY KEY
101
102 =over 4
103
104 =item * L</idnew>
105
106 =back
107
108 =cut
109
110 __PACKAGE__->set_primary_key("idnew");
111
112
113 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0tkil0XyRwcT+abM2XoADw
115
116
117 # You can replace this text with custom content, and it will be preserved on regeneration
118 1;