Bug 13069 - (follow-up) Enable sort by title to ignore articles
[koha.git] / Koha / Schema / Result / Aqcontact.pm
1 use utf8;
2 package Koha::Schema::Result::Aqcontact;
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::Aqcontact
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqcontacts>
19
20 =cut
21
22 __PACKAGE__->table("aqcontacts");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 name
33
34   data_type: 'varchar'
35   is_nullable: 1
36   size: 100
37
38 =head2 position
39
40   data_type: 'varchar'
41   is_nullable: 1
42   size: 100
43
44 =head2 phone
45
46   data_type: 'varchar'
47   is_nullable: 1
48   size: 100
49
50 =head2 altphone
51
52   data_type: 'varchar'
53   is_nullable: 1
54   size: 100
55
56 =head2 fax
57
58   data_type: 'varchar'
59   is_nullable: 1
60   size: 100
61
62 =head2 email
63
64   data_type: 'varchar'
65   is_nullable: 1
66   size: 100
67
68 =head2 notes
69
70   data_type: 'mediumtext'
71   is_nullable: 1
72
73 =head2 claimacquisition
74
75   data_type: 'tinyint'
76   default_value: 0
77   is_nullable: 0
78
79 =head2 claimissues
80
81   data_type: 'tinyint'
82   default_value: 0
83   is_nullable: 0
84
85 =head2 acqprimary
86
87   data_type: 'tinyint'
88   default_value: 0
89   is_nullable: 0
90
91 =head2 serialsprimary
92
93   data_type: 'tinyint'
94   default_value: 0
95   is_nullable: 0
96
97 =head2 booksellerid
98
99   data_type: 'integer'
100   is_foreign_key: 1
101   is_nullable: 0
102
103 =cut
104
105 __PACKAGE__->add_columns(
106   "id",
107   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
108   "name",
109   { data_type => "varchar", is_nullable => 1, size => 100 },
110   "position",
111   { data_type => "varchar", is_nullable => 1, size => 100 },
112   "phone",
113   { data_type => "varchar", is_nullable => 1, size => 100 },
114   "altphone",
115   { data_type => "varchar", is_nullable => 1, size => 100 },
116   "fax",
117   { data_type => "varchar", is_nullable => 1, size => 100 },
118   "email",
119   { data_type => "varchar", is_nullable => 1, size => 100 },
120   "notes",
121   { data_type => "mediumtext", is_nullable => 1 },
122   "claimacquisition",
123   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
124   "claimissues",
125   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
126   "acqprimary",
127   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
128   "serialsprimary",
129   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
130   "booksellerid",
131   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
132 );
133
134 =head1 PRIMARY KEY
135
136 =over 4
137
138 =item * L</id>
139
140 =back
141
142 =cut
143
144 __PACKAGE__->set_primary_key("id");
145
146 =head1 RELATIONS
147
148 =head2 booksellerid
149
150 Type: belongs_to
151
152 Related object: L<Koha::Schema::Result::Aqbookseller>
153
154 =cut
155
156 __PACKAGE__->belongs_to(
157   "booksellerid",
158   "Koha::Schema::Result::Aqbookseller",
159   { id => "booksellerid" },
160   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
161 );
162
163
164 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-26 11:53:50
165 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIT7PzDxqInviUSe7wuzow
166
167
168 # You can replace this text with custom code or comments, and it will be preserved on regeneration
169 1;