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

repo_paper.go 664 B

1234567891011121314151617181920212223
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // Copyright 2018 The Gitea Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package models
  6. import (
  7. "code.gitea.io/gitea/modules/timeutil"
  8. )
  9. // RepoPaper represents related paper information of a repository.
  10. type RepoPaper struct {
  11. ID int64 `xorm:"pk autoincr"`
  12. RepoID int64 `xorm:"INDEX"`
  13. PaperUrl string `xorm:"INDEX"`
  14. CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
  15. }
  16. func InsertRepoPaper(p *RepoPaper) error {
  17. _, err := x.Insert(p)
  18. return err
  19. }