more account stuff

This commit is contained in:
Torkel Ödegaard
2014-09-20 13:24:06 +02:00
parent 992efda7f6
commit 015c929bd7
4 changed files with 39 additions and 4 deletions
+3 -1
View File
@@ -14,15 +14,17 @@ type CollaboratorLink struct {
type Account struct {
Id int `gorethink:"id"`
UserName string
Version int
Login string
Email string
AccountName string
Password string
NextDashboardId int
UsingAccountId int
Collaborators []CollaboratorLink
CreatedOn time.Time
ModifiedOn time.Time
LastLoginOn time.Time
}
func (account *Account) AddCollaborator(accountId int) error {