package models

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

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

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