2 package Koha
::Schema
::Result
::AuthorisedValue
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AuthorisedValue
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_values>
22 __PACKAGE__
->table("authorised_values");
35 default_value: (empty string)
40 =head2 authorised_value
43 default_value: (empty string)
67 __PACKAGE__
->add_columns(
69 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
72 data_type
=> "varchar",
79 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 80 },
81 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
83 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
85 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
98 __PACKAGE__
->set_primary_key("id");
102 =head2 authorised_values_branches
106 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
110 __PACKAGE__
->has_many(
111 "authorised_values_branches",
112 "Koha::Schema::Result::AuthorisedValuesBranch",
113 { "foreign.av_id" => "self.id" },
114 { cascade_copy
=> 0, cascade_delete
=> 0 },
121 Related object: L<Koha::Schema::Result::AuthorisedValueCategory>
125 __PACKAGE__
->belongs_to(
127 "Koha::Schema::Result::AuthorisedValueCategory",
128 { category_name
=> "category" },
129 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
133 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:13:07
134 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YwvGOd/jzk71ekWfO56xrw
137 # You can replace this text with custom code or comments, and it will be preserved on regeneration