// 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 TableNameWorkflowScript = "workflow_script"

// WorkflowScript mapped from table <workflow_script>
type WorkflowScript struct {
	ID         int64              `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	WorkflowID int64              `gorm:"column:workflow_id;not null" json:"workflow_id"`
	Lang       WorkflowScriptLang `gorm:"column:lang;not null" json:"lang"`
	Code       string             `gorm:"column:code;not null" json:"code"`
	Version    int32              `gorm:"column:version;not null;default:1" json:"version"`
	CreatedAt  time.Time          `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt  time.Time          `gorm:"column:updated_at;not null" json:"updated_at"`
}

// TableName WorkflowScript's table name
func (*WorkflowScript) TableName() string {
	return TableNameWorkflowScript
}
