2 package Koha
::Schema
::Result
::Discharge
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Discharge
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<discharges>
22 __PACKAGE__
->table("discharges");
40 data_type: 'timestamp'
41 datetime_undef_if_invalid: 1
46 data_type: 'timestamp'
47 datetime_undef_if_invalid: 1
52 __PACKAGE__
->add_columns(
54 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
56 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
59 data_type
=> "timestamp",
60 datetime_undef_if_invalid
=> 1,
65 data_type
=> "timestamp",
66 datetime_undef_if_invalid
=> 1,
75 =item * L</discharge_id>
81 __PACKAGE__
->set_primary_key("discharge_id");
89 Related object: L<Koha::Schema::Result::Borrower>
93 __PACKAGE__
->belongs_to(
95 "Koha::Schema::Result::Borrower",
96 { borrowernumber
=> "borrower" },
100 on_delete
=> "CASCADE",
101 on_update
=> "CASCADE",
106 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-28 12:09:06
107 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wc3EkS92v98jXtena5VaUQ
110 # You can replace this text with custom code or comments, and it will be preserved on regeneration