// 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 model

import (
	"time"
)

const TableNameReview = "reviews"

// Review mapped from table <reviews>
type Review struct {
	ID          int64               `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	UID         string              `gorm:"column:uid;not null" json:"uid"`
	Topic       string              `gorm:"column:topic;not null" json:"topic"`
	ObjectiveID int64               `gorm:"column:objective_id;not null" json:"objective_id"`
	Type        ReviewType          `gorm:"column:type;not null" json:"type"`
	Rating      int32               `gorm:"column:rating;not null" json:"rating"`
	CreatedAt   time.Time           `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt   time.Time           `gorm:"column:updated_at;not null" json:"updated_at"`
	Evaluations []*ReviewEvaluation `gorm:"foreignKey:review_id" json:"evaluations"`
}

// TableName Review's table name
func (*Review) TableName() string {
	return TableNameReview
}
