Saga の各ステップの実行履歴
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| id | bigint | nextval('saga_steps_id_seq'::regclass) | false | ステップID(自動採番) | ||
| order_id | varchar(64) | false | public.saga_states | 注文ID(saga_states への外部キー) | ||
| step_name | varchar(50) | false | ステップ名 | |||
| status | varchar(20) | 'PENDING'::character varying | false | ステップの状態(PENDING / SUCCESS / FAILED) | ||
| error_message | text | true | エラーメッセージ | |||
| executed_at | timestamp with time zone | true | 実行日時 |
| Name | Type | Definition |
|---|---|---|
| saga_steps_order_id_fkey | FOREIGN KEY | FOREIGN KEY (order_id) REFERENCES saga_states(order_id) |
| saga_steps_pkey | PRIMARY KEY | PRIMARY KEY (id) |
| Name | Definition |
|---|---|
| saga_steps_pkey | CREATE UNIQUE INDEX saga_steps_pkey ON public.saga_steps USING btree (id) |
| idx_saga_steps_order_id | CREATE INDEX idx_saga_steps_order_id ON public.saga_steps USING btree (order_id) |
Generated by tbls