2 package Koha::Schema::Result::Message;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Message
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<messages>
22 __PACKAGE__->table("messages");
56 data_type: 'timestamp'
57 datetime_undef_if_invalid: 1
58 default_value: current_timestamp
69 __PACKAGE__->add_columns(
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73 { data_type => "integer", is_nullable => 0 },
75 { data_type => "varchar", is_nullable => 1, size => 10 },
77 { data_type => "varchar", is_nullable => 0, size => 1 },
79 { data_type => "text", is_nullable => 0 },
82 data_type => "timestamp",
83 datetime_undef_if_invalid => 1,
84 default_value => \"current_timestamp",
88 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95 =item * L</message_id>
101 __PACKAGE__->set_primary_key("message_id");
109 Related object: L<Koha::Schema::Result::Borrower>
113 __PACKAGE__->belongs_to(
115 "Koha::Schema::Result::Borrower",
116 { borrowernumber => "manager_id" },
120 on_delete => "SET NULL",
121 on_update => "RESTRICT",
126 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-31 10:39:36
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lmkl/u8Lr1cQumfZvn5D4A
130 # You can replace this text with custom content, and it will be preserved on regeneration