o_connections.go 891 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * @Author: LinkLeong link@icewhale.org
  3. * @Date: 2022-07-26 17:17:57
  4. * @LastEditors: LinkLeong
  5. * @LastEditTime: 2022-08-01 17:08:08
  6. * @FilePath: /CasaOS/service/model/o_connections.go
  7. * @Description:
  8. * @Website: https://www.casaos.io
  9. * Copyright (c) 2022 by icewhale, All Rights Reserved.
  10. */
  11. package model
  12. type ConnectionsDBModel struct {
  13. ID uint `gorm:"column:id;primary_key" json:"id"`
  14. Updated int64 `gorm:"autoUpdateTime"`
  15. Created int64 `gorm:"autoCreateTime"`
  16. Username string `json:"username"`
  17. Password string `json:"password"`
  18. Host string `json:"host"`
  19. Port string `json:"port"`
  20. Status string `json:"status"`
  21. Directories string `json:"directories"` // string array
  22. MountPoint string `json:"mount_point"` //parent directory of mount point
  23. }
  24. func (p *ConnectionsDBModel) TableName() string {
  25. return "o_connections"
  26. }