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

(-)a/Koha/Schema/Result/Illcomment.pm (-1 / +137 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::Illcomment;
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::Illcomment
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<illcomments>
19
20
=cut
21
22
__PACKAGE__->table("illcomments");
23
24
=head1 ACCESSORS
25
26
=head2 illcomment_id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 illrequest_id
33
34
  data_type: 'bigint'
35
  extra: {unsigned => 1}
36
  is_foreign_key: 1
37
  is_nullable: 0
38
39
=head2 borrowernumber
40
41
  data_type: 'integer'
42
  is_foreign_key: 1
43
  is_nullable: 1
44
45
=head2 comment
46
47
  data_type: 'text'
48
  is_nullable: 1
49
50
=head2 timestamp
51
52
  data_type: 'timestamp'
53
  datetime_undef_if_invalid: 1
54
  default_value: current_timestamp
55
  is_nullable: 0
56
57
=cut
58
59
__PACKAGE__->add_columns(
60
  "illcomment_id",
61
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62
  "illrequest_id",
63
  {
64
    data_type => "bigint",
65
    extra => { unsigned => 1 },
66
    is_foreign_key => 1,
67
    is_nullable => 0,
68
  },
69
  "borrowernumber",
70
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71
  "comment",
72
  { data_type => "text", is_nullable => 1 },
73
  "timestamp",
74
  {
75
    data_type => "timestamp",
76
    datetime_undef_if_invalid => 1,
77
    default_value => \"current_timestamp",
78
    is_nullable => 0,
79
  },
80
);
81
82
=head1 PRIMARY KEY
83
84
=over 4
85
86
=item * L</illcomment_id>
87
88
=back
89
90
=cut
91
92
__PACKAGE__->set_primary_key("illcomment_id");
93
94
=head1 RELATIONS
95
96
=head2 borrowernumber
97
98
Type: belongs_to
99
100
Related object: L<Koha::Schema::Result::Borrower>
101
102
=cut
103
104
__PACKAGE__->belongs_to(
105
  "borrowernumber",
106
  "Koha::Schema::Result::Borrower",
107
  { borrowernumber => "borrowernumber" },
108
  {
109
    is_deferrable => 1,
110
    join_type     => "LEFT",
111
    on_delete     => "CASCADE",
112
    on_update     => "CASCADE",
113
  },
114
);
115
116
=head2 illrequest
117
118
Type: belongs_to
119
120
Related object: L<Koha::Schema::Result::Illrequest>
121
122
=cut
123
124
__PACKAGE__->belongs_to(
125
  "illrequest",
126
  "Koha::Schema::Result::Illrequest",
127
  { illrequest_id => "illrequest_id" },
128
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
129
);
130
131
132
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-26 19:57:17
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JJC9ohn0V61+WzMppDKUJw
134
135
136
# You can replace this text with custom code or comments, and it will be preserved on regeneration
137
1;

Return to bug 19945