More work on sql schema and migrations, starting to get somewhere

This commit is contained in:
Torkel Ödegaard
2015-01-18 14:51:51 +01:00
parent 68a77c4051
commit 8bfed7508c
7 changed files with 220 additions and 104 deletions
+1
View File
@@ -10,6 +10,7 @@ var (
ErrAccountNotFound = errors.New("Account not found")
)
// Directly mapped to db schema, Do not change field names lighly
type Account struct {
Id int64
Login string `xorm:"UNIQUE NOT NULL"`