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
85 =head2 amountoutstanding
99 data_type: 'timestamp'
100 datetime_undef_if_invalid: 1
101 default_value: current_timestamp
106 data_type: 'mediumtext'
116 __PACKAGE__->add_columns(
118 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
120 { data_type => "integer", is_nullable => 1 },
123 data_type => "integer",
129 { data_type => "smallint", default_value => 0, is_nullable => 0 },
131 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
133 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
135 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
137 { data_type => "longtext", is_nullable => 1 },
139 { data_type => "varchar", is_nullable => 1, size => 5 },
141 { data_type => "varchar", is_nullable => 1, size => 80 },
143 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
145 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
148 data_type => "timestamp",
149 datetime_undef_if_invalid => 1,
150 default_value => \"current_timestamp",
154 { data_type => "mediumtext", is_nullable => 1 },
156 { data_type => "integer", is_nullable => 1 },
163 =item * L</accountlines_id>
169 __PACKAGE__->set_primary_key("accountlines_id");
173 =head2 account_offsets_credits
177 Related object: L<Koha::Schema::Result::AccountOffset>
181 __PACKAGE__->has_many(
182 "account_offsets_credits",
183 "Koha::Schema::Result::AccountOffset",
184 { "foreign.credit_id" => "self.accountlines_id" },
185 { cascade_copy => 0, cascade_delete => 0 },
188 =head2 account_offsets_debits
192 Related object: L<Koha::Schema::Result::AccountOffset>
196 __PACKAGE__->has_many(
197 "account_offsets_debits",
198 "Koha::Schema::Result::AccountOffset",
199 { "foreign.debit_id" => "self.accountlines_id" },
200 { cascade_copy => 0, cascade_delete => 0 },
203 =head2 borrowernumber
207 Related object: L<Koha::Schema::Result::Borrower>
211 __PACKAGE__->belongs_to(
213 "Koha::Schema::Result::Borrower",
214 { borrowernumber => "borrowernumber" },
215 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
222 Related object: L<Koha::Schema::Result::Item>
226 __PACKAGE__->belongs_to(
228 "Koha::Schema::Result::Item",
229 { itemnumber => "itemnumber" },
233 on_delete => "SET NULL",
234 on_update => "SET NULL",
239 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-16 17:00:24
240 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pygYYKxFDRLX97PyeUeLvg
243 # You can replace this text with custom content, and it will be preserved on regeneration