'Defines the upload table'

@classmethod
def define_upload_table(cls):

    db = current.db
    UPLOAD_TABLE_NAME = cls.UPLOAD_TABLE_NAME
    if (UPLOAD_TABLE_NAME not in db):
        db.define_table(UPLOAD_TABLE_NAME, Field('controller', readable=False, writable=False), Field('function', readable=False, writable=False), Field('file', 'upload', length=current.MAX_FILENAME_LENGTH, uploadfolder=os.path.join(current.request.folder, 'uploads', 'imports'), autodelete=True), Field('filename', readable=False, writable=False), Field('status', 'integer', default=1, readable=False, writable=False), Field('extra_data', readable=False, writable=False), Field('replace_option', 'boolean', default=False, readable=False, writable=False), Field('job_id', length=128, readable=False, writable=False), Field('user_id', 'integer', readable=False, writable=False), Field('created_on', 'datetime', readable=False, writable=False), Field('modified_on', 'datetime', readable=False, writable=False), Field('summary_added', 'integer', readable=False, writable=False), Field('summary_error', 'integer', readable=False, writable=False), Field('summary_ignored', 'integer', readable=False, writable=False), Field('completed_details', 'text', readable=False, writable=False))
    return db[UPLOAD_TABLE_NAME]
