Эх сурвалжийг харах

Add time fields to Credential

Andrea Fazzi 6 жил өмнө
parent
commit
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"`