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)
39 =head2 authorised_value
42 default_value: (empty string)
66 __PACKAGE__
->add_columns(
68 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
70 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 16 },
72 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 80 },
74 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
76 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
78 { data_type
=> "varchar", is_nullable
=> 1, size
=> 200 },
91 __PACKAGE__
->set_primary_key("id");
95 =head2 authorised_values_branches
99 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
103 __PACKAGE__
->has_many(
104 "authorised_values_branches",
105 "Koha::Schema::Result::AuthorisedValuesBranch",
106 { "foreign.av_id" => "self.id" },
107 { cascade_copy
=> 0, cascade_delete
=> 0 },
110 =head2 items_search_fields
114 Related object: L<Koha::Schema::Result::ItemsSearchField>
118 __PACKAGE__
->has_many(
119 "items_search_fields",
120 "Koha::Schema::Result::ItemsSearchField",
121 { "foreign.authorised_values_category" => "self.category" },
122 { cascade_copy
=> 0, cascade_delete
=> 0 },
126 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-04 19:23:41
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aaIEvlA6wPG2o0Zx2JGk6A
130 # You can replace this text with custom content, and it will be preserved on regeneration