models

package
v0.0.0-...-92a5e9f Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Copyright (c) 2023 Lucas de Ataides <ldatb@icloud.com>

SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configs

type Configs struct {
	API_PORT    string
	LOG_LEVEL   string
	LOG_OUTPUT  string
	DB_HOST     string
	DB_PORT     string
	DB_USER     string
	DB_PASSWORD string
	DB_NAME     string
}

All possible configs for the app

type Courses

type Courses struct {
	ID              uint `gorm:"primaryKey"`
	Title           string
	OfferedBy       string
	CertificateLink string
	Duration        time.Duration
	Timestamp       time.Time
}

Non-college courses

type DBInstance

type DBInstance struct {
	Database *gorm.DB
}

Database instance

type DatabaseConfigs

type DatabaseConfigs struct {
	DB_HOST     string
	DB_PORT     string
	DB_USER     string
	DB_PASSWORD string
	DB_NAME     string
}

Only database configs

type Education

type Education struct {
	ID              uint `gorm:"primaryKey"`
	DegreeType      string
	DegreeName      string
	CollegeName     string
	CollegeLocation string
	StartDate       time.Time
	EndDate         time.Time
}

College degrees

type Experience

type Experience struct {
	ID         uint `gorm:"primaryKey"`
	JobTitle   string
	Company    string
	Details    pq.StringArray `gorm:"type:text[]"`
	CurrentJob bool
	StartDate  time.Time
	EndDate    time.Time
}

Work experience

type Projects

type Projects struct {
	ID         uint `gorm:"primaryKey"`
	Title      string
	Details    pq.StringArray `gorm:"type:text[]"`
	LinkToRepo string
	Timestamp  time.Time
}

Personal projects

Jump to

Keyboard shortcuts

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