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