Foorum::Schema::Upload - Table 'upload'


Foorum documentation Contained in the Foorum distribution.

Index


Code Index:

NAME

Top

Foorum::Schema::Upload - Table 'upload'

COLUMNS

Top

upload_id

INT(11)

NOT NULL, PRIMARY KEY

user_id

INT(11)

NOT NULL

forum_id

INT(11)

NOT NULL

filename

VARCHAR(36)

filesize

DOUBLE(64)

filetype

VARCHAR(4)

AUTHOR

Top

Fayland Lam <fayland at gmail.com>


Foorum documentation Contained in the Foorum distribution.

package Foorum::Schema::Upload;

use strict;
use warnings;
our $VERSION = '1.001000';
use base 'DBIx::Class';

__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('upload');
__PACKAGE__->add_columns(
    'upload_id',
    {   data_type     => 'INT',
        default_value => undef,
        is_nullable   => 0,
        size          => 11
    },
    'user_id',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 11 },
    'forum_id',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 11 },
    'filename',
    {   data_type     => 'VARCHAR',
        default_value => undef,
        is_nullable   => 1,
        size          => 36,
    },
    'filesize',
    {   data_type     => 'DOUBLE',
        default_value => undef,
        is_nullable   => 1,
        size          => 64
    },
    'filetype',
    {   data_type     => 'VARCHAR',
        default_value => undef,
        is_nullable   => 1,
        size          => 4
    },
);
__PACKAGE__->set_primary_key('upload_id');

__PACKAGE__->resultset_class('Foorum::ResultSet::Upload');

1;
__END__