models

package
v0.0.0-...-7fa1929 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	Id               int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	OwnerId          int       `json:"owner_id" xorm:"not null INT(11)"`
	UserCheckCount   int       `json:"user_check_count" xorm:"not null INT(11)"`
	UserUncheckCount int       `json:"user_uncheck_count" xorm:"not null INT(11)"`
	ProjectCount     int       `json:"project_count" xorm:"not null INT(11)"`
	Name             string    `json:"name" xorm:"not null VARCHAR(128)"`
	Info             string    `json:"info" xorm:"not null TEXT"`
	Phone            string    `json:"phone" xorm:"VARCHAR(12)"`
	Address          string    `json:"address" xorm:"VARCHAR(256)"`
	CreatedAt        time.Time `json:"created_at" xorm:"not null DATETIME"`
	UpdatedAt        time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

type CompanyUsers

type CompanyUsers struct {
	CompanyId int       `json:"company_id" xorm:"not null pk unique(company_id) INT(11)"`
	UserId    int       `json:"user_id" xorm:"not null pk unique(company_id) INT(11)"`
	Status    int       `json:"status" xorm:"not null TINYINT(4)"`
	UpdatedAt time.Time `json:"updated_at" xorm:"not null DATETIME"`
	CreatedAt time.Time `json:"created_at" xorm:"not null DATETIME"`
}

type Complain

type Complain struct {
	Id           int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	UserId       int       `json:"user_id" xorm:"not null INT(11)"`
	ComplainId   int       `json:"complain_id" xorm:"not null INT(11)"`
	ComplainType int       `json:"complain_type" xorm:"not null INT(11)"`
	Info         string    `json:"info" xorm:"not null TEXT"`
	CreatedAt    time.Time `json:"created_at" xorm:"not null DATETIME"`
	Updatedat    time.Time `json:"UpdatedAt" xorm:"not null DATETIME"`
}

type Feedback

type Feedback struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	UserId    int       `json:"user_id" xorm:"not null INT(11)"`
	Info      string    `json:"info" xorm:"not null TEXT"`
	CreatedAt time.Time `json:"created_at" xorm:"not null DATETIME"`
}

type News

type News struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	CompanyId int       `json:"company_id" xorm:"not null INT(11)"`
	ProjectId int       `json:"project_id" xorm:"not null INT(11)"`
	OwnerId   int       `json:"owner_id" xorm:"not null INT(11)"`
	Title     string    `json:"title" xorm:"not null VARCHAR(255)"`
	Content   string    `json:"content" xorm:"not null TEXT"`
	CreatedAt time.Time `json:"created_at" xorm:"not null default '0000-00-00 00:00:00' TIMESTAMP"`
	UpdatedAt time.Time `json:"updated_at" xorm:"not null default '0000-00-00 00:00:00' TIMESTAMP"`
}

type Project

type Project struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	CompanyId int       `json:"company_id" xorm:"not null INT(11)"`
	OwnerId   int       `json:"owner_id" xorm:"not null INT(11)"`
	Name      string    `json:"name" xorm:"not null VARCHAR(256)"`
	Info      string    `json:"info" xorm:"not null TEXT"`
	UpdatedAt time.Time `json:"updated_at" xorm:"not null DATETIME"`
	CreatedAt time.Time `json:"created_at" xorm:"not null DATETIME"`
}

type SmsCode

type SmsCode struct {
	Username  string    `json:"username" xorm:"not null pk unique CHAR(11)"`
	Code      string    `json:"code" xorm:"not null CHAR(6)"`
	UpdatedAt time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

type Task

type Task struct {
	Id               int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	CompanyId        int       `json:"company_id" xorm:"not null INT(11)"`
	ProjectId        int       `json:"project_id" xorm:"not null INT(11)"`
	OwnerId          int       `json:"owner_id" xorm:"not null INT(11)"`
	LatestTransferId int64     `json:"latest_transfer_id" xorm:"not null BIGINT(20)"`
	InChargeUserId   int       `json:"in_charge_user_id" xorm:"not null INT(11)"`
	Priority         int       `json:"priority" xorm:"not null TINYINT(4)"`
	Status           int       `json:"status" xorm:"not null TINYINT(4)"`
	Name             string    `json:"name" xorm:"not null VARCHAR(256)"`
	Info             string    `json:"info" xorm:"not null TEXT"`
	Deadline         time.Time `json:"deadline" xorm:"not null DATETIME"`
	CreatedAt        time.Time `json:"created_at" xorm:"not null DATETIME"`
	UpdatedAt        time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

type TaskChatLog

type TaskChatLog struct {
	TaskId int64  `json:"task_id" xorm:"not null BIGINT(11)"`
	Log    string `json:"log" xorm:"not null TEXT"`
}

type TaskTransfer

type TaskTransfer struct {
	Id        int64     `json:"id" xorm:"BIGINT(20)"`
	TaskId    int       `json:"task_id" xorm:"not null INT(11)"`
	AssignFr  int       `json:"assign_fr" xorm:"not null INT(11)"`
	AssignTo  int       `json:"assign_to" xorm:"not null INT(11)"`
	IsRead    int       `json:"is_read" xorm:"not null TINYINT(4)"`
	Info      string    `json:"info" xorm:"not null TEXT"`
	Progress  int       `json:"progress" xorm:"not null TINYINT(4)"`
	CreatedAt time.Time `json:"created_at" xorm:"not null DATETIME"`
	UpdatedAt time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

type Test

type Test struct {
	Id         int `json:"id" xorm:"not null pk autoincr INT(11)"`
	AssignFrom int `json:"assign_from" xorm:"not null INT(11)"`
}

type UserProfiles

type UserProfiles struct {
	UserId       int       `json:"user_id" xorm:"not null pk unique index INT(11)"`
	Gender       int       `json:"gender" xorm:"not null TINYINT(4)"`
	Name         string    `json:"name" xorm:"not null VARCHAR(32)"`
	Phone        string    `json:"phone" xorm:"not null VARCHAR(16)"`
	Avatar       string    `json:"avatar" xorm:"not null VARCHAR(256)"`
	AvatarThumb1 string    `json:"avatar_thumb1" xorm:"not null VARCHAR(256)"`
	AvatarThumb2 string    `json:"avatar_thumb2" xorm:"not null VARCHAR(256)"`
	CreatedAt    time.Time `json:"created_at" xorm:"not null DATETIME"`
	UpdatedAt    time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

type Users

type Users struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	IpAddress   string    `json:"ip_address" xorm:"not null VARCHAR(15)"`
	Username    string    `json:"username" xorm:"not null CHAR(11)"`
	Password    string    `json:"password" xorm:"not null VARCHAR(80)"`
	Salt        string    `json:"salt" xorm:"CHAR(16)"`
	Email       string    `json:"email" xorm:"not null VARCHAR(100)"`
	Token       string    `json:"token" xorm:"VARCHAR(32)"`
	IsActivited int       `json:"is_activited" xorm:"not null TINYINT(4)"`
	ActivatedAt time.Time `json:"activated_at" xorm:"DATETIME"`
	CreatedAt   time.Time `json:"created_at" xorm:"not null DATETIME"`
	UpdatedAt   time.Time `json:"updated_at" xorm:"not null DATETIME"`
}

Jump to

Keyboard shortcuts

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