数据库字段修正

This commit is contained in:
welsir
2023-10-18 14:29:59 +08:00
parent d7366ed0ec
commit 6017d3a3a2
4 changed files with 16 additions and 0 deletions
+12
View File
@@ -32,5 +32,17 @@
</library>
</libraries>
</data-source>
<data-source source="LOCAL" name="database [2]" uuid="51bc4519-2daa-4834-9a57-e7a35f209e89">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:D:\code\gitHubProject\ChopperBot-newVersion\database.db</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
<libraries>
<library>
<url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.43.0/sqlite-jdbc-3.43.0.0.jar</url>
</library>
</libraries>
</data-source>
</component>
</project>
@@ -2,6 +2,7 @@ package org.example.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.pojo.AccountType;
import org.springframework.stereotype.Component;
/**
@@ -9,5 +10,6 @@ import org.example.pojo.AccountType;
* @Author welsir
* @Date 2023/9/24 16:08
*/
@Component
public interface AccountTypeMapper extends BaseMapper<AccountType> {
}
@@ -1,5 +1,6 @@
package org.example.pojo;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
@@ -16,6 +17,7 @@ import lombok.NoArgsConstructor;
@TableName(value = "account_type")
public class AccountType {
@TableId
private Long uid;
private String type;
}
BIN
View File
Binary file not shown.