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

(-)a/Koha/Schema/Result/Aqbookseller.pm (-2 / +17 lines)
Lines 289-294 __PACKAGE__->has_many( Link Here
289
  { cascade_copy => 0, cascade_delete => 0 },
289
  { cascade_copy => 0, cascade_delete => 0 },
290
);
290
);
291
291
292
=head2 aqbookseller_aliases
293
294
Type: has_many
295
296
Related object: L<Koha::Schema::Result::AqbooksellerAlias>
297
298
=cut
299
300
__PACKAGE__->has_many(
301
  "aqbookseller_aliases",
302
  "Koha::Schema::Result::AqbooksellerAlias",
303
  { "foreign.vendor_id" => "self.id" },
304
  { cascade_copy => 0, cascade_delete => 0 },
305
);
306
292
=head2 aqcontacts
307
=head2 aqcontacts
293
308
294
Type: has_many
309
Type: has_many
Lines 465-472 __PACKAGE__->has_many( Link Here
465
);
480
);
466
481
467
482
468
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-19 09:20:21
483
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-01 10:07:31
469
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xxg454HATZToWE01NY8eJw
484
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YBiWEJqaEoEzap60SDok+A
470
485
471
__PACKAGE__->add_columns(
486
__PACKAGE__->add_columns(
472
    '+active' => { is_boolean => 1 },
487
    '+active' => { is_boolean => 1 },
(-)a/Koha/Schema/Result/AqbooksellerAlias.pm (-1 / +96 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::AqbooksellerAlias;
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::AqbooksellerAlias
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<aqbookseller_aliases>
19
20
=cut
21
22
__PACKAGE__->table("aqbookseller_aliases");
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 and unique identifier assigned by Koha
33
34
=head2 vendor_id
35
36
  data_type: 'integer'
37
  is_foreign_key: 1
38
  is_nullable: 0
39
40
link to the vendor
41
42
=head2 alias
43
44
  data_type: 'varchar'
45
  is_nullable: 0
46
  size: 255
47
48
the alias
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "id",
54
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
55
  "vendor_id",
56
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57
  "alias",
58
  { data_type => "varchar", is_nullable => 0, size => 255 },
59
);
60
61
=head1 PRIMARY KEY
62
63
=over 4
64
65
=item * L</id>
66
67
=back
68
69
=cut
70
71
__PACKAGE__->set_primary_key("id");
72
73
=head1 RELATIONS
74
75
=head2 vendor
76
77
Type: belongs_to
78
79
Related object: L<Koha::Schema::Result::Aqbookseller>
80
81
=cut
82
83
__PACKAGE__->belongs_to(
84
  "vendor",
85
  "Koha::Schema::Result::Aqbookseller",
86
  { id => "vendor_id" },
87
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88
);
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-01 10:07:31
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9s3K0S0BfrHLN/V3X9DB1A
93
94
95
# You can replace this text with custom code or comments, and it will be preserved on regeneration
96
1;

Return to bug 33103