// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package dao

const TableNameNotification = "chii_notify"

// Notification mapped from table <chii_notify>
type Notification struct {
	ID          uint32 `gorm:"column:nt_id;type:mediumint(8) unsigned;primaryKey;autoIncrement:true" json:""`
	ReceiverID  uint32 `gorm:"column:nt_uid;type:mediumint(8) unsigned;not null" json:""`
	SenderID    uint32 `gorm:"column:nt_from_uid;type:mediumint(8) unsigned;not null" json:""`
	Status      uint8  `gorm:"column:nt_status;type:tinyint(1) unsigned;not null;default:1" json:""`
	Type        uint8  `gorm:"column:nt_type;type:tinyint(3) unsigned;not null" json:""`
	FieldID     uint32 `gorm:"column:nt_mid;type:mediumint(8) unsigned;not null;comment:ID in notify_field" json:""` // ID in notify_field
	RelatedID   uint32 `gorm:"column:nt_related_id;type:int(10) unsigned;not null" json:""`
	CreatedTime uint32 `gorm:"column:nt_dateline;type:int(10) unsigned;not null" json:""`
}

// TableName Notification's table name
func (*Notification) TableName() string {
	return TableNameNotification
}
