package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Dec 26, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Post struct {
PostID string `gorm:"primaryKey;not null"`
Title string `gorm:"type:text;not null"`
Content string `gorm:"type:text;not null"`
AuthorID uint `json:"-"`
User User `gorm:"-" json:"postid,omitempty"`
CreatedAt time.Time
}
type User struct {
ID uint `gorm:"unique;not null" json:"id,omitempty"`
Username string
Email string
Password string
}
User DAO logic not write yet
Source Files
¶
Click to show internal directories.
Click to hide internal directories.