public static function schema(){
        $classname = get_called_class();
        if(!array_key_exists($classname, self::$schemas)){
            $schema = new SchemaBuilder(static::table());
            static::define($schema);
            self::$schemas[$classname] = $schema;
        }
        return self::$schemas[$classname];
    }
public static function schema(){
        $classname = get_called_class();
        if(!array_key_exists($classname, self::$schemas)){
            $schema = new SchemaBuilder(static::table());
            static::define($schema);
            self::$schemas[$classname] = $schema;
        }
        return self::$schemas[$classname];
    }
public static function schema ( ) { $ classname = get_called_class ( ) ; if ( ! array_key_exists ( $ classname , self :: $ schemas ) ) { $ schema = new SchemaBuilder ( static :: table ( ) ) ; static :: define ( $ schema ) ; self :: $ schemas [ $ classname ] = $ schema ; } return self :: $ schemas [ $ classname ] ; }
produce lo schema del modello
produce lo schema del modello