1 package Koha::Schema::Result::BorrowerMessagePreference;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::BorrowerMessagePreference
18 __PACKAGE__->table("borrower_message_preferences");
22 =head2 borrower_message_preference_id
41 =head2 message_attribute_id
48 =head2 days_in_advance
62 __PACKAGE__->add_columns(
63 "borrower_message_preference_id",
64 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
68 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
69 "message_attribute_id",
71 data_type => "integer",
77 { data_type => "integer", default_value => 0, is_nullable => 1 },
79 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
81 __PACKAGE__->set_primary_key("borrower_message_preference_id");
89 Related object: L<Koha::Schema::Result::Borrower>
93 __PACKAGE__->belongs_to(
95 "Koha::Schema::Result::Borrower",
96 { borrowernumber => "borrowernumber" },
97 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
100 =head2 message_attribute
104 Related object: L<Koha::Schema::Result::MessageAttribute>
108 __PACKAGE__->belongs_to(
110 "Koha::Schema::Result::MessageAttribute",
111 { message_attribute_id => "message_attribute_id" },
112 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
119 Related object: L<Koha::Schema::Result::Category>
123 __PACKAGE__->belongs_to(
125 "Koha::Schema::Result::Category",
126 { categorycode => "categorycode" },
127 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
130 =head2 borrower_message_transport_preferences
134 Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference>
138 __PACKAGE__->has_many(
139 "borrower_message_transport_preferences",
140 "Koha::Schema::Result::BorrowerMessageTransportPreference",
142 "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id",
144 { cascade_copy => 0, cascade_delete => 0 },
148 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
149 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dP6LspN4dP65EGfApx6xIw
152 # You can replace this text with custom content, and it will be preserved on regeneration