Advertisement
Gabsness

Untitled

Mar 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.45 KB | None | 0 0
  1. type User struct {
  2.     gorm.Model
  3.     UserName    string  `json: "username" gorm: "not null; unique"`
  4.     Email       string  `json: "email" gorm: "not null; unique"`
  5.     FullName    string  `json: "fullName" gorm: "not null; unique"`
  6.     Password    string  `json: "password,omitempty" gorm: "not null;type: varchar(256)"`
  7.     ConfirmPassword string `json: "confirmPassword, omitempty" gorm: "-"`
  8.     Picture         string `json: "picture"`
  9.     Comments []Comment `json: "comments, omitempty"`
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement