Browse Source

JWT Authorization

yoga-dev
Seyora24 1 year ago
parent
commit
05f1506873
  1. 17
      models/postModel.go

17
models/postModel.go

@ -1,13 +1,16 @@
package models package models
import "gorm.io/gorm" import (
"gorm.io/gorm"
)
type Post struct { type Post struct {
gorm.Model gorm.Model
Name string Name string
Email string Email string `gorm:"unique"`
Gender string Password string
Address string Gender string
Tempat string Address string
TLahir string Tempat string
TLahir string
} }

Loading…
Cancel
Save