github.com/bitcubate/cryptojournal@v1.2.5-0.20171102134152-f578b3d788ab/src/users/users.go (about) 1 // Package users represents the user resource 2 package users 3 4 import ( 5 "time" 6 7 "github.com/bitcubate/cryptojournal/src/lib/resource" 8 "github.com/bitcubate/cryptojournal/src/lib/status" 9 ) 10 11 // User handles saving and retreiving users from the database 12 type User struct { 13 // resource.Base defines behaviour and fields shared between all resources 14 resource.Base 15 16 // status.ResourceStatus defines a status field and associated behaviour 17 status.ResourceStatus 18 19 Email string 20 Name string 21 Points int64 22 Role int64 23 Summary string 24 Text string 25 Title string 26 27 PasswordHash string 28 PasswordResetAt time.Time 29 }