浏览代码

Add time fields to Credential

Andrea Fazzi 6 年之前
父节点
当前提交
47a1178457
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      orm/credential.go

+ 3 - 0
orm/credential.go

@@ -5,6 +5,7 @@ import (
 	"encoding/base64"
 	"fmt"
 	"strings"
+	"time"
 
 	"github.com/sethvargo/go-password/password"
 )
@@ -18,6 +19,8 @@ type Credential struct {
 	PlainPassword   string
 	Email           string
 	AltEmail        string
+	FromDate        time.Time
+	ToDate          time.Time
 	TelephoneNumber string
 
 	Regenerate bool `schema:"Regenerate" sql:"default: false"`