aae6f69ec2fa4f31440bb0bbf2828d1bd0dfc94b
[koha-equinox.git] / Koha / Schema / Result / Stockrotationrota.pm
1 use utf8;
2 package Koha::Schema::Result::Stockrotationrota;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Stockrotationrota
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<stockrotationrotas>
19
20 =cut
21
22 __PACKAGE__->table("stockrotationrotas");
23
24 =head1 ACCESSORS
25
26 =head2 rota_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 title
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 100
37
38 =head2 description
39
40   data_type: 'text'
41   is_nullable: 0
42
43 =head2 cyclical
44
45   data_type: 'tinyint'
46   default_value: 0
47   is_nullable: 0
48
49 =head2 active
50
51   data_type: 'tinyint'
52   default_value: 0
53   is_nullable: 0
54
55 =cut
56
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 },
68 );
69
70 =head1 PRIMARY KEY
71
72 =over 4
73
74 =item * L</rota_id>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("rota_id");
81
82 =head1 RELATIONS
83
84 =head2 stockrotationstages
85
86 Type: has_many
87
88 Related object: L<Koha::Schema::Result::Stockrotationstage>
89
90 =cut
91
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 },
97 );
98
99
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
102
103 __PACKAGE__->add_columns(
104   '+cyclical' => { is_boolean => 1 },
105   '+active' => { is_boolean => 1 }
106 );
107
108 # You can replace this text with custom code or comments, and it will be preserved on regeneration
109 1;