Bug 12446: (QA follow-up) Minor kohastructure.sql fix
[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 ILL request number
34
35 =head2 type
36
37   data_type: 'varchar'
38   is_nullable: 0
39   size: 200
40
41 API ILL property name
42
43 =head2 value
44
45   data_type: 'mediumtext'
46   is_nullable: 0
47
48 API ILL property value
49
50 =head2 readonly
51
52   data_type: 'tinyint'
53   default_value: 1
54   is_nullable: 0
55
56 Is this attribute read only
57
58 =cut
59
60 __PACKAGE__->add_columns(
61   "illrequest_id",
62   {
63     data_type => "bigint",
64     extra => { unsigned => 1 },
65     is_foreign_key => 1,
66     is_nullable => 0,
67   },
68   "type",
69   { data_type => "varchar", is_nullable => 0, size => 200 },
70   "value",
71   { data_type => "mediumtext", is_nullable => 0 },
72   "readonly",
73   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
74 );
75
76 =head1 PRIMARY KEY
77
78 =over 4
79
80 =item * L</illrequest_id>
81
82 =item * L</type>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->set_primary_key("illrequest_id", "type");
89
90 =head1 RELATIONS
91
92 =head2 illrequest
93
94 Type: belongs_to
95
96 Related object: L<Koha::Schema::Result::Illrequest>
97
98 =cut
99
100 __PACKAGE__->belongs_to(
101   "illrequest",
102   "Koha::Schema::Result::Illrequest",
103   { illrequest_id => "illrequest_id" },
104   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 );
106
107
108 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qNhL5kiGVR8WroCHQY5DyQ
110
111 __PACKAGE__->add_columns(
112     '+readonly' => { is_boolean => 1 }
113 );
114
115 1;