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