Bug 20434: Update UNIMARC framework - auth (SAUTTIT)
[koha.git] / Koha / Schema / Result / SmsProvider.pm
blob44d2348825f15a613c8891f63fafe0acac38a439
1 use utf8;
2 package Koha::Schema::Result::SmsProvider;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::SmsProvider
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<sms_providers>
20 =cut
22 __PACKAGE__->table("sms_providers");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 name
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 255
38 =head2 domain
40 data_type: 'varchar'
41 is_nullable: 0
42 size: 255
44 =cut
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 },
55 =head1 PRIMARY KEY
57 =over 4
59 =item * L</id>
61 =back
63 =cut
65 __PACKAGE__->set_primary_key("id");
67 =head1 UNIQUE CONSTRAINTS
69 =head2 C<name>
71 =over 4
73 =item * L</name>
75 =back
77 =cut
79 __PACKAGE__->add_unique_constraint("name", ["name"]);
81 =head1 RELATIONS
83 =head2 borrowers
85 Type: has_many
87 Related object: L<Koha::Schema::Result::Borrower>
89 =cut
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 },
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
102 sub koha_object_class {
103 'Koha::SMS::Provider';
105 sub koha_objects_class {
106 'Koha::SMS::Providers';