<?php

/*
 * This file is part of the Active Collab DatabaseStructure project.
 *
 * (c) A51 doo <info@activecollab.com>. All rights reserved.
 */

namespace ActiveCollab\DatabaseStructure\Field\Scalar;

/**
 * @package ActiveCollab\DatabaseStructure\Field\Scalar
 */
class MoneyField extends DecimalField
{
    /**
     * @param string $name
     * @param float  $default_value
     */
    public function __construct($name, $default_value = null)
    {
        parent::__construct($name, $default_value);

        $this->length(13);
        $this->scale(3);
    }
}

<?php

/*
 * This file is part of the Active Collab DatabaseStructure project.
 *
 * (c) A51 doo <info@activecollab.com>. All rights reserved.
 */

namespace ActiveCollab\DatabaseStructure\Field\Scalar;

/**
 * @package ActiveCollab\DatabaseStructure\Field\Scalar
 */
class MoneyField extends DecimalField
{
    /**
     * @param string $name
     * @param float  $default_value
     */
    public function __construct($name, $default_value = null)
    {
        parent::__construct($name, $default_value);

        $this->length(12);
        $this->scale(6);
    }
}

Use 6 decimal spaces for money
Use 6 decimal spaces for money
