2 package Koha
::Schema
::Result
::Serialitem
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Serialitem
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<serialitems>
22 __PACKAGE__
->table("serialitems");
40 __PACKAGE__
->add_columns(
42 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
44 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
47 =head1 UNIQUE CONSTRAINTS
49 =head2 C<serialitemsidx>
53 =item * L</itemnumber>
59 __PACKAGE__
->add_unique_constraint("serialitemsidx", ["itemnumber"]);
67 Related object: L<Koha::Schema::Result::Item>
71 __PACKAGE__
->belongs_to(
73 "Koha::Schema::Result::Item",
74 { itemnumber
=> "itemnumber" },
75 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
82 Related object: L<Koha::Schema::Result::Serial>
86 __PACKAGE__
->belongs_to(
88 "Koha::Schema::Result::Serial",
89 { serialid
=> "serialid" },
90 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
94 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JZcKy2QIB2c39vgpntWahQ
98 # You can replace this text with custom content, and it will be preserved on regeneration