Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id int `db:"id" json:"id"` Name string `db:"name" json:"name"` Email string `db:"email" json:"email"` Content string `db:"content" json:"content"` IsPublished bool `db:"is_published" json:"is_published"` Created_at time.Time `db:"created_at" json:"created_at"` Published_at time.Time `db:"published_at" json:"published_at"` PostID uint `db:"postID" json:"postID"` }
every post has many comment
type Management ¶
type Portfolio ¶
type Portfolio struct { Id int `db:"id" json:"id"` Content string `db:"content" json:"content"` UserID uint `db:"userID" json:"userID"` Skills []Technology PortProj []Project }
portfolio contains (skills & projects)
type Post ¶
type Post struct { Id int `db:"id" json:"id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` IsPublished bool `db:"is_published" json:"is_published"` Created_at time.Time `db:"created_at" json:"created_at"` Updated_at time.Time `db:"updated_at" json:"updated_at"` Published_at time.Time `db:"published_at" json:"published_at"` UserID uint `db:"userID" json:"userID"` }
type Project ¶
type Project struct { Id int `db:"id" json:"id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` Image string `db:"image" json:"image"` IsDone bool `db:"is_done" json:"is_done"` Created_at time.Time `db:"created_at" json:"created_at"` Technology []Technology }
projects done till now
type Technology ¶
type Technology struct { Id int `db:"id" json:"id"` Title string `db:"title" json:"title"` Content string `db:"content" json:"content"` Image string `db:"image" json:"image"` }
technologies
type User ¶
type User struct { Id int `db:"id" json:"id"` Username string `db:"username" json:"username"` Email string `db:"email" json:"email"` Name string `db:"name" json:"name"` Family string `db:"family" json:"family"` Password string `db:"password" json:"password"` Role string `db:"role" json:"role"` Image string `db:"image" json:"image"` PhoneNumber string `db:"phone_number" json:"phone_number"` Created_at time.Time `db:"created_at" json:"created_at"` Updated_at time.Time `db:"updated_at" json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.