Galen Charlton
11 years ago
3 changed files with 428 additions and 139 deletions
@ -0,0 +1,116 @@ |
|||
use utf8; |
|||
package Koha::Schema::Result::SubscriptionFrequency; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::SubscriptionFrequency |
|||
|
|||
=cut |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
=head1 TABLE: C<subscription_frequencies> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("subscription_frequencies"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 description |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 0 |
|||
|
|||
=head2 displayorder |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 unit |
|||
|
|||
data_type: 'enum' |
|||
extra: {list => ["day","week","month","year"]} |
|||
is_nullable: 1 |
|||
|
|||
=head2 unitsperissue |
|||
|
|||
data_type: 'integer' |
|||
default_value: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 issuesperunit |
|||
|
|||
data_type: 'integer' |
|||
default_value: 1 |
|||
is_nullable: 0 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"description", |
|||
{ data_type => "text", is_nullable => 0 }, |
|||
"displayorder", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"unit", |
|||
{ |
|||
data_type => "enum", |
|||
extra => { list => ["day", "week", "month", "year"] }, |
|||
is_nullable => 1, |
|||
}, |
|||
"unitsperissue", |
|||
{ data_type => "integer", default_value => 1, is_nullable => 0 }, |
|||
"issuesperunit", |
|||
{ data_type => "integer", default_value => 1, is_nullable => 0 }, |
|||
); |
|||
|
|||
=head1 PRIMARY KEY |
|||
|
|||
=over 4 |
|||
|
|||
=item * L</id> |
|||
|
|||
=back |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->set_primary_key("id"); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 subscriptions |
|||
|
|||
Type: has_many |
|||
|
|||
Related object: L<Koha::Schema::Result::Subscription> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->has_many( |
|||
"subscriptions", |
|||
"Koha::Schema::Result::Subscription", |
|||
{ "foreign.periodicity" => "self.id" }, |
|||
{ cascade_copy => 0, cascade_delete => 0 }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kOm4+reRTMxUBfVJl4UPig |
|||
|
|||
|
|||
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
|||
1; |
@ -0,0 +1,236 @@ |
|||
use utf8; |
|||
package Koha::Schema::Result::SubscriptionNumberpattern; |
|||
|
|||
# Created by DBIx::Class::Schema::Loader |
|||
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|||
|
|||
=head1 NAME |
|||
|
|||
Koha::Schema::Result::SubscriptionNumberpattern |
|||
|
|||
=cut |
|||
|
|||
use strict; |
|||
use warnings; |
|||
|
|||
use base 'DBIx::Class::Core'; |
|||
|
|||
=head1 TABLE: C<subscription_numberpatterns> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->table("subscription_numberpatterns"); |
|||
|
|||
=head1 ACCESSORS |
|||
|
|||
=head2 id |
|||
|
|||
data_type: 'integer' |
|||
is_auto_increment: 1 |
|||
is_nullable: 0 |
|||
|
|||
=head2 label |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 0 |
|||
size: 255 |
|||
|
|||
=head2 displayorder |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 description |
|||
|
|||
data_type: 'text' |
|||
is_nullable: 0 |
|||
|
|||
=head2 numberingmethod |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 0 |
|||
size: 255 |
|||
|
|||
=head2 label1 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 add1 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 every1 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 whenmorethan1 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 setto1 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 numbering1 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 label2 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 add2 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 every2 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 whenmorethan2 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 setto2 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 numbering2 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 label3 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=head2 add3 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 every3 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 whenmorethan3 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 setto3 |
|||
|
|||
data_type: 'integer' |
|||
is_nullable: 1 |
|||
|
|||
=head2 numbering3 |
|||
|
|||
data_type: 'varchar' |
|||
is_nullable: 1 |
|||
size: 255 |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->add_columns( |
|||
"id", |
|||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
|||
"label", |
|||
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
|||
"displayorder", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"description", |
|||
{ data_type => "text", is_nullable => 0 }, |
|||
"numberingmethod", |
|||
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
|||
"label1", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"add1", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"every1", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"whenmorethan1", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"setto1", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"numbering1", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"label2", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"add2", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"every2", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"whenmorethan2", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"setto2", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"numbering2", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"label3", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
"add3", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"every3", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"whenmorethan3", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"setto3", |
|||
{ data_type => "integer", is_nullable => 1 }, |
|||
"numbering3", |
|||
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
|||
); |
|||
|
|||
=head1 PRIMARY KEY |
|||
|
|||
=over 4 |
|||
|
|||
=item * L</id> |
|||
|
|||
=back |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->set_primary_key("id"); |
|||
|
|||
=head1 RELATIONS |
|||
|
|||
=head2 subscriptions |
|||
|
|||
Type: has_many |
|||
|
|||
Related object: L<Koha::Schema::Result::Subscription> |
|||
|
|||
=cut |
|||
|
|||
__PACKAGE__->has_many( |
|||
"subscriptions", |
|||
"Koha::Schema::Result::Subscription", |
|||
{ "foreign.numberpattern" => "self.id" }, |
|||
{ cascade_copy => 0, cascade_delete => 0 }, |
|||
); |
|||
|
|||
|
|||
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01 |
|||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MtVt8WNuJfkeJ2FVoghG5A |
|||
|
|||
|
|||
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
|||
1; |
Loading…
Reference in new issue