Bug 4461: dbic schema update
[koha.git] / Koha / Schema / Result / AqbudgetsPlanning.pm
blob990e04effed55ada6daf83c5b13590fa90a8de72
1 use utf8;
2 package Koha::Schema::Result::AqbudgetsPlanning;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AqbudgetsPlanning
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbudgets_planning>
20 =cut
22 __PACKAGE__->table("aqbudgets_planning");
24 =head1 ACCESSORS
26 =head2 plan_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 budget_id
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 budget_period_id
40 data_type: 'integer'
41 is_nullable: 0
43 =head2 estimated_amount
45 data_type: 'decimal'
46 is_nullable: 1
47 size: [28,6]
49 =head2 authcat
51 data_type: 'varchar'
52 is_nullable: 0
53 size: 30
55 =head2 authvalue
57 data_type: 'varchar'
58 is_nullable: 0
59 size: 30
61 =head2 display
63 data_type: 'tinyint'
64 default_value: 1
65 is_nullable: 1
67 =cut
69 __PACKAGE__->add_columns(
70 "plan_id",
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 "budget_id",
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74 "budget_period_id",
75 { data_type => "integer", is_nullable => 0 },
76 "estimated_amount",
77 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
78 "authcat",
79 { data_type => "varchar", is_nullable => 0, size => 30 },
80 "authvalue",
81 { data_type => "varchar", is_nullable => 0, size => 30 },
82 "display",
83 { data_type => "tinyint", default_value => 1, is_nullable => 1 },
86 =head1 PRIMARY KEY
88 =over 4
90 =item * L</plan_id>
92 =back
94 =cut
96 __PACKAGE__->set_primary_key("plan_id");
98 =head1 RELATIONS
100 =head2 budget
102 Type: belongs_to
104 Related object: L<Koha::Schema::Result::Aqbudget>
106 =cut
108 __PACKAGE__->belongs_to(
109 "budget",
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