Bug 30755: Remove auto_too_soon from error count
[koha.git] / Koha / Schema / Result / AqorderUser.pm
1 use utf8;
2 package Koha::Schema::Result::AqorderUser;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::AqorderUser
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqorder_users>
19
20 =cut
21
22 __PACKAGE__->table("aqorder_users");
23
24 =head1 ACCESSORS
25
26 =head2 ordernumber
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 the order this patrons receive notifications from (aqorders.ordernumber)
33
34 =head2 borrowernumber
35
36   data_type: 'integer'
37   is_foreign_key: 1
38   is_nullable: 0
39
40 the borrowernumber for the patron receiving notifications for this order (borrowers.borrowernumber)
41
42 =cut
43
44 __PACKAGE__->add_columns(
45   "ordernumber",
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
51 =head1 PRIMARY KEY
52
53 =over 4
54
55 =item * L</ordernumber>
56
57 =item * L</borrowernumber>
58
59 =back
60
61 =cut
62
63 __PACKAGE__->set_primary_key("ordernumber", "borrowernumber");
64
65 =head1 RELATIONS
66
67 =head2 borrowernumber
68
69 Type: belongs_to
70
71 Related object: L<Koha::Schema::Result::Borrower>
72
73 =cut
74
75 __PACKAGE__->belongs_to(
76   "borrowernumber",
77   "Koha::Schema::Result::Borrower",
78   { borrowernumber => "borrowernumber" },
79   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
80 );
81
82 =head2 ordernumber
83
84 Type: belongs_to
85
86 Related object: L<Koha::Schema::Result::Aqorder>
87
88 =cut
89
90 __PACKAGE__->belongs_to(
91   "ordernumber",
92   "Koha::Schema::Result::Aqorder",
93   { ordernumber => "ordernumber" },
94   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
95 );
96
97
98 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
99 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:G5LCF3HRXk7YKl8/t7HIyg
100
101
102 # You can replace this text with custom code or comments, and it will be preserved on regeneration
103 1;