diff --git a/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java b/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java new file mode 100644 index 00000000..415c3a26 --- /dev/null +++ b/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java @@ -0,0 +1,21 @@ +package com.chint.domain.aggregates.approval; + +import lombok.Data; +import org.springframework.data.annotation.Id; +import org.springframework.data.relational.core.mapping.Table; + +import java.io.Serial; +import java.io.Serializable; + +@Data +@Table("approval_record") +public class ApprovalRecord implements Serializable { + @Serial + private static final long serialVersionUID = 987769272351235112L; + + @Id + private Long id; + private Long routeId; + private Long userId; + private String status; +} diff --git a/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java b/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java index e94c047e..40a7db2d 100644 --- a/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java +++ b/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java @@ -20,7 +20,7 @@ public class LegApprovalEvent extends BaseEvent implements Serializable { @Serial private static final long serialVersionUID = 1113987613221578925L; @Id - private Long legEventId; + private Long id; @Column("leg_id") private Long legId;