1 package Koha::Schema::Result::CreatorBatch;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::CreatorBatch
18 __PACKAGE__->table("creator_batches");
40 =head2 borrower_number
48 data_type: 'timestamp'
49 default_value: current_timestamp
63 default_value: 'Labels'
69 __PACKAGE__->add_columns(
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73 { data_type => "integer", default_value => 1, is_nullable => 0 },
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
77 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
80 data_type => "timestamp",
81 default_value => \"current_timestamp",
86 data_type => "varchar",
87 default_value => "NB",
95 default_value => "Labels",
100 __PACKAGE__->set_primary_key("label_id");
104 =head2 borrower_number
108 Related object: L<Koha::Schema::Result::Borrower>
112 __PACKAGE__->belongs_to(
114 "Koha::Schema::Result::Borrower",
115 { borrowernumber => "borrower_number" },
116 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
123 Related object: L<Koha::Schema::Result::Branch>
127 __PACKAGE__->belongs_to(
129 "Koha::Schema::Result::Branch",
130 { branchcode => "branch_code" },
131 { on_delete => "CASCADE", on_update => "CASCADE" },
138 Related object: L<Koha::Schema::Result::Item>
142 __PACKAGE__->belongs_to(
144 "Koha::Schema::Result::Item",
145 { itemnumber => "item_number" },
146 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
150 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ei9dbdCUspCrRrhIBHQG6w
154 # You can replace this text with custom content, and it will be preserved on regeneration