USE `data_center_new`;

/*Table structure for table `login_history` */

DROP TABLE IF EXISTS `login_history`;

CREATE TABLE `login_history` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `user_id` bigint DEFAULT NULL,
  `request_ip` varchar(255) DEFAULT NULL,
  `login_time` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;



/*Table structure for table `basic_user` */

DROP TABLE IF EXISTS `basic_user`;

CREATE TABLE `basic_user` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `company_id` bigint NOT NULL,
  `username` varchar(255) DEFAULT NULL,
  `login_name` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `salt` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `mobile_number` varchar(255) DEFAULT NULL,
  `last_login_time` bigint DEFAULT NULL,
  `flag` int NOT NULL DEFAULT '0' COMMENT '0-正常，1-删除',
  `expire_time` bigint DEFAULT '4114487556000',
  `create_time` bigint DEFAULT NULL,
  `creator_id` bigint DEFAULT NULL,
  `modify_time` bigint DEFAULT NULL,
  `modifier_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

/*Data for the table `basic_user` */

insert  into `basic_user`(`id`,`company_id`,`username`,`login_name`,`password`,`salt`,`email`,`mobile_number`,`last_login_time`,`flag`,`expire_time`,`create_time`,`creator_id`,`modify_time`,`modifier_id`) values (1,1,'admin_name','admin','nVg+buw0YAs=','09bc3a7898','1053492832@qq.com',NULL,1687677967200, 0,4114487556000,4114487556000,NULL,1670312031273,NULL);



/*Table structure for table `basic_project` */

DROP TABLE IF EXISTS `basic_project`;

CREATE TABLE `basic_project` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `company_id` bigint DEFAULT NULL,
  `project_name` bigint NOT NULL COMMENT '项目名称',
  `flag` int NOT NULL DEFAULT '0' COMMENT '0-正常，1-删除',
  `create_time` bigint DEFAULT NULL,
  `creator_id` bigint DEFAULT NULL,
  `modify_time` bigint DEFAULT NULL,
  `modifier_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;


DROP TABLE IF EXISTS `basic_company`;



/*Table structure for table `basic_company` */

CREATE TABLE `basic_company` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `parent_id` bigint DEFAULT NULL COMMENT '父企业ID',
  `company_name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `flag` int DEFAULT '0' COMMENT '0-正常，1-删除',
  `create_time` bigint DEFAULT NULL,
  `creator_id` bigint DEFAULT NULL,
  `modify_time` bigint DEFAULT NULL,
  `modifier_id` bigint DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

/*Data for the table `basic_company` */

insert  into `basic_company`(`id`,`parent_id`,`company_name`,`flag`,`create_time`,`modify_time`) values (1,-1,'MiniSolution',0,1658978002231,1658978002231);

