db: add tagged_media_view

This commit is contained in:
Lucas 2023-03-08 20:43:56 +00:00
parent b1f2e533c1
commit 555a0bc1d1
3 changed files with 95 additions and 8 deletions

View file

@ -0,0 +1,84 @@
use utf8;
package PoorBooru::Schema::Result::TaggedMediaView;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
=head1 NAME
PoorBooru::Schema::Result::TaggedMediaView
=cut
use strict;
use warnings;
use base 'DBIx::Class::Core';
__PACKAGE__->table_class("DBIx::Class::ResultSource::View");
=head1 TABLE: C<tagged_media_view>
=cut
__PACKAGE__->table("tagged_media_view");
=head1 ACCESSORS
=head2 media_id
data_type: 'integer'
is_nullable: 1
=head2 media_seaweedfs_fid
data_type: 'text'
is_nullable: 1
size: 35
=head2 media_filename
data_type: 'text'
is_nullable: 1
size: 256
=head2 media_content_type
data_type: 'text'
is_nullable: 1
size: 256
=head2 tag_id
data_type: 'integer'
is_nullable: 1
=head2 tag_name
data_type: 'text'
is_nullable: 1
size: 256
=cut
__PACKAGE__->add_columns(
"media_id",
{ data_type => "integer", is_nullable => 1 },
"media_seaweedfs_fid",
{ data_type => "text", is_nullable => 1, size => 35 },
"media_filename",
{ data_type => "text", is_nullable => 1, size => 256 },
"media_content_type",
{ data_type => "text", is_nullable => 1, size => 256 },
"tag_id",
{ data_type => "integer", is_nullable => 1 },
"tag_name",
{ data_type => "text", is_nullable => 1, size => 256 },
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 09:09:55
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2fQvZTUxyABEgkmYYnk75w
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;