Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
19
native/desktop/maplefile/internal/domain/user/model.go
Normal file
19
native/desktop/maplefile/internal/domain/user/model.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package user
|
||||
|
||||
import "time"
|
||||
|
||||
// User represents a MapleFile user profile stored locally
|
||||
type User struct {
|
||||
ID string
|
||||
Email string
|
||||
FirstName string
|
||||
LastName string
|
||||
StorageQuotaBytes int64
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
// IsValid checks if the user has the minimum required fields
|
||||
func (u *User) IsValid() bool {
|
||||
return u.ID != "" && u.Email != ""
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue