database

package
v0.0.0-...-458f1ed Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func DBConnect

func DBConnect()

func DBDisconnect

func DBDisconnect()

Types

type Job

type Job struct {
	ID              *int       `json:"id" db:"id"`
	Title           string     `json:"title" db:"title"`
	Description     string     `json:"description" db:"description"`
	CompanyName     string     `json:"companyName" db:"companyName"`
	PostedOn        *time.Time `json:"postedOn" db:"postedOn"`
	PostedBy        int        `json:"postedBy" db:"postedBy"`
	TotalApplicants int        `json:"totalApplicants" db:"totalApplicants"`
}

type Profile

type Profile struct {
	ID                *int    `json:"id" db:"id"`
	ResumeFileAddress *string `json:"resumeFileAddress" db:"resumeFileAddress"`
	Skills            *string `json:"skills" db:"skills"`
	Education         *string `json:"education" db:"education"`
	Experience        *string `json:"experience" db:"experience"`
	Name              string  `json:"name" db:"name"`
	Email             string  `json:"email" db:"email"`
	Phone             *string `json:"phone" db:"phone"`
}

type User

type User struct {
	ID              *int     `json:"id" db:"id"`
	Email           string   `json:"email" db:"email"`
	Address         string   `json:"address" db:"address"`
	UserType        UserType `json:"userType" db:"userType"`
	Password        string   `json:"password" db:"password"`
	ProfileHeadline string   `json:"profileHeadline" db:"profileHeadline"`
}

type UserType

type UserType string
const (
	Admin     UserType = "Admin"
	Applicant UserType = "Applicant"
)

Jump to

Keyboard shortcuts

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