Foorum::Schema::UserSettings - Table 'user_settings'


Foorum documentation Contained in the Foorum distribution.

Index


Code Index:

NAME

Top

Foorum::Schema::UserSettings - Table 'user_settings'

COLUMNS

Top

user_id

INT(11)

NOT NULL, PRIMARY KEY

type

VARCHAR(48)

NOT NULL, PRIMARY KEY

value

VARCHAR(48)

NOT NULL

AUTHOR

Top

Fayland Lam <fayland at gmail.com>


Foorum documentation Contained in the Foorum distribution.

package Foorum::Schema::UserSettings;

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

__PACKAGE__->load_components('Core');
__PACKAGE__->table('user_settings');
__PACKAGE__->add_columns(
    'user_id',
    { data_type => 'INT', default_value => 0, is_nullable => 0, size => 11 },
    'type',
    {   data_type     => 'VARCHAR',
        default_value => undef,
        is_nullable   => 0,
        size          => 48,
    },
    'value',
    {   data_type     => 'VARCHAR',
        default_value => undef,
        is_nullable   => 0,
        size          => 48,
    },
);
__PACKAGE__->set_primary_key( 'user_id', 'type' );

1;
__END__