2 package Koha
::Schema
::Result
::SmsProvider
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::SmsProvider
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<sms_providers>
22 __PACKAGE__
->table("sms_providers");
46 __PACKAGE__
->add_columns(
48 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
50 { data_type
=> "varchar", is_nullable
=> 0, size
=> 255 },
52 { data_type
=> "varchar", is_nullable
=> 0, size
=> 255 },
65 __PACKAGE__
->set_primary_key("id");
67 =head1 UNIQUE CONSTRAINTS
79 __PACKAGE__
->add_unique_constraint("name", ["name"]);
87 Related object: L<Koha::Schema::Result::Borrower>
91 __PACKAGE__
->has_many(
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';