2 package Koha
::Schema
::Result
::SubscriptionFrequency
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SubscriptionFrequency
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<subscription_frequencies>
22 __PACKAGE__
->table("subscription_frequencies");
45 extra: {list => ["day","week","month","year"]}
62 __PACKAGE__
->add_columns(
64 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
66 { data_type
=> "text", is_nullable
=> 0 },
68 { data_type
=> "integer", is_nullable
=> 1 },
72 extra
=> { list
=> ["day", "week", "month", "year"] },
76 { data_type
=> "integer", default_value
=> 1, is_nullable
=> 0 },
78 { data_type
=> "integer", default_value
=> 1, is_nullable
=> 0 },
91 __PACKAGE__
->set_primary_key("id");
99 Related object: L<Koha::Schema::Result::Subscription>
103 __PACKAGE__
->has_many(
105 "Koha::Schema::Result::Subscription",
106 { "foreign.periodicity" => "self.id" },
107 { cascade_copy
=> 0, cascade_delete
=> 0 },
111 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-30 02:42:01
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kOm4+reRTMxUBfVJl4UPig
115 # You can replace this text with custom code or comments, and it will be preserved on regeneration