github.com/condensat/bank-core@v0.1.0/database/model/user.go (about)

     1  // Copyright 2020 Condensat Tech. All rights reserved.
     2  // Use of this source code is governed by a MIT
     3  // license that can be found in the LICENSE file.
     4  
     5  package model
     6  
     7  type UserID ID
     8  type UserName String
     9  type UserEmail String
    10  
    11  type User struct {
    12  	ID    UserID    `gorm:"primary_key"`
    13  	Name  UserName  `gorm:"size:64;unique;not null"`
    14  	Email UserEmail `gorm:"size:256;unique;not null"`
    15  }