models.go 537 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package models
  5. import "github.com/lunny/xorm"
  6. var (
  7. orm *xorm.Engine
  8. repoRootPath string
  9. )
  10. type Members struct {
  11. Id int64
  12. OrgId int64 `xorm:"unique(s) index"`
  13. UserId int64 `xorm:"unique(s)"`
  14. }
  15. type Issue struct {
  16. Id int64
  17. RepoId int64 `xorm:"index"`
  18. PosterId int64
  19. }
  20. type PullRequest struct {
  21. Id int64
  22. }
  23. type Comment struct {
  24. Id int64
  25. }