| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?phpnamespace Database\Seeders\Backend;use Database\Seeders\BaseSeeder;use Illuminate\Support\Facades\Hash;use Txj\Elastic\Facades\Eav;use Txj\Elastic\Facades\ES;/** * 商品版本管理 */class ProductVersionSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'product_id' => ['type' => 'uBigint', 'title' => '商品标题,固定到软件里'],            'os_type' => ['type' => 'string_60', 'title' => '操作系统类型 windows linux android ios'],            'version' => ['type' => 'string_60', 'title' => '版本号'],            'download_url' => ['type' => 'string', 'title' => '下载地址'],            'agent_mid' => ['type' => 'string_20', 'default' => '0', 'title' => '代理商的标志,固定到软件里,同一类产品,可以统计不用标签'],            'status' => ['type' => 'tinyint', 'title' => '状态', 'default' => 0, 'remark' => '1 启用 0 禁用'],            'desc' => ['type' => 'mediumtext', 'title' => '版本描述', 'is_null' => 1],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'product_version';        $this->title = '产品软件版本';        $this->start();    }}
 |