Explorar el Código

Add time fields to Credential

Andrea Fazzi hace 6 años
padre
commit
47a1178457
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      orm/credential.go

+ 3 - 0
orm/credential.go

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