models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 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 CaseFiles

type CaseFiles struct {
	Id          uint         `json:"id" gorm:"primary_key,unique,not null"`
	UserId      uint         `json:"user_id"`
	Author      string       `json:"author"`
	Type        string       `json:"type"`
	Title       string       `json:"title" gorm:"unique"`
	Description string       `json:"description"`
	Content     string       `json:"content"`
	URL         string       `json:"url"`
	IsArchived  bool         `json:"archived,omitempty"`
	IsClosed    bool         `json:"closed,omitempty"`
	IsDeleted   bool         `json:"deleted,omitempty"`
	IsMessage   bool         `json:"is_message,omitempty"`
	UpdatedAt   time.Time    `json:"updated_at" gorm:""`
	CreatedAt   time.Time    `json:"created_at" gorm:""`
	DeletedAt   sql.NullTime `json:"deleted_at" gorm:"index"`
}

CaseFiles

type Comment

type Comment struct {
	Id        uint         `json:"id" gorm:"primary_key,unique,not null"`
	UserId    uint         `json:"user_id"`
	Author    string       `json:"author"`
	PostId    uint         `json:"post_id"`
	ThreadId  uint         `json:"thread_id"`
	Type      string       `json:"type"`
	Title     string       `json:"title"`
	Content   string       `json:"content"`
	CreatedAt time.Time    `json:"created_at" gorm:""`
	UpdatedAt time.Time    `json:"updated_at" gorm:""`
	DeletedAt sql.NullTime `json:"deleted_at" gorm:"index"`
}

Comment

type Event

type Event struct {
	Id          uint         `json:"id" gorm:"primary_key,unique,not null"`
	UserId      uint         `json:"user_id"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	CreatedAt   time.Time    `json:"created_at" gorm:""`
	DeletedAt   sql.NullTime `json:"deleted_at" gorm:"index"`
}

Event

type Login

type Login struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Permission

type Permission struct {
	Id        uint         `json:"id" gorm:"primary_key,unique,not null"`
	Name      string       `json:"name"`
	Scope     string       `json:"scope"`
	CreatedAt time.Time    `json:"created_at" gorm:"not null"`
	UpdatedAt time.Time    `json:"updated_at" gorm:"not null"`
	DeletedAt sql.NullTime `json:"deleted_at" gorm:"index"`
}

Permission

type Role

type Role struct {
	Id          uint         `json:"id" gorm:"primary_key,unique,not null"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	CreatedAt   time.Time    `json:"created_at" gorm:"not null"`
	UpdatedAt   time.Time    `json:"updated_at" gorm:"not null"`
	DeletedAt   sql.NullTime `json:"deleted_at" gorm:"index"`
}

Role

type Tag

type Tag struct {
	Id          uint         `json:"id" gorm:"primary_key,unique,not null"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	CreatedAt   time.Time    `json:"created_at" gorm:"not null"`
	UpdatedAt   time.Time    `json:"updated_at" gorm:"not null"`
	DeletedAt   sql.NullTime `json:"deleted_at" gorm:"index"`
}

Tag

type Thread

type Thread struct {
	Id        uint         `json:"id" gorm:"primary_key,unique,not null"`
	UserId    uint         `json:"user_id"`
	Author    string       `json:"author"`
	ThreadId  uint         `json:"thread_id"`
	Message   string       `json:"message"`
	CreatedAt time.Time    `json:"created_at" gorm:""`
	UpdatedAt time.Time    `json:"updated_at" gorm:""`
	DeletedAt sql.NullTime `json:"deleted_at" gorm:"index"`
}

Thread

type User

type User struct {
	ID         uint         `json:"id,omitempty" gorm:"primary_key,autoIncrement,not null"`
	FirstName  string       `json:"first_name,omitempty" gorm:"not null"`
	MiddleName string       `json:"middle_name,omitempty"`
	LastName   string       `json:"last_name,omitempty" gorm:"not null"`
	Username   string       `json:"username"  gorm:"unique,not null"`
	Email      string       `json:"email" gorm:"unique"`
	DOB        string       `json:"dob,omitempty" gorm:""`
	Password   string       `json:"password,omitempty" gorm:"not null"`
	Role       string       `json:"role,omitempty" gorm:"not null"`
	Level      int          `json:"level,omitempty" gorm:"not null"`
	CreatedAt  time.Time    `json:"created_at" gorm:"not null"`
	UpdatedAt  time.Time    `json:"updated_at" gorm:"not null"`
	DeletedAt  sql.NullTime `json:"deleted_at" gorm:"index"`
}

User

Jump to

Keyboard shortcuts

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