| Foorum documentation | Contained in the Foorum distribution. |
Foorum::Schema::Upload - Table 'upload'
INT(11)
NOT NULL, PRIMARY KEY
INT(11)
NOT NULL
INT(11)
NOT NULL
VARCHAR(36)
DOUBLE(64)
VARCHAR(4)
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__