package models

import "github.com/go-rod/rod/lib/proto"

type TwitterAccount struct {
	ID            int64                       `gorm:"id;primary_key;auto_increment"`
	Uid           string                      `gorm:"uid"`
	Name          string                      `gorm:"name"`
	Email         string                      `gorm:"email"`
	Password      string                      `gorm:"password"`
	EmailPassword string                      `gorm:"email_password"`
	Birthday      string                      `gorm:"birthday"`
	Token         string                      `gorm:"token"`
	Fa2           string                      `gorm:"fa2"`
	Cookies       []*proto.NetworkCookieParam `gorm:"img;type:json;serializer:json"`
	Type          string                      `gorm:"type"`
	Status        string                      `gorm:"status"`
	LoginStatus   string                      `gorm:"login_status"`
	Proxy         string                      `gorm:"proxy"`
	BrowserId     string                      `gorm:"browser_id"`
	BrowserUrl    string                      `gorm:"browser_url"`
	UpdateTime    int64                       `gorm:"update_time"`
	CreateTime    int64                       `gorm:"create_time"`
}

// 实现 TableName 方法指定表名
func (TwitterAccount) TableName() string {
	return "ar_twitter_account"
}
