o_drive.go 486 B

12345678910111213141516
  1. package model
  2. type PeerDriveDBModel struct {
  3. ID string `gorm:"column:id;primary_key" json:"id"`
  4. Updated int64 `gorm:"autoUpdateTime"`
  5. Created int64 `gorm:"autoCreateTime"`
  6. UserAgent string `json:"user_agent"`
  7. DisplayName string `json:"display_name"`
  8. DeviceName string `json:"device_name"`
  9. Model string `json:"model"`
  10. IP string `json:"ip"`
  11. OS string `json:"os"`
  12. Browser string `json:"browser"`
  13. Online bool `gorm:"-" json:"online"`
  14. }