feat: establish Orbit models, migrations and development baseline
This commit is contained in:
22
weave/model/poll_round.go
Normal file
22
weave/model/poll_round.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
core "git.yuntuo.hk/k2safe/orbit/model"
|
||||
)
|
||||
|
||||
// PollRound 表示一次业务查询轮次,一轮对应一个 Pulse 任务。
|
||||
// 对应表 weave_poll_rounds;这是服务端持久化模型,不直接作为 API 响应。
|
||||
type PollRound struct {
|
||||
// Record 包含命名空间、记录标识、并发版本和 UTC 时间。
|
||||
core.Record
|
||||
// WorkflowID 所属流程实例标识。
|
||||
WorkflowID core.ID `db:"workflow_id"`
|
||||
// ActivationID 所属步骤激活,区分旧轮次和人工恢复后的新轮次。
|
||||
ActivationID core.ID `db:"activation_id"`
|
||||
// Round 本次激活内的查询轮次编号,从 1 开始。
|
||||
Round uint32 `db:"round"`
|
||||
// TaskID 关联的 Pulse 任务标识。
|
||||
TaskID core.ID `db:"task_id"`
|
||||
}
|
||||
|
||||
func (PollRound) TableName() string { return "weave_poll_rounds" }
|
||||
Reference in New Issue
Block a user