1 package Koha::Schema::Result::TagsApproval;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::TagsApproval
18 __PACKAGE__->table("tags_approval");
53 __PACKAGE__->add_columns(
55 { data_type => "varchar", is_nullable => 0, size => 255 },
57 { data_type => "integer", default_value => 0, is_nullable => 0 },
59 { data_type => "datetime", is_nullable => 1 },
61 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
63 { data_type => "integer", default_value => 1, is_nullable => 0 },
65 __PACKAGE__->set_primary_key("term");
73 Related object: L<Koha::Schema::Result::Borrower>
77 __PACKAGE__->belongs_to(
79 "Koha::Schema::Result::Borrower",
80 { borrowernumber => "approved_by" },
81 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
88 Related object: L<Koha::Schema::Result::TagsIndex>
92 __PACKAGE__->has_many(
94 "Koha::Schema::Result::TagsIndex",
95 { "foreign.term" => "self.term" },
96 { cascade_copy => 0, cascade_delete => 0 },
100 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
101 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0C4z7rRUg2mcdmdrUOGcYw
104 # You can replace this text with custom content, and it will be preserved on regeneration