model

package
v0.0.0-...-67fa6a2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 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 Group

type Group struct {
	ID          int64     `xorm:"PK autoincr bigint"`
	Name        string    `xorm:"varchar(200)"`
	CreatedDate time.Time `xorm:"created"`
	Updated     time.Time `xorm:"updated"`
	IsActive    bool      `xorm:"not null"`
}

Group model

type Message

type Message struct {
	ID              int64     `xorm:"PK autoincr bigint"`
	Subject         string    `xorm:"text"`
	MessageBody     string    `xorm:"text"`
	CreatorID       int64     `xorm:"bigint"`
	ParentMessageID int64     `xorm:"bigint"`
	CreatedDate     time.Time `xorm:"created"`
	UpdatedDate     time.Time `xorm:"updated"`
	ExpiryDate      time.Time
}

Message model

type MessageRecipient

type MessageRecipient struct {
	ID               int64 `xorm:"PK autoincr bigint"`
	RecipientID      int64 `xorm:"bigint"`
	RecipientGroupID int64 `xorm:"bigint"`
	MessageID        int64 `xorm:"bigint"`
	IsRead           bool  `xorm:"default false"`
}

MessageRecipient model

type User

type User struct {
	//
	ID          int64     `xorm:"PK autoincr bigint"`
	FirstName   string    `xorm:"varchar(200)"`
	LastName    string    `xorm:"varchar(200)"`
	CreatedDate time.Time `xorm:"created"`
	UpdatedDate time.Time `xorm:"updated"`
	IsActive    bool      `xorm:"not null"`
}

User model

type UserGroup

type UserGroup struct {
	ID          int64     `xorm:"PK autoincr bigint"`
	UserID      int64     `xorm:"bigint"`
	GroupID     int64     `xorm:"bigint"`
	CreatedDate time.Time `xorm:"created"`
	UpdatedDate time.Time `xorm:"updated"`
	IsActive    bool      `xorm:"not null"`
}

UserGroup model

Jump to

Keyboard shortcuts

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