28 lines
630 B
Go
28 lines
630 B
Go
|
// Copyright 2016 The Gogs 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 (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type Commit struct {
|
||
|
ID int64
|
||
|
RepoID int64 `xorm:"UNIQUE(commit_repo_sha)"`
|
||
|
Sha string `xorm:"VARCHAR(40) UNIQUE(commit_repo_sha)"`
|
||
|
Message string
|
||
|
AuthorEmail string
|
||
|
AuthorName string
|
||
|
AuthorTime time.Time
|
||
|
CommitterEmail string
|
||
|
CommitterName string
|
||
|
CommitterTime time.Time
|
||
|
}
|
||
|
|
||
|
type CommitParent struct {
|
||
|
ParentId int64 `xorm:"pk"`
|
||
|
ChildId int64 `xorm:"pk"`
|
||
|
}
|