1 package Koha::Schema::Result::PatronList;
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::PatronList
18 __PACKAGE__->table("patron_lists");
42 __PACKAGE__->add_columns(
44 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
46 { data_type => "varchar", is_nullable => 0, size => 255 },
48 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
50 __PACKAGE__->set_primary_key("patron_list_id");
54 =head2 patron_list_patrons
58 Related object: L<Koha::Schema::Result::PatronListPatron>
62 __PACKAGE__->has_many(
63 "patron_list_patrons",
64 "Koha::Schema::Result::PatronListPatron",
65 { "foreign.patron_list_id" => "self.patron_list_id" },
66 { cascade_copy => 0, cascade_delete => 0 },
73 Related object: L<Koha::Schema::Result::Borrower>
77 __PACKAGE__->belongs_to(
79 "Koha::Schema::Result::Borrower",
80 { borrowernumber => "owner" },
81 { on_delete => "CASCADE", on_update => "CASCADE" },
85 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-07-10 10:39:50
86 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XegvNUkfR/cYwxlLLX3h3A
89 # You can replace this text with custom content, and it will be preserved on regeneration