Bug 11165: (RM followup) DBIx updates
[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 =head2 password
46
47   data_type: 'varchar'
48   is_nullable: 1
49   size: 64
50
51 =cut
52
53 __PACKAGE__->add_columns(
54   "borrowernumber",
55   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56   "code",
57   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
58   "attribute",
59   { data_type => "varchar", is_nullable => 1, size => 255 },
60   "password",
61   { data_type => "varchar", is_nullable => 1, size => 64 },
62 );
63
64 =head1 RELATIONS
65
66 =head2 borrowernumber
67
68 Type: belongs_to
69
70 Related object: L<Koha::Schema::Result::Borrower>
71
72 =cut
73
74 __PACKAGE__->belongs_to(
75   "borrowernumber",
76   "Koha::Schema::Result::Borrower",
77   { borrowernumber => "borrowernumber" },
78   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
79 );
80
81 =head2 code
82
83 Type: belongs_to
84
85 Related object: L<Koha::Schema::Result::BorrowerAttributeType>
86
87 =cut
88
89 __PACKAGE__->belongs_to(
90   "code",
91   "Koha::Schema::Result::BorrowerAttributeType",
92   { code => "code" },
93   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94 );
95
96
97 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
98 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9oRy+X25+b7vB03WSnpFTg
99
100
101 # You can replace this text with custom content, and it will be preserved on regeneration
102 1;