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 borrowernumber
192 Related object: L<Koha::Schema::Result::Borrower>
196 __PACKAGE__->belongs_to(
198 "Koha::Schema::Result::Borrower",
199 { borrowernumber => "borrowernumber" },
200 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
207 Related object: L<Koha::Schema::Result::Item>
211 __PACKAGE__->belongs_to(
213 "Koha::Schema::Result::Item",
214 { itemnumber => "itemnumber" },
218 on_delete => "SET NULL",
219 on_update => "SET NULL",
224 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-26 17:18:34
225 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RCQohhphtg+0+RszpB4wLg
228 # You can replace this text with custom content, and it will be preserved on regeneration