| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?phpnamespace Database\Seeders\Frontend;use Database\Seeders\BaseSeeder;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Hash;use Illuminate\Support\Str;use Txj\Elastic\Facades\Eav;use Txj\Elastic\Facades\ES;class UserAccessTokenSeeder extends BaseSeeder{    public function getColumnData()    {        return [            'user_id' => ['type' => 'uBigint', 'title' => '用户id', 'is_null' => 0],            'name' => ['type' => 'string', 'title' => 'token名称'],            'token' => ['type' => 'string_64', 'title' => 'token'],            'last_used_at' => ['type' => 'uBigint', 'title' => '最后一个使用时间', 'is_null' => 1],        ];    }    /**     * 初始化内容     */    public function init()    {    }    /**     * Run the database seeds.     *     * @return void     */    public function run()    {        $this->schema = 'user_access_token';        $this->title = '用户登录token表';        $this->start();    }}
 |