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
70 data_type: 'mediumtext'
75 data_type: 'mediumtext'
84 =head2 amountoutstanding
98 data_type: 'timestamp'
99 datetime_undef_if_invalid: 1
100 default_value: current_timestamp
115 __PACKAGE__->add_columns(
117 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
119 { data_type => "integer", is_nullable => 1 },
122 data_type => "integer",
128 { data_type => "smallint", default_value => 0, is_nullable => 0 },
130 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
132 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
134 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
136 { data_type => "mediumtext", is_nullable => 1 },
138 { data_type => "mediumtext", is_nullable => 1 },
140 { data_type => "varchar", is_nullable => 1, size => 5 },
142 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
144 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
147 data_type => "timestamp",
148 datetime_undef_if_invalid => 1,
149 default_value => \"current_timestamp",
153 { data_type => "text", is_nullable => 1 },
155 { data_type => "integer", is_nullable => 1 },
162 =item * L</accountlines_id>
168 __PACKAGE__->set_primary_key("accountlines_id");
172 =head2 account_offsets_credits
176 Related object: L<Koha::Schema::Result::AccountOffset>
180 __PACKAGE__->has_many(
181 "account_offsets_credits",
182 "Koha::Schema::Result::AccountOffset",
183 { "foreign.credit_id" => "self.accountlines_id" },
184 { cascade_copy => 0, cascade_delete => 0 },
187 =head2 account_offsets_debits
191 Related object: L<Koha::Schema::Result::AccountOffset>
195 __PACKAGE__->has_many(
196 "account_offsets_debits",
197 "Koha::Schema::Result::AccountOffset",
198 { "foreign.debit_id" => "self.accountlines_id" },
199 { cascade_copy => 0, cascade_delete => 0 },
202 =head2 borrowernumber
206 Related object: L<Koha::Schema::Result::Borrower>
210 __PACKAGE__->belongs_to(
212 "Koha::Schema::Result::Borrower",
213 { borrowernumber => "borrowernumber" },
214 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
221 Related object: L<Koha::Schema::Result::Item>
225 __PACKAGE__->belongs_to(
227 "Koha::Schema::Result::Item",
228 { itemnumber => "itemnumber" },
232 on_delete => "SET NULL",
233 on_update => "SET NULL",
238 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-23 12:27:23
239 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S70xVMIJONd30d0kDrgF2A
242 # You can replace this text with custom content, and it will be preserved on regeneration