Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / TagsIndex.pm
1 package Koha::Schema::Result::TagsIndex;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::TagsIndex
15
16 =cut
17
18 __PACKAGE__->table("tags_index");
19
20 =head1 ACCESSORS
21
22 =head2 term
23
24   data_type: 'varchar'
25   is_foreign_key: 1
26   is_nullable: 0
27   size: 255
28
29 =head2 biblionumber
30
31   data_type: 'integer'
32   is_foreign_key: 1
33   is_nullable: 0
34
35 =head2 weight
36
37   data_type: 'integer'
38   default_value: 1
39   is_nullable: 0
40
41 =cut
42
43 __PACKAGE__->add_columns(
44   "term",
45   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 },
46   "biblionumber",
47   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48   "weight",
49   { data_type => "integer", default_value => 1, is_nullable => 0 },
50 );
51 __PACKAGE__->set_primary_key("term", "biblionumber");
52
53 =head1 RELATIONS
54
55 =head2 term
56
57 Type: belongs_to
58
59 Related object: L<Koha::Schema::Result::TagsApproval>
60
61 =cut
62
63 __PACKAGE__->belongs_to(
64   "term",
65   "Koha::Schema::Result::TagsApproval",
66   { term => "term" },
67   { on_delete => "CASCADE", on_update => "CASCADE" },
68 );
69
70 =head2 biblionumber
71
72 Type: belongs_to
73
74 Related object: L<Koha::Schema::Result::Biblio>
75
76 =cut
77
78 __PACKAGE__->belongs_to(
79   "biblionumber",
80   "Koha::Schema::Result::Biblio",
81   { biblionumber => "biblionumber" },
82   { on_delete => "CASCADE", on_update => "CASCADE" },
83 );
84
85
86 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
87 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:X0OvXQjDYLVCMgHHWx/kpw
88
89
90 # You can replace this text with custom content, and it will be preserved on regeneration
91 1;