/*
 Navicat Premium Data Transfer

 Source Server         : battles
 Source Server Type    : MariaDB
 Source Server Version : 100317
 Source Host           : 192.168.20.100:3306
 Source Schema         : battles

 Target Server Type    : MariaDB
 Target Server Version : 100317
 File Encoding         : 65001

 Date: 21/10/2020 20:15:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for bank
-- ----------------------------
DROP TABLE IF EXISTS `bank`;
CREATE TABLE `bank`  (
  `user_id` smallint(6) NOT NULL,
  `money` smallint(5) UNSIGNED NULL DEFAULT 0,
  UNIQUE INDEX `bank_id_uindex`(`user_id`) USING BTREE,
  CONSTRAINT `bank_users_id_fk` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of bank
-- ----------------------------
INSERT INTO `bank` VALUES (2, 0);
