View | Details | Raw Unified | Return to bug 39658
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1676-1681 __PACKAGE__->has_many( Link Here
1676
  { cascade_copy => 0, cascade_delete => 0 },
1676
  { cascade_copy => 0, cascade_delete => 0 },
1677
);
1677
);
1678
1678
1679
=head2 patron_account_link
1680
1681
Type: might_have
1682
1683
Related object: L<Koha::Schema::Result::PatronAccountLink>
1684
1685
=cut
1686
1687
__PACKAGE__->might_have(
1688
  "patron_account_link",
1689
  "Koha::Schema::Result::PatronAccountLink",
1690
  { "foreign.borrowernumber" => "self.borrowernumber" },
1691
  { cascade_copy => 0, cascade_delete => 0 },
1692
);
1693
1679
=head2 patron_consents
1694
=head2 patron_consents
1680
1695
1681
Type: has_many
1696
Type: has_many
Lines 2212-2219 Composing rels: L</user_permissions> -> permission Link Here
2212
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2227
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2213
2228
2214
2229
2215
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 16:44:27
2230
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-01-19 13:41:13
2216
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSJcjPvlr82qecmbk1Q8iA
2231
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ri+7zHVsNeXiewOHao3A1Q
2217
2232
2218
__PACKAGE__->belongs_to(
2233
__PACKAGE__->belongs_to(
2219
  "library",
2234
  "library",
(-)a/Koha/Schema/Result/PatronAccountLink.pm (-1 / +125 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::PatronAccountLink;
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::PatronAccountLink
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<patron_account_links>
19
20
=cut
21
22
__PACKAGE__->table("patron_account_links");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
primary key
33
34
=head2 link_group_id
35
36
  data_type: 'integer'
37
  is_nullable: 0
38
39
groups linked accounts together
40
41
=head2 borrowernumber
42
43
  data_type: 'integer'
44
  is_foreign_key: 1
45
  is_nullable: 0
46
47
foreign key to borrowers table
48
49
=head2 created_on
50
51
  data_type: 'timestamp'
52
  datetime_undef_if_invalid: 1
53
  default_value: current_timestamp
54
  is_nullable: 0
55
56
when the link was created
57
58
=cut
59
60
__PACKAGE__->add_columns(
61
  "id",
62
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
63
  "link_group_id",
64
  { data_type => "integer", is_nullable => 0 },
65
  "borrowernumber",
66
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
67
  "created_on",
68
  {
69
    data_type => "timestamp",
70
    datetime_undef_if_invalid => 1,
71
    default_value => \"current_timestamp",
72
    is_nullable => 0,
73
  },
74
);
75
76
=head1 PRIMARY KEY
77
78
=over 4
79
80
=item * L</id>
81
82
=back
83
84
=cut
85
86
__PACKAGE__->set_primary_key("id");
87
88
=head1 UNIQUE CONSTRAINTS
89
90
=head2 C<borrowernumber>
91
92
=over 4
93
94
=item * L</borrowernumber>
95
96
=back
97
98
=cut
99
100
__PACKAGE__->add_unique_constraint("borrowernumber", ["borrowernumber"]);
101
102
=head1 RELATIONS
103
104
=head2 borrowernumber
105
106
Type: belongs_to
107
108
Related object: L<Koha::Schema::Result::Borrower>
109
110
=cut
111
112
__PACKAGE__->belongs_to(
113
  "borrowernumber",
114
  "Koha::Schema::Result::Borrower",
115
  { borrowernumber => "borrowernumber" },
116
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
117
);
118
119
120
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-01-19 13:41:13
121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iWUPjrtWP7qqlIJZJ7kOuA
122
123
124
# You can replace this text with custom code or comments, and it will be preserved on regeneration
125
1;

Return to bug 39658