package model

import (
	"database/sql"
	"time"

	"gorm.io/gorm"
)

type CloudBillingAudit struct {
	ID        uint64         `gorm:"primaryKey;autoIncrement:true" json:"id"`
	CreatedAt time.Time      `gorm:"not null;default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt sql.NullTime   `gorm:"default:null" json:"updated_at,omitempty"`
	DeletedAt gorm.DeletedAt `gorm:"default:null" json:"deleted_at,omitempty"`
	User      string         `json:"user"`
	Action    string         `json:"action"`
}

func (CloudBillingAudit) TableName() string {
	return "cloud_billing_audit"
}
