feat: establish Orbit models, migrations and development baseline
This commit is contained in:
18
weave/model/definition.go
Normal file
18
weave/model/definition.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user