package model

import (
	"database/sql"
	"time"
)

// PlayerMountMission 坐骑任务模型
type PlayerMountMission struct {
	MissionId     int `gorm:"primaryKey"`
	PlayerId      int
	MountId       uint8
	MissionAddrId uint8
	StartUnix     int64
	EndUnix       int64
	MissionState  int8
	CreatedAt     time.Time
	UpdatedAt     sql.NullTime
	DeletedAt     sql.NullTime
}

// PlayerMountStorage 坐骑粮仓
type PlayerMountStorage struct {
	Id           int `gorm:"primaryKey"`
	PlayerId     int
	StorageMax   int
	StorageLevel uint8
	CreatedAt    time.Time
	UpdatedAt    sql.NullTime
}

// PlayerMountStorageTmp 玩家零时粮仓存放待领取的奖励
type PlayerMountStorageTmp struct {
	Id             int `gorm:"primaryKey"`
	PlayerId       int
	ResourceId     int
	ResourceAmount int
	CreatedAt      time.Time
	UpdatedAt      sql.NullTime
}
