2 package Koha
::Schema
::Result
::Serial
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Serial
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<serial>
22 __PACKAGE__
->table("serial");
47 default_value: (empty string)
78 datetime_undef_if_invalid: 1
83 data_type: 'mediumtext'
89 datetime_undef_if_invalid: 1
92 =head2 publisheddatetext
101 datetime_undef_if_invalid: 1
112 data_type: 'mediumtext'
117 __PACKAGE__
->add_columns(
119 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
121 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
123 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
125 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
127 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
129 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
131 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
133 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
135 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
137 { data_type
=> "mediumtext", is_nullable
=> 1 },
139 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
141 { data_type
=> "varchar", is_nullable
=> 1, size
=> 100 },
143 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
145 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 1 },
147 { data_type
=> "mediumtext", is_nullable
=> 1 },
160 __PACKAGE__
->set_primary_key("serialid");
168 Related object: L<Koha::Schema::Result::Biblio>
172 __PACKAGE__
->belongs_to(
174 "Koha::Schema::Result::Biblio",
175 { biblionumber
=> "biblionumber" },
176 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
183 Related object: L<Koha::Schema::Result::Serialitem>
187 __PACKAGE__
->has_many(
189 "Koha::Schema::Result::Serialitem",
190 { "foreign.serialid" => "self.serialid" },
191 { cascade_copy
=> 0, cascade_delete
=> 0 },
194 =head2 subscriptionid
198 Related object: L<Koha::Schema::Result::Subscription>
202 __PACKAGE__
->belongs_to(
204 "Koha::Schema::Result::Subscription",
205 { subscriptionid
=> "subscriptionid" },
206 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
210 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-17 09:15:51
211 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ktCCJzkgRUFpYu857WQONA
214 # You can replace this text with custom code or comments, and it will be preserved on regeneration