package entity

import (
	"time"
)

type Feedbacks struct {
	ID               uint       `json:"id" gorm:"primaryKey;type:int4;autoIncrement"`
	Message          string     `json:"message" gorm:"type:varchar"`
	CommentFromName  string     `json:"comment_from_name" gorm:"type:varchar"`
	CommentFromEmail string     `json:"comment_from_email" gorm:"type:varchar"`
	StatusId         int        `json:"status_id" gorm:"type:int4;default:0"`
	ApprovedAt       *time.Time `json:"approved_at" gorm:"type:timestamp"`
	ReplyMessage     *string    `json:"reply_message" gorm:"type:varchar"`
	IsActive         bool       `json:"is_active" gorm:"type:bool;default:true"`
	CreatedAt        time.Time  `json:"created_at" gorm:"default:now()"`
	UpdatedAt        time.Time  `json:"updated_at" gorm:"default:now()"`
}

// statusId => 0: waiting, 1: accepted, 2: replied, 3: nothing
