File tree Expand file tree Collapse file tree 3 files changed +173
-680
lines changed
user-service/src/main/java/com/craftpilot/userservice Expand file tree Collapse file tree 3 files changed +173
-680
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77import org .springframework .data .annotation .Id ;
88import org .springframework .data .mongodb .core .index .Indexed ;
99import org .springframework .data .mongodb .core .mapping .Document ;
10+
1011import java .time .LocalDateTime ;
1112
1213@ Data
1516@ AllArgsConstructor
1617@ Document (collection = "ai_models" )
1718public class AIModel {
19+
1820 @ Id
1921 private String id ;
2022
2123 @ Indexed (unique = true )
22- private String modelId ;
24+ private String modelId ;
25+
2326 private String modelName ;
2427 private String provider ;
2528 private String providerId ;
@@ -29,16 +32,7 @@ public class AIModel {
2932 private String creditType ;
3033 private String category ;
3134 private Integer contextLength ;
32- private Boolean isActive ;
35+ private boolean active = true ;
3336 private LocalDateTime createdAt ;
3437 private LocalDateTime updatedAt ;
35-
36- // Additional helper methods
37- public void setActive (boolean active ) {
38- this .isActive = active ;
39- }
40-
41- public boolean getActive () {
42- return this .isActive != null ? this .isActive : false ;
43- }
4438}
You can’t perform that action at this time.
0 commit comments