Bug 22417: Remove record_type from BatchUpdate*
[koha.git] / Koha / Schema / Result / Illrequestattribute.pm
1 use utf8;
2 package Koha::Schema::Result::Illrequestattribute;
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::Illrequestattribute
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<illrequestattributes>
19
20 =cut
21
22 __PACKAGE__->table("illrequestattributes");
23
24 =head1 ACCESSORS
25
26 =head2 illrequest_id
27
28   data_type: 'bigint'
29   extra: {unsigned => 1}
30   is_foreign_key: 1
31   is_nullable: 0
32
33 =head2 type
34
35   data_type: 'varchar'
36   is_nullable: 0
37   size: 200
38
39 =head2 value
40
41   data_type: 'mediumtext'
42   is_nullable: 0
43
44 =head2 readonly
45
46   data_type: 'tinyint'
47   default_value: 1
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "illrequest_id",
54   {
55     data_type => "bigint",
56     extra => { unsigned => 1 },
57     is_foreign_key => 1,
58     is_nullable => 0,
59   },
60   "type",
61   { data_type => "varchar", is_nullable => 0, size => 200 },
62   "value",
63   { data_type => "mediumtext", is_nullable => 0 },
64   "readonly",
65   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
66 );
67
68 =head1 PRIMARY KEY
69
70 =over 4
71
72 =item * L</illrequest_id>
73
74 =item * L</type>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("illrequest_id", "type");
81
82 =head1 RELATIONS
83
84 =head2 illrequest
85
86 Type: belongs_to
87
88 Related object: L<Koha::Schema::Result::Illrequest>
89
90 =cut
91
92 __PACKAGE__->belongs_to(
93   "illrequest",
94   "Koha::Schema::Result::Illrequest",
95   { illrequest_id => "illrequest_id" },
96   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97 );
98
99
100 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-05-17 09:17:53
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sFY1giVMz5AkXCPidhyGjw
102
103 __PACKAGE__->add_columns(
104     '+readonly' => { is_boolean => 1 }
105 );
106
107 1;