models

package
v0.0.0-...-6544d09 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 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 Project

type Project struct {
	ProjectID   int       `json:"project_id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	OwnerID     int       `json:"owner_id"`
	TeamID      int       `json:"team_id"`
	Deleted     int       `json:"deleted"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

type ProjectAdmin

type ProjectAdmin struct {
	ProjectID int `json:"project_id"`
	UserID    int `json:"user_id"`
}

type ProjectUser

type ProjectUser struct {
	ProjectID int `json:"project_id"`
	UserID    int `json:"user_id"`
}

type Subscription

type Subscription struct {
	SubscriptionID int       `json:"subscription_id"`
	Name           string    `json:"name"`
	Price          int       `json:"price"`
	Deleted        int       `json:"deleted"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type Team

type Team struct {
	TeamID         int       `json:"team_id"`
	Name           string    `json:"name"`
	Description    string    `json:"description"`
	OwnerID        int       `json:"owner_id"`
	SubscriptionID int       `json:"subscription_id"`
	Deleted        int       `json:"deleted"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

type TeamAdmin

type TeamAdmin struct {
	TeamID int `json:"team_id"`
	UserID int `json:"user_id"`
}

type TeamProject

type TeamProject struct {
	TeamID    int `json:"team_id"`
	ProjectID int `json:"project_id"`
}

type TeamUser

type TeamUser struct {
	TeamID int `json:"team_id"`
	UserID int `json:"user_id"`
}

type User

type User struct {
	UserID            int       `json:"user_id"`
	FirstName         string    `json:"first_name"`
	LastName          string    `json:"last_name"`
	Username          string    `json:"username"`
	Email             string    `json:"email"`
	Password          string    `json:"-"` // omit the password field
	Phone             string    `json:"phone"`
	Role              string    `json:"role"`
	AccountState      string    `json:"account_state"`
	IncorrectPwdCount int       `json:"incorrect_pwd_count"`
	PwdResetFlag      int       `json:"pwd_reset_flag"`
	PwdResetCode      string    `json:"pwd_reset_code"`
	InviteCode        string    `json:"invite_code"`
	PhoneVerification string    `json:"phone_verification"`
	EmailVerification string    `json:"email_verification"`
	CreatedAt         time.Time `json:"created_at"`
	UpdatedAt         time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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