2 package Koha
::Schema
::Result
::CreatorBatch
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CreatorBatch
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<creator_batches>
22 __PACKAGE__
->table("creator_batches");
40 data_type: 'mediumtext'
49 =head2 borrower_number
57 data_type: 'timestamp'
58 datetime_undef_if_invalid: 1
59 default_value: current_timestamp
73 default_value: 'Labels'
79 __PACKAGE__
->add_columns(
81 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
83 { data_type
=> "integer", default_value
=> 1, is_nullable
=> 0 },
85 { data_type
=> "mediumtext", is_nullable
=> 1 },
87 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
89 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
92 data_type
=> "timestamp",
93 datetime_undef_if_invalid
=> 1,
94 default_value
=> \"current_timestamp
",
99 data_type => "varchar
",
100 default_value => "NB
",
108 default_value => "Labels
",
124 __PACKAGE__->set_primary_key("label_id
");
128 =head2 borrower_number
132 Related object: L<Koha::Schema::Result::Borrower>
136 __PACKAGE__->belongs_to(
138 "Koha
::Schema
::Result
::Borrower
",
139 { borrowernumber => "borrower_number
" },
143 on_delete => "CASCADE
",
144 on_update => "CASCADE
",
152 Related object: L<Koha::Schema::Result::Branch>
156 __PACKAGE__->belongs_to(
158 "Koha
::Schema
::Result
::Branch
",
159 { branchcode => "branch_code
" },
160 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "RESTRICT
" },
167 Related object: L<Koha::Schema::Result::Item>
171 __PACKAGE__->belongs_to(
173 "Koha
::Schema
::Result
::Item
",
174 { itemnumber => "item_number
" },
178 on_delete => "CASCADE
",
179 on_update => "RESTRICT
",
184 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-24 17:34:29
185 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SOMkaJ6IxGtnqtPVFpNtg
188 # You can replace this text with custom content, and it will be preserved on regeneration