|
Lines 54-59
linking to issues.issue_id or old_issues.issue_id
Link Here
|
| 54 |
|
54 |
|
| 55 |
foreign key linking to borrowers.borrowernumber |
55 |
foreign key linking to borrowers.borrowernumber |
| 56 |
|
56 |
|
|
|
57 |
=head2 type |
| 58 |
|
| 59 |
data_type: 'enum' |
| 60 |
extra: {list => ["ISSUE","RENEW"]} |
| 61 |
is_nullable: 0 |
| 62 |
|
| 63 |
The type of usage this is |
| 64 |
|
| 65 |
=head2 creation_date |
| 66 |
|
| 67 |
data_type: 'timestamp' |
| 68 |
datetime_undef_if_invalid: 1 |
| 69 |
default_value: current_timestamp |
| 70 |
is_nullable: 0 |
| 71 |
|
| 72 |
the timestamp for when a usage was recorded |
| 73 |
|
| 57 |
=cut |
74 |
=cut |
| 58 |
|
75 |
|
| 59 |
__PACKAGE__->add_columns( |
76 |
__PACKAGE__->add_columns( |
|
Lines 65-70
__PACKAGE__->add_columns(
Link Here
|
| 65 |
{ data_type => "integer", is_nullable => 1 }, |
82 |
{ data_type => "integer", is_nullable => 1 }, |
| 66 |
"patron_id", |
83 |
"patron_id", |
| 67 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
84 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
|
|
85 |
"type", |
| 86 |
{ |
| 87 |
data_type => "enum", |
| 88 |
extra => { list => ["ISSUE", "RENEW"] }, |
| 89 |
is_nullable => 0, |
| 90 |
}, |
| 91 |
"creation_date", |
| 92 |
{ |
| 93 |
data_type => "timestamp", |
| 94 |
datetime_undef_if_invalid => 1, |
| 95 |
default_value => \"current_timestamp", |
| 96 |
is_nullable => 0, |
| 97 |
}, |
| 68 |
); |
98 |
); |
| 69 |
|
99 |
|
| 70 |
=head1 PRIMARY KEY |
100 |
=head1 PRIMARY KEY |
|
Lines 112-119
__PACKAGE__->belongs_to(
Link Here
|
| 112 |
); |
142 |
); |
| 113 |
|
143 |
|
| 114 |
|
144 |
|
| 115 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-07 14:14:27 |
145 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-07 11:22:06 |
| 116 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/UbHmNOqiKX4ZjaDZOKi0Q |
146 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WSsSTNOfNnTSyP3AGS9NXA |
| 117 |
|
147 |
|
| 118 |
|
148 |
|
| 119 |
sub koha_object_class { |
149 |
sub koha_object_class { |
| 120 |
- |
|
|