diff --git a/models/postModel.go b/models/postModel.go index 90c66e3..3ea0e84 100644 --- a/models/postModel.go +++ b/models/postModel.go @@ -1,13 +1,16 @@ package models -import "gorm.io/gorm" +import ( + "gorm.io/gorm" +) type Post struct { gorm.Model - Name string - Email string - Gender string - Address string - Tempat string - TLahir string + Name string + Email string `gorm:"unique"` + Password string + Gender string + Address string + Tempat string + TLahir string }