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");
52 __PACKAGE__->add_columns(
54 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
56 { data_type => "varchar", is_nullable => 0, size => 255 },
58 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
67 =item * L</patron_list_id>
73 __PACKAGE__->set_primary_key("patron_list_id");
81 Related object: L<Koha::Schema::Result::Borrower>
85 __PACKAGE__->belongs_to(
87 "Koha::Schema::Result::Borrower",
88 { borrowernumber => "owner" },
89 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 =head2 patron_list_patrons
96 Related object: L<Koha::Schema::Result::PatronListPatron>
100 __PACKAGE__->has_many(
101 "patron_list_patrons",
102 "Koha::Schema::Result::PatronListPatron",
103 { "foreign.patron_list_id" => "self.patron_list_id" },
104 { cascade_copy => 0, cascade_delete => 0 },
108 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-18 16:54:33
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ulv0BHLlcWdeLgD6qPxmUQ
112 # You can replace this text with custom content, and it will be preserved on regeneration