1 package Koha::Schema::Result::Accountline;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Accountline
18 __PACKAGE__->table("accountlines");
22 =head2 accountlines_id
60 data_type: 'mediumtext'
65 data_type: 'mediumtext'
74 =head2 amountoutstanding
88 data_type: 'timestamp'
89 default_value: current_timestamp
116 __PACKAGE__->add_columns(
118 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
121 data_type => "integer",
127 { data_type => "smallint", default_value => 0, is_nullable => 0 },
129 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
131 { data_type => "date", is_nullable => 1 },
133 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
135 { data_type => "mediumtext", is_nullable => 1 },
137 { data_type => "mediumtext", is_nullable => 1 },
139 { data_type => "varchar", is_nullable => 1, size => 5 },
141 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
143 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
146 data_type => "timestamp",
147 default_value => \"current_timestamp",
151 { data_type => "integer", default_value => 0, is_nullable => 0 },
153 { data_type => "integer", default_value => 0, is_nullable => 0 },
155 { data_type => "text", is_nullable => 1 },
157 { data_type => "integer", is_nullable => 1 },
159 __PACKAGE__->set_primary_key("accountlines_id");
163 =head2 borrowernumber
167 Related object: L<Koha::Schema::Result::Borrower>
171 __PACKAGE__->belongs_to(
173 "Koha::Schema::Result::Borrower",
174 { borrowernumber => "borrowernumber" },
175 { on_delete => "CASCADE", on_update => "CASCADE" },
182 Related object: L<Koha::Schema::Result::Item>
186 __PACKAGE__->belongs_to(
188 "Koha::Schema::Result::Item",
189 { itemnumber => "itemnumber" },
190 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
194 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
195 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+AbxKjLUR7hQsP2dpsyAPw
198 # You can replace this text with custom content, and it will be preserved on regeneration