Bug 22125: branches.pickup_location should be flagged as boolean
[koha.git] / Koha / Schema / Result / AccountOffsetType.pm
1 use utf8;
2 package Koha::Schema::Result::AccountOffsetType;
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::AccountOffsetType
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<account_offset_types>
19
20 =cut
21
22 __PACKAGE__->table("account_offset_types");
23
24 =head1 ACCESSORS
25
26 =head2 type
27
28   data_type: 'varchar'
29   is_nullable: 0
30   size: 16
31
32 =cut
33
34 __PACKAGE__->add_columns(
35   "type",
36   { data_type => "varchar", is_nullable => 0, size => 16 },
37 );
38
39 =head1 PRIMARY KEY
40
41 =over 4
42
43 =item * L</type>
44
45 =back
46
47 =cut
48
49 __PACKAGE__->set_primary_key("type");
50
51 =head1 RELATIONS
52
53 =head2 account_offsets
54
55 Type: has_many
56
57 Related object: L<Koha::Schema::Result::AccountOffset>
58
59 =cut
60
61 __PACKAGE__->has_many(
62   "account_offsets",
63   "Koha::Schema::Result::AccountOffset",
64   { "foreign.type" => "self.type" },
65   { cascade_copy => 0, cascade_delete => 0 },
66 );
67
68
69 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-20 16:27:04
70 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rPRWMfAfRke3jGG3iISi2A
71
72
73 # You can replace this text with custom code or comments, and it will be preserved on regeneration
74 1;