classdm

package
v0.0.0-...-e8a9512 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 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 Class

type Class struct {
	ClassID          uint64 `gorm:"primaryKey;autoIncrement" json:"ClassID"`
	ClassCode        string `gorm:"type:varchar(64);not null;unique" json:"ClassCode"`
	ClassName        string `gorm:"type:varchar(64);" json:"ClassName"`
	NumberOfStudents uint64 `gorm:"type:integer" json:"NumberOfStudents"`
	NumberOfTeachers uint64 `gorm:"type:integer" json:"NumberOfTeachers"`
	Description      string `gorm:"type:text" json:"Description"`
	Credits          uint64 `gorm:"type:integer" json:"Credits"`
	OwnerID          uint64 `gorm:"type:bigint;not null" json:"OwnerID"`

	CreatedAt time.Time
	UpdatedAt time.Time
	CreatedBy string
	UpdatedBy string

	DeletedAt gorm.DeletedAt `gorm:"index" json:"DeletedAt"`
}

func (Class) TableName

func (c Class) TableName() string

type ClassInvitation

type ClassInvitation struct {
	ClassInvitationID uint64 `gorm:"primaryKey;autoIncrement" json:"ClassInvitationID"`
	ClassID           uint64 `json:"ClassID"`
	InvitationCode    string `gorm:"type:varchar(64);not null;unique" json:"InvitationCode"`
	Email             string `gorm:"type:varchar(64);not null;" json:"Email"`
}

func (ClassInvitation) TableName

func (c ClassInvitation) TableName() string

type ClassMember

type ClassMember struct {
	ClassMemberID uint64 `gorm:"primaryKey;autoIncrement" json:"ClassMemberID"`
	ClassID       uint64 `gorm:"type:bigint;not null" json:"ClassID"`
	UserID        uint64 `gorm:"type:bigint;not null" json:"UserID"`
}

func (ClassMember) TableName

func (c ClassMember) TableName() string

Jump to

Keyboard shortcuts

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