src/Leevel/Database/Console/Entity.php
protected function getReplace(): array
    {
        $columns = $this->getColumns();

        return [
            'file_name'        => ucfirst(camelize($this->argument('name'))),
            'table_name'       => $this->getTableName(),
            'primary_key'      => $this->getPrimaryKey($columns),
            'primary_key_type' => $this->getPrimaryKeyType($columns),
            'auto_increment'   => $this->getAutoIncrement($columns),
            'struct'           => $this->getStruct($columns),
            'props'            => $this->getProps($columns),
        ];
    }
protected function getReplace(): array
    {
        $columns = $this->getColumns();

        return [
            'file_name'        => ucfirst(camelize($this->argument('name'))),
            'table_name'       => $this->getTableName(),
            'primary_key'      => $this->getPrimaryKey($columns),
            'primary_key_type' => $this->getPrimaryKeyType($columns),
            'auto_increment'   => $this->getAutoIncrement($columns),
            'struct'           => $this->getStruct($columns),
            'props'            => $this->getProps($columns),
        ];
    }
获取实体替换信息.

@return array