2 package Koha::Schema::Result::TagsIndex;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::TagsIndex
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<tags_index>
22 __PACKAGE__->table("tags_index");
41 the bib record this tag was used on (biblio.biblionumber)
49 the number of times this term was used on this bib record
53 __PACKAGE__->add_columns(
55 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 191 },
57 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59 { data_type => "integer", default_value => 1, is_nullable => 0 },
68 =item * L</biblionumber>
74 __PACKAGE__->set_primary_key("term", "biblionumber");
82 Related object: L<Koha::Schema::Result::Biblio>
86 __PACKAGE__->belongs_to(
88 "Koha::Schema::Result::Biblio",
89 { biblionumber => "biblionumber" },
90 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97 Related object: L<Koha::Schema::Result::TagsApproval>
101 __PACKAGE__->belongs_to(
103 "Koha::Schema::Result::TagsApproval",
105 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
110 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s+HP8nlAKZz2S7PI8MQBOA
112 sub koha_object_class {
115 sub koha_objects_class {
116 'Koha::Tags::Indexes';