models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionLog

type ActionLog struct {
	ID        uint
	Method    string
	Path      string
	UserID    *uint
	After     string
	Before    string
	UserAgent string
	IP        string
	CreatedAt time.Time
}

type Applicant

type Applicant struct {
	ID                 uint
	FirstName          string
	LastName           string
	MiddleName         string
	PrimaryLanguage    string
	SecondaryLanguage  string
	Email              string
	Phone              string
	ExperienceInMonths int
	VacancyID          uint
	CreatedAt          time.Time
	Vacancy            Vacancy
}

type ApplicantComment

type ApplicantComment struct {
	ID          uint
	ApplicantID uint
	UserID      uint
	Content     string
	CreatedAt   time.Time
	Applicant   Applicant
	User        User
}

type ApplicantSkill

type ApplicantSkill struct {
	ApplicantID uint
	SkillID     uint
}

type Application

type Application struct {
	ID          uint
	ApplicantID uint
	VacancyID   uint
	CreatedAt   time.Time
	Applicant   Applicant
	Vacancy     Vacancy
}

type Article

type Article struct {
	ID         uint
	Title      string
	Content    string
	TitleEmoji string
	AuthorID   *uint
	PictureID  *uint
	FolderID   *uint
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Author     User
	Picture    Upload
	Folder     Folder
}

type AuthenticationLog

type AuthenticationLog struct {
	ID        uint
	UserID    uint
	IP        string
	UserAgent string
	CreatedAt time.Time
}

type BlogComment

type BlogComment struct {
	ID        uint
	PostID    uint
	Content   string
	CreatedAt time.Time
	UpdatedAt time.Time
	Post      BlogPost
}

type BlogLike

type BlogLike struct {
	ID        uint
	PostID    uint
	CreatedAt time.Time
	UpdatedAt time.Time
	Post      BlogPost
}

type BlogPost

type BlogPost struct {
	ID        uint
	Title     string
	Content   string
	AuthorID  *uint
	PictureID *uint
	CreatedAt time.Time
	UpdatedAt time.Time
	Author    User
	Picture   Upload
}

type BlogPostTag

type BlogPostTag struct {
	ID        uint
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type BlogPostTagRelation

type BlogPostTagRelation struct {
	PostID uint
	TagID  uint
}

type Comment

type Comment struct {
	ID        uint
	ArticleID uint
	UserID    uint
	Content   string
	CreatedAt time.Time
	UpdatedAt time.Time
	Article   Article
	User      User
}

type Company

type Company struct {
	ID        uint
	Name      string
	About     string
	Address   string
	Phone     string
	LogoID    *uint
	CreatedAt time.Time
	UpdatedAt time.Time
}

type ContactFormSubmission

type ContactFormSubmission struct {
	ID        uint
	Name      string
	Email     string
	Phone     string
	Company   string
	Message   string
	CreatedAt time.Time
}

type Currency

type Currency struct {
	Code      string `gorm:"primary_key"`
	Name      string
	Symbol    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Customer

type Customer struct {
	ID         uint
	FirstName  string
	LastName   string
	MiddleName string
	Email      string
	Phone      string
	CompanyID  *uint
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Company    Company
}

type CustomerContact

type CustomerContact struct {
	ID         uint
	CustomerID uint
	Type       string
	Value      string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type Dialogue

type Dialogue struct {
	ID        uint
	UserID    uint
	Label     string
	Messages  string
	CreatedAt time.Time
	UpdatedAt time.Time
	User      User
}

type DifficultyLevel

type DifficultyLevel struct {
	ID          uint
	Name        string
	Description string
	Coefficient float64
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type Employee

type Employee struct {
	ID               uint
	FirstName        string
	LastName         string
	MiddleName       string
	Email            string
	Phone            string
	Salary           float64
	SalaryCurrencyID *uint
	HourlyRate       float64
	Coefficient      float64
	AvatarID         *uint
	CreatedAt        time.Time
	UpdatedAt        time.Time
}

type EmployeeContact

type EmployeeContact struct {
	ID         uint
	EmployeeID uint
	Type       string
	Value      string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type EmployeeMeta

type EmployeeMeta struct {
	EmployeeID        uint
	PrimaryLanguage   string
	SecondaryLanguage string
	TIN               string
	GeneralInfo       string
	YTProfileID       string
	BirthDate         time.Time
	JoinDate          time.Time
	LeaveDate         time.Time
	UpdatedAt         time.Time
}

type EmployeePosition

type EmployeePosition struct {
	EmployeeID uint
	PositionID uint
}

type EmployeeSkill

type EmployeeSkill struct {
	EmployeeID uint
	SkillID    uint
}

type Estimate

type Estimate struct {
	ID         uint
	TaskID     uint
	EmployeeID uint
	Hours      float64
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Task       ProjectTask
	Employee   Employee
}

type Folder

type Folder struct {
	ID        uint
	Name      string
	IconID    *uint
	ParentID  *uint
	CreatedAt time.Time
	UpdatedAt time.Time
	Icon      Upload
	Parent    *Folder
}

type Interview

type Interview struct {
	ID            uint
	ApplicationID uint
	InterviewerID uint
	Date          time.Time
	CreatedAt     time.Time
	Application   Application
	Interviewer   User
}

type InterviewQuestion

type InterviewQuestion struct {
	ID          uint
	Title       string
	Description string
	Type        string
	Language    string
	Difficulty  string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type InterviewRating

type InterviewRating struct {
	ID            uint
	InterviewID   uint
	InterviewerID uint
	QuestionID    uint
	Rating        int
	Comment       string
	CreatedAt     time.Time
	Interview     Interview
	Interviewer   User
	Question      InterviewQuestion
}

type Like

type Like struct {
	ID        uint
	ArticleID uint
	UserID    uint
	CreatedAt time.Time
	UpdatedAt time.Time
	Article   Article
	User      User
}

type Permission

type Permission struct {
	ID       uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
	Name     string
	Resource string
	Action   string
	Modifier string
}

type Position

type Position struct {
	ID          uint
	Name        string
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type Project

type Project struct {
	ID          uint
	Name        string
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type ProjectStage

type ProjectStage struct {
	ID        uint
	ProjectID uint
	Name      string
	Margin    float64
	Risks     float64
	StartDate time.Time
	EndDate   time.Time
	CreatedAt time.Time
	UpdatedAt time.Time
}

type ProjectTask

type ProjectTask struct {
	ID          uint
	Title       string
	Description string
	StageID     uint
	TypeID      uint
	LevelID     uint
	ParentID    *uint
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Stage       ProjectStage
	Type        TaskType
	Level       DifficultyLevel
	Parent      *ProjectTask
}

type Prompt

type Prompt struct {
	ID          string
	Title       string
	Description string
	Prompt      string
	CreatedAt   time.Time
}

type Role

type Role struct {
	ID          uint
	Name        string
	Description string
	Permissions []Permission `gorm:"many2many:role_permissions;"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type RolePermission

type RolePermission struct {
	RoleID       uint
	PermissionID uint
}

type SalaryRange

type SalaryRange struct {
	MinSalary           float64
	MaxSalary           float64
	MinSalaryCurrencyID *uint
	MaxSalaryCurrencyID *uint
	VacancyID           uint
	MinSalaryCurrency   Currency
	MaxSalaryCurrency   Currency
	Vacancy             Vacancy
}

type Session

type Session struct {
	Token     string
	UserID    uint
	ExpiresAt time.Time
	IP        string
	UserAgent string
	CreatedAt time.Time
}

type Setting

type Setting struct {
	ID            uint
	DefaultRisks  float64
	DefaultMargin float64
	IncomeTaxRate float64
	SocialTaxRate float64
	UpdatedAt     time.Time
}

type Skill

type Skill struct {
	ID          uint
	Name        string
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type TaskType

type TaskType struct {
	ID          uint
	Icon        string
	Name        string
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type TelegramSession

type TelegramSession struct {
	UserID    uint
	Session   string
	CreatedAt time.Time
}

type Upload

type Upload struct {
	ID        uint
	Hash      string
	URL       string
	Name      string
	Size      int
	Mimetype  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type UploadedImage

type UploadedImage struct {
	ID        uint
	UploadID  uint
	Type      string
	Size      float64
	Width     int
	Height    int
	CreatedAt time.Time
	UpdatedAt time.Time
	Upload    Upload
}

type User

type User struct {
	ID         uint
	FirstName  string
	LastName   string
	MiddleName *string
	Email      string
	Password   *string
	AvatarID   *uint
	Avatar     *Upload `gorm:"foreignKey:AvatarID;references:ID"`
	LastLogin  *time.Time
	LastIP     *string
	UiLanguage string
	LastAction *time.Time
	EmployeeID *uint
	CreatedAt  time.Time
	UpdatedAt  time.Time
	Roles      []Role `gorm:"many2many:user_roles;"`
}

type UserRole

type UserRole struct {
	UserID    uint
	RoleID    uint
	CreatedAt time.Time
}

type Vacancy

type Vacancy struct {
	ID        uint
	URL       string
	Title     string
	Body      string
	Hidden    bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

type WebsitePage

type WebsitePage struct {
	ID        uint
	Path      string
	SEOTitle  string
	SEODesc   string
	SEOKeys   string
	SEOH1     string
	SEOH2     string
	SEOImg    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type WebsitePageView

type WebsitePageView struct {
	ID        uint
	PageID    uint
	UserAgent string
	IP        string
	CreatedAt time.Time
	Page      WebsitePage
}

Jump to

Keyboard shortcuts

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