From ad513a20e939691828ba415c9a565e8ff3daa95f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 9 Mar 2016 19:53:30 -0500 Subject: #2302 Replace time.Time with Unix Timestamp (int64) --- models/repo_collaboration.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'models/repo_collaboration.go') diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go index 419169f09c..b1c5f925af 100644 --- a/models/repo_collaboration.go +++ b/models/repo_collaboration.go @@ -6,16 +6,14 @@ package models import ( "fmt" - "time" ) // Collaboration represent the relation between an individual and a repository. type Collaboration struct { - ID int64 `xorm:"pk autoincr"` - RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` - UserID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` - Mode AccessMode `xorm:"DEFAULT 2 NOT NULL"` - Created time.Time `xorm:"CREATED"` + ID int64 `xorm:"pk autoincr"` + RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` + UserID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"` + Mode AccessMode `xorm:"DEFAULT 2 NOT NULL"` } func (c *Collaboration) ModeName() string { -- cgit v1.2.3