2 package Koha
::Schema
::Result
::AccountOffset
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AccountOffset
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<account_offsets>
22 __PACKAGE__
->table("account_offsets");
59 data_type: 'timestamp'
60 datetime_undef_if_invalid: 1
61 default_value: current_timestamp
66 __PACKAGE__
->add_columns(
68 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
70 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
72 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
74 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 0, size
=> 16 },
76 { data_type
=> "decimal", is_nullable
=> 0, size
=> [26, 6] },
79 data_type
=> "timestamp",
80 datetime_undef_if_invalid
=> 1,
81 default_value
=> \"current_timestamp
",
96 __PACKAGE__->set_primary_key("id
");
104 Related object: L<Koha::Schema::Result::Accountline>
108 __PACKAGE__->belongs_to(
110 "Koha
::Schema
::Result
::Accountline
",
111 { accountlines_id => "credit_id
" },
115 on_delete => "CASCADE
",
116 on_update => "CASCADE
",
124 Related object: L<Koha::Schema::Result::Accountline>
128 __PACKAGE__->belongs_to(
130 "Koha
::Schema
::Result
::Accountline
",
131 { accountlines_id => "debit_id
" },
135 on_delete => "CASCADE
",
136 on_update => "CASCADE
",
144 Related object: L<Koha::Schema::Result::AccountOffsetType>
148 __PACKAGE__->belongs_to(
150 "Koha
::Schema
::Result
::AccountOffsetType
",
152 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
156 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-20 16:27:04
157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tPPrIug2c7PbDO7LCxCJAA
159 sub koha_object_class {
160 'Koha::Account::Offset';
162 sub koha_objects_class {
163 'Koha::Account::Offsets';