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");
48 borrowernumber of the list creator
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62 { data_type => "varchar", is_nullable => 0, size => 255 },
64 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
73 =item * L</patron_list_id>
79 __PACKAGE__->set_primary_key("patron_list_id");
87 Related object: L<Koha::Schema::Result::Borrower>
91 __PACKAGE__->belongs_to(
93 "Koha::Schema::Result::Borrower",
94 { borrowernumber => "owner" },
95 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
98 =head2 patron_list_patrons
102 Related object: L<Koha::Schema::Result::PatronListPatron>
106 __PACKAGE__->has_many(
107 "patron_list_patrons",
108 "Koha::Schema::Result::PatronListPatron",
109 { "foreign.patron_list_id" => "self.patron_list_id" },
110 { cascade_copy => 0, cascade_delete => 0 },
114 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+gAlf5GQ7YSgAtFIXgqVWw
118 # You can replace this text with custom content, and it will be preserved on regeneration