2 package Koha::Schema::Result::OpacNews;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::OpacNews
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<opac_news>
22 __PACKAGE__->table("opac_news");
29 extra: {unsigned => 1}
43 default_value: (empty string)
56 default_value: (empty string)
62 data_type: 'timestamp'
63 datetime_undef_if_invalid: 1
64 default_value: current_timestamp
70 datetime_undef_if_invalid: 1
80 __PACKAGE__->add_columns(
83 data_type => "integer",
84 extra => { unsigned => 1 },
85 is_auto_increment => 1,
89 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
91 { data_type => "varchar", default_value => "", is_nullable => 0, size => 250 },
93 { accessor => undef, data_type => "text", is_nullable => 0 },
95 { data_type => "varchar", default_value => "", is_nullable => 0, size => 25 },
98 data_type => "timestamp",
99 datetime_undef_if_invalid => 1,
100 default_value => \"current_timestamp",
104 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
106 { data_type => "integer", is_nullable => 1 },
119 __PACKAGE__->set_primary_key("idnew");
127 Related object: L<Koha::Schema::Result::Branch>
131 __PACKAGE__->belongs_to(
133 "Koha::Schema::Result::Branch",
134 { branchcode => "branchcode" },
138 on_delete => "CASCADE",
139 on_update => "CASCADE",
144 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-02-16 23:15:22
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/q+riAqsYmCQkUCUL9MU7g
148 # You can replace this text with custom content, and it will be preserved on regeneration