model

package
v0.0.0-...-9042724 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 1 Imported by: 0

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 Management struct {
	Id          int    `db:"id"`
	Title       string `db:"title"`
	Meta        string `db:"meta"`
	Description string `db:"desc"`
	Author      string `db:"author"`
	Phone       string `db:"phone"`
	Email       string `db:"email"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL