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");
35 default_value: (empty string)
42 default_value: (empty string)
49 default_value: (empty string)
62 datetime_undef_if_invalid: 1
73 datetime_undef_if_invalid: 1
79 datetime_undef_if_invalid: 1
89 __PACKAGE__->add_columns(
91 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
95 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
97 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
99 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
101 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
103 { data_type => "text", is_nullable => 1 },
105 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
107 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
109 { data_type => "text", is_nullable => 1 },
122 __PACKAGE__->set_primary_key("serialid");
130 Related object: L<Koha::Schema::Result::Serialitem>
134 __PACKAGE__->has_many(
136 "Koha::Schema::Result::Serialitem",
137 { "foreign.serialid" => "self.serialid" },
138 { cascade_copy => 0, cascade_delete => 0 },
142 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xloe1BJrVD7sU07AnA4P2g
146 # You can replace this text with custom content, and it will be preserved on regeneration