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 751B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 *xorm.Engine
  11. repoRootPath string
  12. )
  13. type PublicKey struct {
  14. Id int64
  15. Name string `xorm:"unique not null"`
  16. Content string `xorm:"text not null"`
  17. Created time.Time `xorm:"created"`
  18. Updated time.Time `xorm:"updated"`
  19. }
  20. type Members struct {
  21. Id int64
  22. OrgId int64 `xorm:"unique(s) index"`
  23. UserId int64 `xorm:"unique(s)"`
  24. }
  25. type Issue struct {
  26. Id int64
  27. RepoId int64 `xorm:"index"`
  28. PosterId int64
  29. }
  30. type PullRequest struct {
  31. Id int64
  32. }
  33. type Comment struct {
  34. Id int64
  35. }