| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | <?phpnamespace Database\Seeders\Backend;use Database\Seeders\BaseSeeder;use Illuminate\Support\Facades\Hash;use Txj\Elastic\Facades\Eav;use Txj\Elastic\Facades\ES;/** * 商品套餐管理 */class ProductComboSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'title' => ['type' => 'string', 'title' => '商品标题'],            'logo' => ['type' => 'string', 'title' => '商品logo'],            'summary' => ['type' => 'text', 'title' => '简介'],            'desc' => ['type' => 'text', 'title' => '描述'],            'price1' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '月价格', 'is_null' => 0],            'price2' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '半年价格', 'is_null' => 0],            'price3' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '一年价格', 'is_null' => 0],            'price4' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '永久使用价格', 'is_null' => 0],                        'product_ids' => ['type' => 'json', 'title' => '产品id,数组', 'is_null' => 0],            'expiry_ent_time' => ['type' => 'uBigint', 'title' => '有效期(天)', 'is_null' => 0],            'status' => ['type' => 'tinyint', 'title' => '状态', 'remark' => '1 上架 2 下架'],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'product_combo';        $this->title = '产品套餐表';        $this->start();    }}
 |