Bug 10565: Add a "Patron List" feature for storing and manipulating collections of...
[koha.git] / Koha / Schema / Result / PatronListPatron.pm
1 package Koha::Schema::Result::PatronListPatron;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::PatronListPatron
15
16 =cut
17
18 __PACKAGE__->table("patron_list_patrons");
19
20 =head1 ACCESSORS
21
22 =head2 patron_list_patron_id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 patron_list_id
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =head2 borrowernumber
35
36   data_type: 'integer'
37   is_foreign_key: 1
38   is_nullable: 0
39
40 =cut
41
42 __PACKAGE__->add_columns(
43   "patron_list_patron_id",
44   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
45   "patron_list_id",
46   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47   "borrowernumber",
48   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
49 );
50 __PACKAGE__->set_primary_key("patron_list_patron_id");
51
52 =head1 RELATIONS
53
54 =head2 borrowernumber
55
56 Type: belongs_to
57
58 Related object: L<Koha::Schema::Result::Borrower>
59
60 =cut
61
62 __PACKAGE__->belongs_to(
63   "borrowernumber",
64   "Koha::Schema::Result::Borrower",
65   { borrowernumber => "borrowernumber" },
66   { on_delete => "CASCADE", on_update => "CASCADE" },
67 );
68
69 =head2 patron_list
70
71 Type: belongs_to
72
73 Related object: L<Koha::Schema::Result::PatronList>
74
75 =cut
76
77 __PACKAGE__->belongs_to(
78   "patron_list",
79   "Koha::Schema::Result::PatronList",
80   { patron_list_id => "patron_list_id" },
81   { on_delete => "CASCADE", on_update => "CASCADE" },
82 );
83
84
85 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-07-10 10:39:50
86 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c+znpWBlv6I+yi1EuGUKrQ
87
88
89 # You can replace this text with custom content, and it will be preserved on regeneration
90 1;