Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / SmsProvider.pm
1 use utf8;
2 package Koha::Schema::Result::SmsProvider;
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::SmsProvider
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<sms_providers>
19
20 =cut
21
22 __PACKAGE__->table("sms_providers");
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: 0
36   size: 255
37
38 =head2 domain
39
40   data_type: 'varchar'
41   is_nullable: 0
42   size: 255
43
44 =cut
45
46 __PACKAGE__->add_columns(
47   "id",
48   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49   "name",
50   { data_type => "varchar", is_nullable => 0, size => 255 },
51   "domain",
52   { data_type => "varchar", is_nullable => 0, size => 255 },
53 );
54
55 =head1 PRIMARY KEY
56
57 =over 4
58
59 =item * L</id>
60
61 =back
62
63 =cut
64
65 __PACKAGE__->set_primary_key("id");
66
67 =head1 UNIQUE CONSTRAINTS
68
69 =head2 C<name>
70
71 =over 4
72
73 =item * L</name>
74
75 =back
76
77 =cut
78
79 __PACKAGE__->add_unique_constraint("name", ["name"]);
80
81 =head1 RELATIONS
82
83 =head2 borrowers
84
85 Type: has_many
86
87 Related object: L<Koha::Schema::Result::Borrower>
88
89 =cut
90
91 __PACKAGE__->has_many(
92   "borrowers",
93   "Koha::Schema::Result::Borrower",
94   { "foreign.sms_provider_id" => "self.id" },
95   { cascade_copy => 0, cascade_delete => 0 },
96 );
97
98
99 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-31 16:48:38
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U3LGi1zy3YN2Amin+bhXlA
101
102 sub koha_object_class {
103     'Koha::SMS::Provider';
104 }
105 sub koha_objects_class {
106     'Koha::SMS::Providers';
107 }
108
109 1;