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");
44 =head2 borrower_number
52 data_type: 'timestamp'
53 datetime_undef_if_invalid: 1
54 default_value: current_timestamp
68 default_value: 'Labels'
74 __PACKAGE__->add_columns(
76 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 { data_type => "integer", default_value => 1, is_nullable => 0 },
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
82 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
85 data_type => "timestamp",
86 datetime_undef_if_invalid => 1,
87 default_value => \"current_timestamp",
92 data_type => "varchar",
93 default_value => "NB",
101 default_value => "Labels",
117 __PACKAGE__->set_primary_key("label_id");
121 =head2 borrower_number
125 Related object: L<Koha::Schema::Result::Borrower>
129 __PACKAGE__->belongs_to(
131 "Koha::Schema::Result::Borrower",
132 { borrowernumber => "borrower_number" },
136 on_delete => "CASCADE",
137 on_update => "CASCADE",
145 Related object: L<Koha::Schema::Result::Branch>
149 __PACKAGE__->belongs_to(
151 "Koha::Schema::Result::Branch",
152 { branchcode => "branch_code" },
153 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
160 Related object: L<Koha::Schema::Result::Item>
164 __PACKAGE__->belongs_to(
166 "Koha::Schema::Result::Item",
167 { itemnumber => "item_number" },
171 on_delete => "CASCADE",
172 on_update => "RESTRICT",
177 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
178 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:x9PaYKzfg8jT6zFP4IwhBA
181 # You can replace this text with custom content, and it will be preserved on regeneration