diff --git a/src/main/java/com/iflytop/gd/app/model/entity/Container.java b/src/main/java/com/iflytop/gd/app/model/entity/Container.java index 7e667ac..6524cf9 100644 --- a/src/main/java/com/iflytop/gd/app/model/entity/Container.java +++ b/src/main/java/com/iflytop/gd/app/model/entity/Container.java @@ -19,7 +19,7 @@ public class Container extends BaseEntity { @Schema(description = "溶液id") private Long solutionId; - @Schema(description = "机器id") + @Schema(description = "泵id") private String pumpId; @NotBlank diff --git a/src/main/resources/sql/init.sql b/src/main/resources/sql/init.sql index 6519c02..8aa0818 100644 --- a/src/main/resources/sql/init.sql +++ b/src/main/resources/sql/init.sql @@ -42,7 +42,9 @@ CREATE TABLE IF NOT EXISTS container ( solution_id INTEGER, pump_id TEXT, capacity_total INTEGER, - capacity_used INTEGER + capacity_used INTEGER, + create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); INSERT OR IGNORE INTO container (id, type, solution_id, pump_id, capacity_total, capacity_used)