# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd.
# This program is distributed under the terms of the
# GNU General Public License, version 2.
#
# $Id: Error.pm 5151 2010-01-06 07:51:27Z takayama $

package MT::TheSchwartz::Error;

use strict;
use base qw( MT::Object );

__PACKAGE__->install_properties({
    column_defs => {
        jobid => 'integer not null', # bigint unsigned not null
        funcid => 'integer not null', # int unsigned not null default 0
        message => 'string(255) not null', # varchar(255) not null
        error_time => 'integer not null', # integer unsigned not null
    },
    datasource  => 'ts_error',
    indexes => {
        jobid => 1,
        error_time => 1,
        funcid_time => {
            columns => ['funcid', 'error_time'],
        },
    },
    defaults => {
        funcid => 0,
    },
    cacheable => 0,
});

sub class_label {
    MT->translate("Job Error");
}

1;
