Foorum::Schema::Share - Table 'share'


Foorum documentation Contained in the Foorum distribution.

Index


Code Index:

NAME

Top

Foorum::Schema::Share - Table 'share'

COLUMNS

Top

user_id

INT(11)

NOT NULL, PRIMARY KEY

object_type

VARCHAR(12)

NOT NULL, PRIMARY KEY

object_id

INT(11)

NOT NULL, PRIMARY KEY

time

INT(10)

NOT NULL

AUTHOR

Top

Fayland Lam <fayland at gmail.com>


Foorum documentation Contained in the Foorum distribution.

package Foorum::Schema::Share;

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

__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('share');
__PACKAGE__->add_columns(
    'user_id',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 11 },
    'object_type',
    {   data_type     => 'VARCHAR',
        default_value => '',
        is_nullable   => 0,
        size          => 12
    },
    'object_id',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 11 },
    'time',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 10 },
);
__PACKAGE__->set_primary_key( 'user_id', 'object_id', 'object_type' );

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

1;
__END__