LazyRecord\Schema\Column\UUIDPrimaryKeyColumn::__construct PHP Метод

__construct() публичный Метод

TODO: the best type for UUID in mysql is BINARY(36).
public __construct ( $name = 'uuid', $type = 'char', $length = 36 )
    public function __construct($name = 'uuid', $type = 'char', $length = 36)
    {
        parent::__construct($name);
        $this->type($type)->isa('str')->length($length)->notNull()->primary();
    }
UUIDPrimaryKeyColumn