public static function applySchema()
    {
        //if (static::isAdamantTable()) {
        //    return;
        //}

        $attribute = 'apply-schema';

        if (static::hasClassAttribute($attribute)) {
            return true;
        }

        $database = static::getDatabase();

        $schema = static::getSchema();

        if (!$schema) {
            static::error('class', 'empty schema not allowed');
        }

        $table = static::getTable();

        $queries = $database->applyTable($table, $schema, false);

        static::setClassAttribute($attribute, microtime(true));

        return $queries;
    }