Files
orbit/weave/model/definition.go

19 lines
636 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package model
import (
core "git.yuntuo.hk/k2safe/orbit/model"
)
// Definition 表示流程定义的稳定身份,不保存可直接执行的业务代码。
// 对应表 weave_definitions;这是服务端持久化模型,不直接作为 API 响应。
type Definition struct {
// Record 包含命名空间、记录标识、并发版本和 UTC 时间。
core.Record
// Name 可读名称,唯一性范围由对应数据表约束。
Name string `db:"name"`
// Description 定义用途说明,不承载运行状态。
Description string `db:"description"`
}
func (Definition) TableName() string { return "weave_definitions" }