2 package Koha::Schema::Result::SubscriptionNumberpattern;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SubscriptionNumberpattern
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<subscription_numberpatterns>
22 __PACKAGE__->table("subscription_numberpatterns");
48 =head2 numberingmethod
152 __PACKAGE__->add_columns(
154 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
156 { data_type => "varchar", is_nullable => 0, size => 255 },
158 { data_type => "integer", is_nullable => 1 },
160 { data_type => "text", is_nullable => 0 },
162 { data_type => "varchar", is_nullable => 0, size => 255 },
164 { data_type => "varchar", is_nullable => 1, size => 255 },
166 { data_type => "integer", is_nullable => 1 },
168 { data_type => "integer", is_nullable => 1 },
170 { data_type => "integer", is_nullable => 1 },
172 { data_type => "integer", is_nullable => 1 },
174 { data_type => "varchar", is_nullable => 1, size => 255 },
176 { data_type => "varchar", is_nullable => 1, size => 255 },
178 { data_type => "integer", is_nullable => 1 },
180 { data_type => "integer", is_nullable => 1 },
182 { data_type => "integer", is_nullable => 1 },
184 { data_type => "integer", is_nullable => 1 },
186 { data_type => "varchar", is_nullable => 1, size => 255 },
188 { data_type => "varchar", is_nullable => 1, size => 255 },
190 { data_type => "integer", is_nullable => 1 },
192 { data_type => "integer", is_nullable => 1 },
194 { data_type => "integer", is_nullable => 1 },
196 { data_type => "integer", is_nullable => 1 },
198 { data_type => "varchar", is_nullable => 1, size => 255 },
211 __PACKAGE__->set_primary_key("id");
219 Related object: L<Koha::Schema::Result::Subscription>
223 __PACKAGE__->has_many(
225 "Koha::Schema::Result::Subscription",
226 { "foreign.numberpattern" => "self.id" },
227 { cascade_copy => 0, cascade_delete => 0 },
231 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01
232 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MtVt8WNuJfkeJ2FVoghG5A
235 # You can replace this text with custom code or comments, and it will be preserved on regeneration