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