o_shares.go 654 B

123456789101112131415161718192021222324
  1. /*
  2. * @Author: LinkLeong link@icewhale.org
  3. * @Date: 2022-07-26 11:17:17
  4. * @LastEditors: LinkLeong
  5. * @LastEditTime: 2022-07-27 15:25:07
  6. * @FilePath: /CasaOS/service/model/o_shares.go
  7. * @Description:
  8. * @Website: https://www.casaos.io
  9. * Copyright (c) 2022 by icewhale, All Rights Reserved.
  10. */
  11. package model
  12. type SharesDBModel struct {
  13. ID uint `gorm:"column:id;primary_key" json:"id"`
  14. Anonymous bool `json:"anonymous"`
  15. Path string `json:"path"`
  16. Name string `json:"name"`
  17. Updated int64 `gorm:"autoUpdateTime"`
  18. Created int64 `gorm:"autoCreateTime"`
  19. }
  20. func (p *SharesDBModel) TableName() string {
  21. return "o_shares"
  22. }