models

package
v0.0.0-...-5ca8ec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apptype

type Apptype struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Blog

type Blog struct {
	ID        string    `json:"id"`
	TITLE     string    `json:"title"`
	BODY      string    `json:"body"`
	PUBLIC    bool      `json:"public"`
	APPTYPE   string    `json:"apptype"`
	LANGUAGES []string  `json:"languages"`
	TAGS      []string  `json:"tags"`
	LIBRARIES []string  `json:"libraries"`
	AUTHOR    string    `json:"author"`
	LIKES     []Like    `json:"likes"`
	COMMENTS  []Comment `json:"comments"`
	CREATEDAT time.Time `json:"created_at"`
	UPDATEDAT time.Time `json:"updated_at"`
}

type Bootcamp

type Bootcamp struct {
	ID          string     `json:"id"`
	TOPIC       string     `json:"topic"`
	INSTRUCTORS []string   `json:"instructors"`
	ADDRESS     string     `json:"address"`
	LAT         float64    `json:"lat"`
	LON         float64    `json:"lon"`
	STUDENTS    string     `json:"students"`
	ENROLLMENTS []Enroller `json:"enrollments"`
	DESCRIPTION string     `json:"description"`
	AVAILABLE   bool       `json:"available"`
	STARTEDAT   string     `json:"startedat"`
	FINISHEDAT  string     `json:"finishedat"`
	AUTHOR      string     `json:"author"`
	LIKES       []Like     `json:"likes"`
	COMMENTS    []Comment  `json:"comments"`
	CREATEDAT   time.Time  `json:"created_at"`
	UPDATEDAT   time.Time  `json:"updated_at"`
}

type Branch

type Branch struct {
	ID          string    `json:"id"`
	CID         string    `json:"cid"`
	NAME        string    `json:"name"`
	ADDRESS     string    `json:"address"`
	ZIPCODE     string    `json:"zipcode"`
	CITY        string    `json:"city"`
	STATE       string    `json:"state"`
	COUNTRY     string    `json:"country"`
	LAT         float64   `json:"lat"`
	LON         float64   `json:"lon"`
	FOUNDEDYEAR string    `json:"foundedyear"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Claims

type Claims struct {
	ID        string    `json:"_id" json:"id"`
	NAME      string    `json:"name"`
	EMAIL     string    `json:"email"`
	CREATEDAT time.Time `json:"created_at" json:"created_at"`
	UPDATEDAT time.Time `json:"updated_at" json:"updated_at"`
	jwt.StandardClaims
}

type Comment

type Comment struct {
	ID        string    `json:"id"`
	NAME      string    `json:"name"`
	TEXT      string    `json:"text"`
	EDITED    bool      `json:"edited"`
	UPDATEDAT time.Time `json:"updated_at"`
}

type Company

type Company struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	PRODUCTS    []string  `json:"products"`
	EMPLOYEE    string    `json:"employee"`
	BRANCHES    []*Branch `pg:",one2many:company_branches"`
	FRAMEWORKS  []string  `json:"frameworks"`
	LANGUAGES   []string  `json:"languages"`
	PLATFORMS   []string  `json:"platforms"`
	DATABASES   []string  `json:"databases"`
	OTHERS      []string  `json:"others"`
	ADDRESS     string    `json:"address"`
	ZIPCODE     string    `json:"zipcode"`
	CITY        string    `json:"city"`
	STATE       string    `json:"state"`
	COUNTRY     string    `json:"country"`
	LAT         float64   `json:"lat"`
	LON         float64   `json:"lon"`
	FOUNDEDYEAR string    `json:"foundedyear"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Database

type Database struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Enroller

type Enroller struct {
	ID   string `json:"id"`
	NAME string `json:"name"`
}

type Framework

type Framework struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type JWT

type JWT struct {
	Token string `json:"token"`
}

type Language

type Language struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Library

type Library struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	LANGUAGES   []string  `json:"languages"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Like

type Like struct {
	ID   string `json:"id"`
	NAME string `json:"name"`
	LIKE bool   `json:"like"`
}

type Other

type Other struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Platform

type Platform struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type Profile

type Profile struct {
	ID         string    `json:"id"`
	USERID     string    `json:"userid"`
	CAREER     string    `json:"career"`
	FRAMEWORKS []string  `json:"frameworks"`
	LANGUAGES  []string  `json:"languages"`
	PLATFORMS  []string  `json:"platforms"`
	DATABASES  []string  `json:"databases"`
	OTHERS     []string  `json:"others"`
	SEX        string    `json:"sex"`
	BIRTHDATE  string    `json:"birthdate"`
	ADDRESS    string    `json:"address"`
	ZIPCODE    string    `json:"zipcode"`
	CITY       string    `json:"city"`
	STATE      string    `json:"state"`
	COUNTRY    string    `json:"country"`
	LAT        float64   `json:"lat"`
	LON        float64   `json:"lon"`
	CREATEDAT  time.Time `json:"created_at"`
	UPDATEDAT  time.Time `json:"updated_at"`
}

type Tag

type Tag struct {
	ID          string    `json:"id"`
	NAME        string    `json:"name"`
	DESCRIPTION string    `json:"description"`
	AUTHOR      string    `json:"author"`
	CREATEDAT   time.Time `json:"created_at"`
	UPDATEDAT   time.Time `json:"updated_at"`
}

type User

type User struct {
	ID        string    `json:"_id" json:"id"`
	NAME      string    `json:"name"`
	EMAIL     string    `json:"email"`
	PASSWORD  string    `json:"password"`
	CREATEDAT time.Time `json:"created_at" json:"created_at"`
	UPDATEDAT time.Time `json:"updated_at" json:"updated_at"`
}

Jump to

Keyboard shortcuts

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