Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / TagAll.pm
1 package Koha::Schema::Result::TagAll;
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::TagAll
15
16 =cut
17
18 __PACKAGE__->table("tags_all");
19
20 =head1 ACCESSORS
21
22 =head2 tag_id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 borrowernumber
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =head2 biblionumber
35
36   data_type: 'integer'
37   is_foreign_key: 1
38   is_nullable: 0
39
40 =head2 term
41
42   data_type: 'varchar'
43   is_nullable: 0
44   size: 255
45
46 =head2 language
47
48   data_type: 'integer'
49   is_nullable: 1
50
51 =head2 date_created
52
53   data_type: 'datetime'
54   is_nullable: 0
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "tag_id",
60   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61   "borrowernumber",
62   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63   "biblionumber",
64   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
65   "term",
66   { data_type => "varchar", is_nullable => 0, size => 255 },
67   "language",
68   { data_type => "integer", is_nullable => 1 },
69   "date_created",
70   { data_type => "datetime", is_nullable => 0 },
71 );
72 __PACKAGE__->set_primary_key("tag_id");
73
74 =head1 RELATIONS
75
76 =head2 biblionumber
77
78 Type: belongs_to
79
80 Related object: L<Koha::Schema::Result::Biblio>
81
82 =cut
83
84 __PACKAGE__->belongs_to(
85   "biblionumber",
86   "Koha::Schema::Result::Biblio",
87   { biblionumber => "biblionumber" },
88   { on_delete => "CASCADE", on_update => "CASCADE" },
89 );
90
91 =head2 borrowernumber
92
93 Type: belongs_to
94
95 Related object: L<Koha::Schema::Result::Borrower>
96
97 =cut
98
99 __PACKAGE__->belongs_to(
100   "borrowernumber",
101   "Koha::Schema::Result::Borrower",
102   { borrowernumber => "borrowernumber" },
103   { on_delete => "CASCADE", on_update => "CASCADE" },
104 );
105
106
107 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
108 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xdc0YzmHsXuuuUWfa1aRpg
109
110
111 # You can replace this text with custom content, and it will be preserved on regeneration
112 1;