Bug 33574: DBIC schema
[koha.git] / Koha / Schema / Result / AqbooksellerAlias.pm
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 alias_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   "alias_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</alias_id>
66
67 =back
68
69 =cut
70
71 __PACKAGE__->set_primary_key("alias_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-04-20 18:19:43
92 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FmrIDHGkX2A+3aFZV2FZCA
93
94 sub koha_object_class {
95     'Koha::Acquisition::Bookseller::Alias';
96 }
97 sub koha_objects_class {
98     'Koha::Acquisition::Bookseller::Aliases';
99 }
100
101 1;