Bug 7295: (follow-up) update DBIx::Class schema classes
[koha.git] / Koha / Schema / Result / ImportAuth.pm
1 use utf8;
2 package Koha::Schema::Result::ImportAuth;
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::ImportAuth
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<import_auths>
19
20 =cut
21
22 __PACKAGE__->table("import_auths");
23
24 =head1 ACCESSORS
25
26 =head2 import_record_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 matched_authid
33
34   data_type: 'integer'
35   is_nullable: 1
36
37 =head2 control_number
38
39   data_type: 'varchar'
40   is_nullable: 1
41   size: 25
42
43 =head2 authorized_heading
44
45   data_type: 'varchar'
46   is_nullable: 1
47   size: 128
48
49 =head2 original_source
50
51   data_type: 'varchar'
52   is_nullable: 1
53   size: 25
54
55 =cut
56
57 __PACKAGE__->add_columns(
58   "import_record_id",
59   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60   "matched_authid",
61   { data_type => "integer", is_nullable => 1 },
62   "control_number",
63   { data_type => "varchar", is_nullable => 1, size => 25 },
64   "authorized_heading",
65   { data_type => "varchar", is_nullable => 1, size => 128 },
66   "original_source",
67   { data_type => "varchar", is_nullable => 1, size => 25 },
68 );
69
70 =head1 RELATIONS
71
72 =head2 import_record
73
74 Type: belongs_to
75
76 Related object: L<Koha::Schema::Result::ImportRecord>
77
78 =cut
79
80 __PACKAGE__->belongs_to(
81   "import_record",
82   "Koha::Schema::Result::ImportRecord",
83   { import_record_id => "import_record_id" },
84   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
85 );
86
87
88 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
89 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bm1ctlmYDh4qWUU95SLqBw
90
91
92 # You can replace this text with custom content, and it will be preserved on regeneration
93 1;