Bug 30650: DBIC
[koha.git] / Koha / Schema / Result / CurbsidePickupIssue.pm
1 use utf8;
2 package Koha::Schema::Result::CurbsidePickupIssue;
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::CurbsidePickupIssue
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<curbside_pickup_issues>
19
20 =cut
21
22 __PACKAGE__->table("curbside_pickup_issues");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 curbside_pickup_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 issue_id
39
40   data_type: 'integer'
41   is_nullable: 0
42
43 =head2 reserve_id
44
45   data_type: 'integer'
46   is_nullable: 0
47
48 =cut
49
50 __PACKAGE__->add_columns(
51   "id",
52   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53   "curbside_pickup_id",
54   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55   "issue_id",
56   { data_type => "integer", is_nullable => 0 },
57   "reserve_id",
58   { data_type => "integer", is_nullable => 0 },
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 curbside_pickup
76
77 Type: belongs_to
78
79 Related object: L<Koha::Schema::Result::CurbsidePickup>
80
81 =cut
82
83 __PACKAGE__->belongs_to(
84   "curbside_pickup",
85   "Koha::Schema::Result::CurbsidePickup",
86   { id => "curbside_pickup_id" },
87   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88 );
89
90
91 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-27 11:58:44
92 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U8r/RLbAi1yGXexYWUYjtQ
93
94
95 # You can replace this text with custom code or comments, and it will be preserved on regeneration
96 1;