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
54 datetime_undef_if_invalid: 1
65 data_type: 'mediumtext'
70 data_type: 'mediumtext'
79 =head2 amountoutstanding
93 data_type: 'timestamp'
94 datetime_undef_if_invalid: 1
95 default_value: current_timestamp
122 __PACKAGE__->add_columns(
124 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
127 data_type => "integer",
133 { data_type => "smallint", default_value => 0, is_nullable => 0 },
135 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
137 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
139 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
141 { data_type => "mediumtext", is_nullable => 1 },
143 { data_type => "mediumtext", is_nullable => 1 },
145 { data_type => "varchar", is_nullable => 1, size => 5 },
147 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
149 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
152 data_type => "timestamp",
153 datetime_undef_if_invalid => 1,
154 default_value => \"current_timestamp",
158 { data_type => "integer", default_value => 0, is_nullable => 0 },
160 { data_type => "integer", default_value => 0, is_nullable => 0 },
162 { data_type => "text", is_nullable => 1 },
164 { data_type => "integer", is_nullable => 1 },
171 =item * L</accountlines_id>
177 __PACKAGE__->set_primary_key("accountlines_id");
181 =head2 borrowernumber
185 Related object: L<Koha::Schema::Result::Borrower>
189 __PACKAGE__->belongs_to(
191 "Koha::Schema::Result::Borrower",
192 { borrowernumber => "borrowernumber" },
193 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
200 Related object: L<Koha::Schema::Result::Item>
204 __PACKAGE__->belongs_to(
206 "Koha::Schema::Result::Item",
207 { itemnumber => "itemnumber" },
211 on_delete => "CASCADE",
212 on_update => "CASCADE",
217 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
218 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VLEuOBmnS+xgk7LXAqxtLw
221 # You can replace this text with custom content, and it will be preserved on regeneration