From 05f15068730a220d2b7b709f8d86223712175568 Mon Sep 17 00:00:00 2001 From: Seyora24 Date: Thu, 6 Jul 2023 10:19:54 +0700 Subject: [PATCH] JWT Authorization --- models/postModel.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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 }