+use utf8;
package Koha::Schema::Result::Aqbudget;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
+=head1 NAME
+
+Koha::Schema::Result::Aqbudget
+
+=cut
+
use strict;
use warnings;
use base 'DBIx::Class::Core';
-
-=head1 NAME
-
-Koha::Schema::Result::Aqbudget
+=head1 TABLE: C<aqbudgets>
=cut
=head2 timestamp
data_type: 'timestamp'
+ datetime_undef_if_invalid: 1
default_value: current_timestamp
is_nullable: 0
{ data_type => "mediumtext", is_nullable => 1 },
"timestamp",
{
- data_type => "timestamp",
+ data_type => "timestamp",
+ datetime_undef_if_invalid => 1,
default_value => \"current_timestamp",
- is_nullable => 0,
+ is_nullable => 0,
},
"budget_period_id",
{ data_type => "integer", is_nullable => 1 },
"budget_permission",
{ data_type => "integer", default_value => 0, is_nullable => 1 },
);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</budget_id>
+
+=back
+
+=cut
+
__PACKAGE__->set_primary_key("budget_id");
=head1 RELATIONS
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+ "aqorders",
+ "Koha::Schema::Result::Aqorder",
+ { "foreign.budget_id" => "self.budget_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 suggestions
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Suggestion>
+
+=cut
+
+__PACKAGE__->has_many(
+ "suggestions",
+ "Koha::Schema::Result::Suggestion",
+ { "foreign.budgetid" => "self.budget_id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 borrowernumbers
+
+Type: many_to_many
+
+Composing rels: L</aqbudgetborrowers> -> borrowernumber
+
+=cut
+
+__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
+
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qMHMlKGUX5xPXM2fmjnBgQ
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZKnWPCMNFUm/TzeBxeDZA
# You can replace this text with custom content, and it will be preserved on regeneration