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
95 __PACKAGE__
->add_columns(
97 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
99 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
101 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
103 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
105 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
107 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
109 { data_type
=> "text", is_nullable
=> 1 },
111 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
113 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
115 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 1 },
117 { data_type
=> "text", is_nullable
=> 1 },
130 __PACKAGE__
->set_primary_key("serialid");
138 Related object: L<Koha::Schema::Result::Serialitem>
142 __PACKAGE__
->has_many(
144 "Koha::Schema::Result::Serialitem",
145 { "foreign.serialid" => "self.serialid" },
146 { cascade_copy
=> 0, cascade_delete
=> 0 },
150 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-10-28 10:10:55
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xscBtY2sJRoXXw7hVPTqCQ
154 # You can replace this text with custom content, and it will be preserved on regeneration