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
127 __PACKAGE__->add_columns(
129 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
131 { data_type => "integer", is_nullable => 1 },
134 data_type => "integer",
140 { data_type => "smallint", default_value => 0, is_nullable => 0 },
142 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
144 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
146 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
148 { data_type => "mediumtext", is_nullable => 1 },
150 { data_type => "mediumtext", is_nullable => 1 },
152 { data_type => "varchar", is_nullable => 1, size => 5 },
154 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
156 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
159 data_type => "timestamp",
160 datetime_undef_if_invalid => 1,
161 default_value => \"current_timestamp",
165 { data_type => "integer", default_value => 0, is_nullable => 0 },
167 { data_type => "integer", default_value => 0, is_nullable => 0 },
169 { data_type => "text", is_nullable => 1 },
171 { data_type => "integer", is_nullable => 1 },
178 =item * L</accountlines_id>
184 __PACKAGE__->set_primary_key("accountlines_id");
188 =head2 account_offsets_credits
192 Related object: L<Koha::Schema::Result::AccountOffset>
196 __PACKAGE__->has_many(
197 "account_offsets_credits",
198 "Koha::Schema::Result::AccountOffset",
199 { "foreign.credit_id" => "self.accountlines_id" },
200 { cascade_copy => 0, cascade_delete => 0 },
203 =head2 account_offsets_debits
207 Related object: L<Koha::Schema::Result::AccountOffset>
211 __PACKAGE__->has_many(
212 "account_offsets_debits",
213 "Koha::Schema::Result::AccountOffset",
214 { "foreign.debit_id" => "self.accountlines_id" },
215 { cascade_copy => 0, cascade_delete => 0 },
218 =head2 borrowernumber
222 Related object: L<Koha::Schema::Result::Borrower>
226 __PACKAGE__->belongs_to(
228 "Koha::Schema::Result::Borrower",
229 { borrowernumber => "borrowernumber" },
230 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
237 Related object: L<Koha::Schema::Result::Item>
241 __PACKAGE__->belongs_to(
243 "Koha::Schema::Result::Item",
244 { itemnumber => "itemnumber" },
248 on_delete => "SET NULL",
249 on_update => "SET NULL",
254 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-20 16:27:04
255 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gCCyA5hOqI3EG3bIxsgpKA
258 # You can replace this text with custom content, and it will be preserved on regeneration