public function map(string $schema, Table $table, string $name, FieldDefinition $definition)
{
$table->addColumn($name, 'boolean', ['notnull' => !$definition->isNullable(), 'default' => $definition->defaultValue(), 'unique' => $definition->options()['unique'] ?? false]);
if ($definition->options()['index'] ?? false) {
$table->addIndex([$name]);
}
}