Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / Stockrotationrota.pm
bloba71963562416142e015e8d11aad57e5877f0fc8a
1 use utf8;
2 package Koha::Schema::Result::Stockrotationrota;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Stockrotationrota
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<stockrotationrotas>
20 =cut
22 __PACKAGE__->table("stockrotationrotas");
24 =head1 ACCESSORS
26 =head2 rota_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 title
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 100
38 =head2 description
40 data_type: 'text'
41 is_nullable: 0
43 =head2 cyclical
45 data_type: 'tinyint'
46 default_value: 0
47 is_nullable: 0
49 =head2 active
51 data_type: 'tinyint'
52 default_value: 0
53 is_nullable: 0
55 =cut
57 __PACKAGE__->add_columns(
58 "rota_id",
59 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60 "title",
61 { data_type => "varchar", is_nullable => 0, size => 100 },
62 "description",
63 { data_type => "text", is_nullable => 0 },
64 "cyclical",
65 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
66 "active",
67 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
70 =head1 PRIMARY KEY
72 =over 4
74 =item * L</rota_id>
76 =back
78 =cut
80 __PACKAGE__->set_primary_key("rota_id");
82 =head1 RELATIONS
84 =head2 stockrotationstages
86 Type: has_many
88 Related object: L<Koha::Schema::Result::Stockrotationstage>
90 =cut
92 __PACKAGE__->has_many(
93 "stockrotationstages",
94 "Koha::Schema::Result::Stockrotationstage",
95 { "foreign.rota_id" => "self.rota_id" },
96 { cascade_copy => 0, cascade_delete => 0 },
100 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 15:50:42
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lTIDZ+w+46Kniub5Tqpqlg
103 __PACKAGE__->add_columns(
104 '+cyclical' => { is_boolean => 1 },
105 '+active' => { is_boolean => 1 }
108 sub koha_object_class {
109 'Koha::StockRotationRota';
111 sub koha_objects_class {
112 'Koha::StockRotationRotas';