text: /*
   Navicat Premium Data Transfer
  
   Source Server         : TestYii2
   Source Server Type    : MySQL
   Source Server Version : 80016
   Source Host           : localhost:3306
   Source Schema         : test
  
   Target Server Type    : MySQL
   Target Server Version : 80016
   File Encoding         : 65001
  
   Date: 19/07/2019 01:02:45
  */
  
  SET NAMES utf8mb4;
  SET FOREIGN_KEY_CHECKS = 0;
  
  -- ----------------------------
  -- Table structure for asset
  -- ----------------------------
  DROP TABLE IF EXISTS `asset`;
  CREATE TABLE `asset`  (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `type` enum('computer','electronic') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    `number` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    `name` varchar(45) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    `create_date` date NULL DEFAULT NULL,
    `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
  ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  
  -- ----------------------------
  -- Records of asset
  -- ----------------------------
  INSERT INTO `asset` VALUES (12, 'computer', '1234', 'คอม', '2019-07-16', '');
  INSERT INTO `asset` VALUES (14, 'computer', '1234', 'คอม', '2019-07-16', 'uploads/image/อะตอม.PNG1488,png');
  
  SET FOREIGN_KEY_CHECKS = 1;
  