Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID int `gorm:"primary_key:auto_increment" json:"id,string"` CreatorId int `gorm:"not null" json:"creator_id,string"` TitleEvent string `gorm:"type:varchar(255);not null" json:"title_event"` LinkWebinar string `gorm:"not null" json:"link_webinar"` Description string `gorm:"not null" json:"description"` TypeEvent string `gorm:"type:enum('Online','Offline');not null" json:"type_event"` Banner string `gorm:"not null" json:"banner"` Price float64 `gorm:"type:double" json:"price,string"` Quantity int `gorm:"not null" json:"quantity,string"` Status string `` /* 141-byte string literal not displayed */ EventStartDate *time.Time `gorm:"type:date;not null" json:"event_start_date" time_format:"2006-01-02"` EventEndDate *time.Time `gorm:"type:date;not null" json:"event_end_date" time_format:"2006-01-02"` CampaignStartDate *time.Time `gorm:"type:date;not null" json:"campaign_start_date" time_format:"2006-01-02"` CampaignEndDate *time.Time `gorm:"type:date;not null" json:"campaign_end_date" time_format:"2006-01-02"` DeletedAt gorm.DeletedAt `json:"deleted_at" time_format:"unixNano"` CreatedAt time.Time `gorm:"<-:create;not null" json:"created_at" time_format:"unixNano"` UpdatedAt time.Time `gorm:"not null" json:"updated_at" time_format:"unixNano"` Creator User `gorm:"foreignkey:CreatorId;constraint:onUpdate:CASCADE;onDelete:CASCADE" json:"creator,omitempty"` }
*
- This is a Event's entity class and is not intended for modification.
func (*Event) MarshalBinary ¶
func (*Event) UnmarshalBinary ¶
type Transaction ¶
type Transaction struct { ID int `gorm:"primary_key:auto_increment" json:"id,string"` ParticipantId int `gorm:"not null" json:"participant_id,string"` CreatorId int `gorm:"not null" json:"creator_id,string"` EventId int `gorm:"not null" json:"event_id,string"` Amount float64 `gorm:"type:double" json:"amount,string"` StatusPayment string `gorm:"type:enum('Pending','Processing','Completed','Refund & Cancelled','Cancelled');not null" json:"status_payment"` DeletedAt gorm.DeletedAt `json:"deleted_at" time_format:"unixNano"` CreatedAt time.Time `gorm:"<-:create;not null" json:"created_at" time_format:"unixNano"` UpdatedAt time.Time `gorm:"not null" json:"updated_at" time_format:"unixNano"` Participant User `gorm:"foreignkey:ParticipantId;constraint:onUpdate:CASCADE;onDelete:CASCADE" json:"participant,omitempty"` Event Event `gorm:"foreignkey:EventId;constraint:onUpdate:CASCADE;onDelete:CASCADE" json:"event,omitempty"` }
type User ¶
type User struct { ID int `gorm:"primary_key:auto_increment" json:"id,string"` Username string `gorm:"uniqueIndex;type:varchar(255);not null" json:"username"` Fullname string `gorm:"type:varchar(255);not null" json:"fullname"` Email string `gorm:"uniqueIndex;type:varchar(255);not null" json:"email"` // EmailVerifiedAt time.Time `gorm:"<-:create"` Password string `gorm:"->;<-;not null" json:"-"` Role string `gorm:"type:enum('admin','creator','participant');not null" json:"role"` DeletedAt int64 `json:"deleted_at,string"` CreatedAt int64 `gorm:"<-:create;not null" json:"created_at,string"` UpdatedAt int64 `gorm:"not null" json:"updated_at,string"` Token string `json:"token,omitempty"` }
*
- This is a User's entity class and is not intended for modification.
Click to show internal directories.
Click to hide internal directories.