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");
52 data_type: 'mediumtext'
57 data_type: 'timestamp'
58 datetime_undef_if_invalid: 1
59 default_value: current_timestamp
70 __PACKAGE__
->add_columns(
72 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
74 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
76 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
78 { data_type
=> "varchar", is_nullable
=> 0, size
=> 1 },
80 { data_type
=> "mediumtext", is_nullable
=> 0 },
83 data_type
=> "timestamp",
84 datetime_undef_if_invalid
=> 1,
85 default_value
=> \"current_timestamp
",
89 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
96 =item * L</message_id>
102 __PACKAGE__->set_primary_key("message_id
");
106 =head2 borrowernumber
110 Related object: L<Koha::Schema::Result::Borrower>
114 __PACKAGE__->belongs_to(
116 "Koha
::Schema
::Result
::Borrower
",
117 { borrowernumber => "borrowernumber
" },
118 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
125 Related object: L<Koha::Schema::Result::Borrower>
129 __PACKAGE__->belongs_to(
131 "Koha
::Schema
::Result
::Borrower
",
132 { borrowernumber => "manager_id
" },
136 on_delete => "SET NULL
",
137 on_update => "RESTRICT
",
142 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-02-15 13:15:09
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kYM+0CFPm/wdNp7EosdlRw
145 sub koha_object_class {
146 'Koha::Patron::Message';
148 sub koha_objects_class {
149 'Koha::Patron::Messages';