2 package Koha
::Schema
::Result
::AqbudgetsPlanning
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AqbudgetsPlanning
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<aqbudgets_planning>
22 __PACKAGE__
->table("aqbudgets_planning");
38 =head2 budget_period_id
43 =head2 estimated_amount
69 __PACKAGE__
->add_columns(
71 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
73 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
75 { data_type
=> "integer", is_nullable
=> 0 },
77 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
79 { data_type
=> "varchar", is_nullable
=> 0, size
=> 30 },
81 { data_type
=> "varchar", is_nullable
=> 0, size
=> 30 },
83 { data_type
=> "tinyint", default_value
=> 1, is_nullable
=> 1 },
96 __PACKAGE__
->set_primary_key("plan_id");
104 Related object: L<Koha::Schema::Result::Aqbudget>
108 __PACKAGE__
->belongs_to(
110 "Koha::Schema::Result::Aqbudget",
111 { budget_id
=> "budget_id" },
112 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
116 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7nhWIqgezc+W8sHqJkXCbQ
120 # You can replace this text with custom content, and it will be preserved on regeneration