| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?phpnamespace Database\Seeders\Frontend;use Database\Seeders\BaseSeeder;class UserFapiaoSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'user_id' => ['type' => 'uBigint', 'title' => '用户id', 'is_null' => 0],            'order_id' => ['type' => 'uBigint', 'title' => '订单id', 'is_null' => 0],            'company_name' => ['type' => 'string_60', 'title' => '公司抬头', 'is_null' => 0],            'taxpayer_number' => ['type' => 'string_30', 'title' => '纳税人识别号', 'is_null' => 0],            'email' => ['type' => 'string_30', 'title' => '邮箱', 'is_null' => 0],            'mobile' => ['type' => 'string_20', 'title' => '手机号', 'is_null' => 0],            'price' => ['type' => 'decimal', 'length' => 8, 'decimal' => 2, 'title' => '手机号', 'is_null' => 0],            'product_title' => ['type' => 'string_60', 'title' => '商品名称', 'is_null' => 0],            'file_path' => ['type' => 'string', 'title' => '发票文件路径', 'is_null' => 1],            'remark' => ['type' => 'string', 'title' => '备注', 'is_null' => 1],            'status' => ['type' => 'tinyint', 'default' => 0, 'title' => '0 申请中,未开票 1 已开票 2 已发送 3 发送失败'],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'user_fapiao';        $this->title = '用户发票表';        $this->start();    }}
 |