2 package Koha
::Schema
::Result
::TagsApproval
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::TagsApproval
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<tags_approval>
22 __PACKAGE__
->table("tags_approval");
41 datetime_undef_if_invalid: 1
58 __PACKAGE__
->add_columns(
60 { data_type
=> "varchar", is_nullable
=> 0, size
=> 191 },
62 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
65 data_type
=> "datetime",
66 datetime_undef_if_invalid
=> 1,
70 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
72 { data_type
=> "integer", default_value
=> 1, is_nullable
=> 0 },
85 __PACKAGE__
->set_primary_key("term");
93 Related object: L<Koha::Schema::Result::Borrower>
97 __PACKAGE__
->belongs_to(
99 "Koha::Schema::Result::Borrower",
100 { borrowernumber
=> "approved_by" },
104 on_delete
=> "SET NULL",
105 on_update
=> "CASCADE",
113 Related object: L<Koha::Schema::Result::TagsIndex>
117 __PACKAGE__
->has_many(
119 "Koha::Schema::Result::TagsIndex",
120 { "foreign.term" => "self.term" },
121 { cascade_copy
=> 0, cascade_delete
=> 0 },
125 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-01-18 08:31:57
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4cvTasSpJ2c1vvVVe/R3UQ
129 # You can replace this text with custom content, and it will be preserved on regeneration