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