2 package Koha
::Schema
::Result
::ApiKey
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ApiKey
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<api_keys>
22 __PACKAGE__
->table("api_keys");
46 __PACKAGE__
->add_columns(
48 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
50 { data_type
=> "varchar", is_nullable
=> 0, size
=> 255 },
52 { data_type
=> "integer", default_value
=> 1, is_nullable
=> 1 },
59 =item * L</borrowernumber>
67 __PACKAGE__
->set_primary_key("borrowernumber", "api_key");
75 Related object: L<Koha::Schema::Result::Borrower>
79 __PACKAGE__
->belongs_to(
81 "Koha::Schema::Result::Borrower",
82 { borrowernumber
=> "borrowernumber" },
83 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
87 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2015-03-24 07:35:30
88 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dvujXVM5Vfu3SA2UfiVPtw
91 # You can replace this text with custom code or comments, and it will be preserved on regeneration