Skip to content

Commit

Permalink
add nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Sep 18, 2024
1 parent c13ea1b commit 3427284
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public class ChatThreadPO extends BasePO implements Serializable {
@Column(name = "model", nullable = false, length = 255)
private String model;

@Column(name = "thread_info", columnDefinition = "json", nullable = false)
@Column(name = "thread_info", columnDefinition = "json")
private Map<String, String> threadInfo;

@Column(name = "user_id")
@Column(name = "user_id", nullable = false)
private Long userId;

@Column(name = "platform_id")
@Column(name = "platform_id", nullable = false)
private Long platformId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class HostPO extends BasePO implements Serializable {
@Column(name = "state")
private String state;

@Column(name = "cluster_id")
@Column(name = "cluster_id", nullable = false)
private Long clusterId;

@Transient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ public class JobPO extends BasePO implements Serializable {
@Column(name = "id")
private Long id;

@Column(name = "state")
@Column(name = "state", nullable = false)
private String state;

@Column(name = "name")
private String name;

@Lob
@Column(name = "context")
@Column(name = "context", nullable = false)
private String context;

@Column(name = "cluster_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public class PlatformAuthorizedPO extends BasePO implements Serializable {
@Column(name = "credentials", columnDefinition = "json", nullable = false)
private Map<String, String> credentials;

@Column(name = "platform_id")
@Column(name = "platform_id", nullable = false)
private Long platformId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public class RepoPO extends BasePO implements Serializable {
@Column(name = "repo_type")
private String repoType;

@Column(name = "cluster_id")
@Column(name = "cluster_id", nullable = false)
private Long clusterId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class StackPO extends BasePO implements Serializable {
@Column(name = "id")
private Long id;

@Column(name = "stack_name")
@Column(name = "stack_name", nullable = false)
private String stackName;

@Column(name = "stack_version")
@Column(name = "stack_version", nullable = false)
private String stackVersion;
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public class StagePO extends BasePO implements Serializable {
@Column(name = "id")
private Long id;

@Column(name = "name")
@Column(name = "name", nullable = false)
private String name;

@Column(name = "state")
@Column(name = "state", nullable = false)
private String state;

@Column(name = "order")
Expand All @@ -55,7 +55,7 @@ public class StagePO extends BasePO implements Serializable {
@Column(name = "context")
private String context;

@Column(name = "job_id")
@Column(name = "job_id", nullable = false)
private Long jobId;

@Column(name = "cluster_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TaskPO extends BasePO implements Serializable {
@Column(name = "name")
private String name;

@Column(name = "context")
@Column(name = "context", nullable = false)
private String context;

@Column(name = "state")
Expand Down

0 comments on commit 3427284

Please sign in to comment.