You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.go 767B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 (
  6. "time"
  7. "github.com/lunny/xorm"
  8. )
  9. var (
  10. // orm
  11. orm *xorm.Engine
  12. // repository root path
  13. root string
  14. )
  15. type PublicKey struct {
  16. Id int64
  17. Name string `xorm:"unique not null"`
  18. Content string `xorm:"text not null"`
  19. Created time.Time `xorm:"created"`
  20. Updated time.Time `xorm:"updated"`
  21. }
  22. type Members struct {
  23. Id int64
  24. OrgId int64 `xorm:"unique(s) index"`
  25. UserId int64 `xorm:"unique(s)"`
  26. }
  27. type Issue struct {
  28. Id int64
  29. RepoId int64 `xorm:"index"`
  30. PosterId int64
  31. }
  32. type PullRequest struct {
  33. Id int64
  34. }
  35. type Comment struct {
  36. Id int64
  37. }