Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / Illrequestattribute.pm
blob7fa897c3e985b122fb761ab3ac1edf39c9cb8aac
1 use utf8;
2 package Koha::Schema::Result::Illrequestattribute;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Illrequestattribute
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<illrequestattributes>
20 =cut
22 __PACKAGE__->table("illrequestattributes");
24 =head1 ACCESSORS
26 =head2 illrequest_id
28 data_type: 'bigint'
29 extra: {unsigned => 1}
30 is_foreign_key: 1
31 is_nullable: 0
33 =head2 type
35 data_type: 'varchar'
36 is_nullable: 0
37 size: 200
39 =head2 value
41 data_type: 'mediumtext'
42 is_nullable: 0
44 =head2 readonly
46 data_type: 'tinyint'
47 default_value: 1
48 is_nullable: 0
50 =cut
52 __PACKAGE__->add_columns(
53 "illrequest_id",
55 data_type => "bigint",
56 extra => { unsigned => 1 },
57 is_foreign_key => 1,
58 is_nullable => 0,
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 },
68 =head1 PRIMARY KEY
70 =over 4
72 =item * L</illrequest_id>
74 =item * L</type>
76 =back
78 =cut
80 __PACKAGE__->set_primary_key("illrequest_id", "type");
82 =head1 RELATIONS
84 =head2 illrequest
86 Type: belongs_to
88 Related object: L<Koha::Schema::Result::Illrequest>
90 =cut
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" },
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
103 __PACKAGE__->add_columns(
104 '+readonly' => { is_boolean => 1 }