2 package Koha::Schema::Result::Accountline;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Accountline
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<accountlines>
22 __PACKAGE__->table("accountlines");
26 =head2 accountlines_id
59 datetime_undef_if_invalid: 1
90 =head2 amountoutstanding
104 data_type: 'timestamp'
105 datetime_undef_if_invalid: 1
106 default_value: current_timestamp
111 data_type: 'mediumtext'
121 __PACKAGE__->add_columns(
123 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
125 { data_type => "integer", is_nullable => 1 },
128 data_type => "integer",
134 { data_type => "smallint", default_value => 0, is_nullable => 0 },
136 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
138 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
140 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
142 { data_type => "longtext", is_nullable => 1 },
144 { data_type => "longtext", is_nullable => 1 },
146 { data_type => "varchar", is_nullable => 1, size => 5 },
148 { data_type => "varchar", is_nullable => 1, size => 80 },
150 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
152 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
155 data_type => "timestamp",
156 datetime_undef_if_invalid => 1,
157 default_value => \"current_timestamp",
161 { data_type => "mediumtext", is_nullable => 1 },
163 { data_type => "integer", is_nullable => 1 },
170 =item * L</accountlines_id>
176 __PACKAGE__->set_primary_key("accountlines_id");
180 =head2 account_offsets_credits
184 Related object: L<Koha::Schema::Result::AccountOffset>
188 __PACKAGE__->has_many(
189 "account_offsets_credits",
190 "Koha::Schema::Result::AccountOffset",
191 { "foreign.credit_id" => "self.accountlines_id" },
192 { cascade_copy => 0, cascade_delete => 0 },
195 =head2 account_offsets_debits
199 Related object: L<Koha::Schema::Result::AccountOffset>
203 __PACKAGE__->has_many(
204 "account_offsets_debits",
205 "Koha::Schema::Result::AccountOffset",
206 { "foreign.debit_id" => "self.accountlines_id" },
207 { cascade_copy => 0, cascade_delete => 0 },
210 =head2 borrowernumber
214 Related object: L<Koha::Schema::Result::Borrower>
218 __PACKAGE__->belongs_to(
220 "Koha::Schema::Result::Borrower",
221 { borrowernumber => "borrowernumber" },
222 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
229 Related object: L<Koha::Schema::Result::Item>
233 __PACKAGE__->belongs_to(
235 "Koha::Schema::Result::Item",
236 { itemnumber => "itemnumber" },
240 on_delete => "SET NULL",
241 on_update => "SET NULL",
246 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-04-19 12:18:02
247 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FUX/e/s202yrUtP3c13lfw
250 # You can replace this text with custom content, and it will be preserved on regeneration