Bug 20434: Update UNIMARC framework - auth (SAUTTIT)
[koha.git] / Koha / Schema / Result / PatronListPatron.pm
blob441d7a443c639fd9debe25ac8dc72dcadc79d340
1 use utf8;
2 package Koha::Schema::Result::PatronListPatron;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::PatronListPatron
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<patron_list_patrons>
20 =cut
22 __PACKAGE__->table("patron_list_patrons");
24 =head1 ACCESSORS
26 =head2 patron_list_patron_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 patron_list_id
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 borrowernumber
40 data_type: 'integer'
41 is_foreign_key: 1
42 is_nullable: 0
44 =cut
46 __PACKAGE__->add_columns(
47 "patron_list_patron_id",
48 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49 "patron_list_id",
50 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
51 "borrowernumber",
52 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55 =head1 PRIMARY KEY
57 =over 4
59 =item * L</patron_list_patron_id>
61 =back
63 =cut
65 __PACKAGE__->set_primary_key("patron_list_patron_id");
67 =head1 RELATIONS
69 =head2 borrowernumber
71 Type: belongs_to
73 Related object: L<Koha::Schema::Result::Borrower>
75 =cut
77 __PACKAGE__->belongs_to(
78 "borrowernumber",
79 "Koha::Schema::Result::Borrower",
80 { borrowernumber => "borrowernumber" },
81 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84 =head2 patron_list
86 Type: belongs_to
88 Related object: L<Koha::Schema::Result::PatronList>
90 =cut
92 __PACKAGE__->belongs_to(
93 "patron_list",
94 "Koha::Schema::Result::PatronList",
95 { patron_list_id => "patron_list_id" },
96 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 21:34:14
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0gmBJbxnHkobBAazvKnY7g
104 # You can replace this text with custom content, and it will be preserved on regeneration