Discover Packages
github.com/harshthakkar09/blog-website
models
package
Version:
v0.0.0-...-fc5a168
Opens a new window with list of versions in this module.
Published: Oct 10, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Blog struct {
Id uint `json:"id"`
Title string `json:"title"`
Desc string `json:"desc"`
Image string `json:"image"`
UserID string `json:"userid"`
User User `json:"user";gorm:"foreignKey:UserID"`
}
type User struct {
Id uint `json:"id"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Password []byte `json:"-"`
Phone string `json:"phone"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.