2 package Koha
::Schema
::Result
::BorrowerMessagePreference
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BorrowerMessagePreference
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_message_preferences>
22 __PACKAGE__
->table("borrower_message_preferences");
26 =head2 borrower_message_preference_id
45 =head2 message_attribute_id
52 =head2 days_in_advance
66 __PACKAGE__
->add_columns(
67 "borrower_message_preference_id",
68 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
70 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
72 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
73 "message_attribute_id",
75 data_type
=> "integer",
81 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 1 },
83 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
90 =item * L</borrower_message_preference_id>
96 __PACKAGE__
->set_primary_key("borrower_message_preference_id");
100 =head2 borrower_message_transport_preferences
104 Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
108 __PACKAGE__
->has_many(
109 "borrower_message_transport_preferences",
110 "Koha::Schema::Result::BorrowerMessageTransportPreference",
112 "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
114 { cascade_copy
=> 0, cascade_delete
=> 0 },
117 =head2 borrowernumber
121 Related object: L<Koha::Schema::Result::Borrower>
125 __PACKAGE__
->belongs_to(
127 "Koha::Schema::Result::Borrower",
128 { borrowernumber
=> "borrowernumber" },
132 on_delete
=> "CASCADE",
133 on_update
=> "CASCADE",
141 Related object: L<Koha::Schema::Result::Category>
145 __PACKAGE__
->belongs_to(
147 "Koha::Schema::Result::Category",
148 { categorycode
=> "categorycode" },
152 on_delete
=> "CASCADE",
153 on_update
=> "CASCADE",
157 =head2 message_attribute
161 Related object: L<Koha::Schema::Result::MessageAttribute>
165 __PACKAGE__
->belongs_to(
167 "Koha::Schema::Result::MessageAttribute",
168 { message_attribute_id
=> "message_attribute_id" },
172 on_delete
=> "CASCADE",
173 on_update
=> "CASCADE",
177 =head2 message_transport_types
181 Composing rels: L</borrower_message_transport_preferences> -> message_transport_type
185 __PACKAGE__
->many_to_many(
186 "message_transport_types",
187 "borrower_message_transport_preferences",
188 "message_transport_type",
192 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
193 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hd5sPnxGi5332WmzqCus8A
196 # You can replace this text with custom content, and it will be preserved on regeneration