瀏覽代碼

数据表调整

徐勤民 2 月之前
父節點
當前提交
1f036ac8fe

+ 1 - 2
src/main/java/com/xuqm/server/appmanager/entitys/sys/v1/ApplicationEntity.java

@@ -1,13 +1,12 @@
 package com.xuqm.server.appmanager.entitys.sys.v1;
 
 import com.xuqm.server.appmanager.entitys.converter.AbstractBaseTimeEntity;
-import com.xuqm.server.appmanager.enums.AppType;
 import jakarta.persistence.Entity;
 import jakarta.persistence.Table;
 import lombok.Data;
 
 @Entity
-@Table(name = "application_release")
+@Table(name = "app_manager")
 @Data
 public class ApplicationEntity extends AbstractBaseTimeEntity {
     private String appId;

+ 9 - 3
src/main/java/com/xuqm/server/appmanager/entitys/sys/v1/ReleaseEntity.java

@@ -2,21 +2,27 @@ package com.xuqm.server.appmanager.entitys.sys.v1;
 
 import com.xuqm.server.appmanager.entitys.converter.AbstractBaseTimeEntity;
 import com.xuqm.server.appmanager.enums.AppStatus;
-import jakarta.persistence.Entity;
-import jakarta.persistence.Table;
+import jakarta.persistence.*;
 import lombok.Data;
 
 @Entity
-@Table(name = "release")
+@Table(name = "releases")
 @Data
 public class ReleaseEntity extends AbstractBaseTimeEntity {
     private String appId;
+    @Enumerated(EnumType.STRING)
     private AppStatus huawei;
+    @Enumerated(EnumType.STRING)
     private AppStatus xiaomi;
+    @Enumerated(EnumType.STRING)
     private AppStatus meizu;
+    @Enumerated(EnumType.STRING)
     private AppStatus rongyao;
+    @Enumerated(EnumType.STRING)
     private AppStatus oppo;
+    @Enumerated(EnumType.STRING)
     private AppStatus vivo;
+    @Enumerated(EnumType.STRING)
     private AppStatus google;
     private String url;
     private String versionCode;

+ 1 - 1
src/main/java/com/xuqm/server/appmanager/entitys/sys/v1/TenantUserEntity.java

@@ -7,7 +7,7 @@ import jakarta.persistence.Table;
 import lombok.Data;
 
 @Entity
-@Table(name = "user_tenant")
+@Table(name = "users")
 @Data
 public class TenantUserEntity extends AbstractBaseTimeEntity {
     private String userId;

+ 1 - 1
src/main/resources/application.properties

@@ -8,7 +8,7 @@ spring.datasource.url = jdbc:mysql://39.107.53.187:3306/app-manager?serverTimezo
 #??????
 spring.datasource.username = app-manager
 #?????
-spring.datasource.password = x2XSX47tBtiAhxCz
+spring.datasource.password = XCTFzfjNNY42WAxb
 #mysql???????????
 spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
 #jpa?????????Hibernate?sql(??)