Bug 11577: Add an automatic renewal cronjob
[koha.git] / Koha / Schema / Result / AqbudgetsPlanning.pm
1 use utf8;
2 package Koha::Schema::Result::AqbudgetsPlanning;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::AqbudgetsPlanning
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqbudgets_planning>
19
20 =cut
21
22 __PACKAGE__->table("aqbudgets_planning");
23
24 =head1 ACCESSORS
25
26 =head2 plan_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 budget_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 budget_period_id
39
40   data_type: 'integer'
41   is_nullable: 0
42
43 =head2 estimated_amount
44
45   data_type: 'decimal'
46   is_nullable: 1
47   size: [28,6]
48
49 =head2 authcat
50
51   data_type: 'varchar'
52   is_nullable: 0
53   size: 30
54
55 =head2 authvalue
56
57   data_type: 'varchar'
58   is_nullable: 0
59   size: 30
60
61 =head2 display
62
63   data_type: 'tinyint'
64   default_value: 1
65   is_nullable: 1
66
67 =cut
68
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 },
84 );
85
86 =head1 PRIMARY KEY
87
88 =over 4
89
90 =item * L</plan_id>
91
92 =back
93
94 =cut
95
96 __PACKAGE__->set_primary_key("plan_id");
97
98 =head1 RELATIONS
99
100 =head2 budget
101
102 Type: belongs_to
103
104 Related object: L<Koha::Schema::Result::Aqbudget>
105
106 =cut
107
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" },
113 );
114
115
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
118
119
120 # You can replace this text with custom content, and it will be preserved on regeneration
121 1;