2 package Koha::Schema::Result::PatronList;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::PatronList
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<patron_lists>
22 __PACKAGE__->table("patron_lists");
46 __PACKAGE__->add_columns(
48 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
50 { data_type => "varchar", is_nullable => 0, size => 255 },
52 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59 =item * L</patron_list_id>
65 __PACKAGE__->set_primary_key("patron_list_id");
73 Related object: L<Koha::Schema::Result::Borrower>
77 __PACKAGE__->belongs_to(
79 "Koha::Schema::Result::Borrower",
80 { borrowernumber => "owner" },
81 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84 =head2 patron_list_patrons
88 Related object: L<Koha::Schema::Result::PatronListPatron>
92 __PACKAGE__->has_many(
93 "patron_list_patrons",
94 "Koha::Schema::Result::PatronListPatron",
95 { "foreign.patron_list_id" => "self.patron_list_id" },
96 { cascade_copy => 0, cascade_delete => 0 },
100 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 21:34:14
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iWNlXRM+XvkJMlnu4F0xKw
104 # You can replace this text with custom content, and it will be preserved on regeneration