yin 9 mēneši atpakaļ
vecāks
revīzija
882c9b997e

+ 14 - 0
install/mysql/init/scan_central_db.sql

@@ -531,4 +531,18 @@ CREATE TABLE IF NOT EXISTS `sc_assigned_check_history`
     UNIQUE KEY `student_user` (`student_id`,`user_id`),
     UNIQUE KEY `student_user` (`student_id`,`user_id`),
     KEY `student` (`student_id`)
     KEY `student` (`student_id`)
     ) ENGINE = InnoDB
     ) ENGINE = InnoDB
+    DEFAULT CHARSET = utf8mb4;
+    
+CREATE TABLE IF NOT EXISTS `sc_device`
+(
+    `id`          int(11)     NOT NULL AUTO_INCREMENT,
+    `device`  varchar(64) NOT NULL,
+    `device_name` varchar(64) NOT NULL,
+    `creator_id`  bigint      DEFAULT NULL,
+    `updater_id`  bigint      DEFAULT NULL,
+    `create_time` bigint      DEFAULT NULL,
+    `update_time` bigint      DEFAULT NULL,
+    PRIMARY KEY (`id`),
+    UNIQUE KEY `login_name` (`login_name`)
+    ) ENGINE = InnoDB
     DEFAULT CHARSET = utf8mb4;
     DEFAULT CHARSET = utf8mb4;

+ 35 - 0
src/main/java/cn/com/qmth/scancentral/entity/DeviceEntity.java

@@ -0,0 +1,35 @@
+package cn.com.qmth.scancentral.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import cn.com.qmth.scancentral.entity.base.AuditingEntity;
+
+// 设备
+@TableName("sc_device")
+public class DeviceEntity extends AuditingEntity {
+
+    /**
+     * 
+     */
+    private static final long serialVersionUID = -4846284398208292028L;
+
+    private String device;
+
+    private String deviceName;
+
+    public String getDevice() {
+        return device;
+    }
+
+    public void setDevice(String device) {
+        this.device = device;
+    }
+
+    public String getDeviceName() {
+        return deviceName;
+    }
+
+    public void setDeviceName(String deviceName) {
+        this.deviceName = deviceName;
+    }
+}