Bug 8976: DBIC schema changes
[koha.git] / Koha / Schema / Result / NeedMergeAuthority.pm
1 use utf8;
2 package Koha::Schema::Result::NeedMergeAuthority;
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::NeedMergeAuthority
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<need_merge_authorities>
19
20 =cut
21
22 __PACKAGE__->table("need_merge_authorities");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique id
33
34 =head2 authid
35
36   data_type: 'bigint'
37   is_nullable: 0
38
39 reference to original authority record
40
41 =head2 authid_new
42
43   data_type: 'bigint'
44   is_nullable: 1
45
46 reference to optional new authority record
47
48 =head2 reportxml
49
50   data_type: 'mediumtext'
51   is_nullable: 1
52
53 xml showing original reporting tag
54
55 =head2 timestamp
56
57   data_type: 'timestamp'
58   datetime_undef_if_invalid: 1
59   default_value: current_timestamp
60   is_nullable: 0
61
62 date and time last modified
63
64 =head2 done
65
66   data_type: 'tinyint'
67   default_value: 0
68   is_nullable: 1
69
70 =cut
71
72 __PACKAGE__->add_columns(
73   "id",
74   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
75   "authid",
76   { data_type => "bigint", is_nullable => 0 },
77   "authid_new",
78   { data_type => "bigint", is_nullable => 1 },
79   "reportxml",
80   { data_type => "mediumtext", is_nullable => 1 },
81   "timestamp",
82   {
83     data_type => "timestamp",
84     datetime_undef_if_invalid => 1,
85     default_value => \"current_timestamp",
86     is_nullable => 0,
87   },
88   "done",
89   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
90 );
91
92 =head1 PRIMARY KEY
93
94 =over 4
95
96 =item * L</id>
97
98 =back
99
100 =cut
101
102 __PACKAGE__->set_primary_key("id");
103
104
105 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZGE483WQMHZLpdgAAPHMKg
107
108 sub koha_object_class {
109     'Koha::Authority::MergeRequest';
110 }
111 sub koha_objects_class {
112     'Koha::Authority::MergeRequests';
113 }
114
115 1;