Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::Discharge; |
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::Discharge |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<discharges> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("discharges"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 borrower |
27 |
|
28 |
data_type: 'integer' |
29 |
is_foreign_key: 1 |
30 |
is_nullable: 1 |
31 |
|
32 |
=head2 needed |
33 |
|
34 |
data_type: 'timestamp' |
35 |
datetime_undef_if_invalid: 1 |
36 |
is_nullable: 1 |
37 |
|
38 |
=head2 validated |
39 |
|
40 |
data_type: 'timestamp' |
41 |
datetime_undef_if_invalid: 1 |
42 |
is_nullable: 1 |
43 |
|
44 |
=cut |
45 |
|
46 |
__PACKAGE__->add_columns( |
47 |
"borrower", |
48 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
49 |
"needed", |
50 |
{ |
51 |
data_type => "timestamp", |
52 |
datetime_undef_if_invalid => 1, |
53 |
is_nullable => 1, |
54 |
}, |
55 |
"validated", |
56 |
{ |
57 |
data_type => "timestamp", |
58 |
datetime_undef_if_invalid => 1, |
59 |
is_nullable => 1, |
60 |
}, |
61 |
); |
62 |
|
63 |
=head1 RELATIONS |
64 |
|
65 |
=head2 borrower |
66 |
|
67 |
Type: belongs_to |
68 |
|
69 |
Related object: L<Koha::Schema::Result::Borrower> |
70 |
|
71 |
=cut |
72 |
|
73 |
__PACKAGE__->belongs_to( |
74 |
"borrower", |
75 |
"Koha::Schema::Result::Borrower", |
76 |
{ borrowernumber => "borrower" }, |
77 |
{ |
78 |
is_deferrable => 1, |
79 |
join_type => "LEFT", |
80 |
on_delete => "CASCADE", |
81 |
on_update => "CASCADE", |
82 |
}, |
83 |
); |
84 |
|
85 |
|
86 |
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-01-08 18:15:13 |
87 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uq7Zb0SNf2mD3cpC4oub9A |
88 |
|
89 |
|
90 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
91 |
1; |