sudo mysqldump -h192.168.0.2 -uadmin -p bill -R > /data/service/ths/backsql/bill_$(date +%Y%m%d_%H%M%S).sql
DROP TABLE IF EXISTS `common`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `common_file` (
`id` bigint(20) NOT NULL,
`from_id` bigint(20) DEFAULT NULL COMMENT '业务',
`name` varchar(100) DEFAULT NULL COMMENT '名称',
`new_atta_url` varchar(100) DEFAULT NULL COMMENT '文件',
`file_type` varchar(50) DEFAULT NULL COMMENT '类型',
`group_id` varchar(100) DEFAULT NULL COMMENT '小组id',
`status` tinyint(1) DEFAULT '1' COMMENT '状态:0无效;1有效',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
`create_user_id` bigint(20) DEFAULT NULL COMMENT '创建人',
`update_user_id` bigint(20) DEFAULT NULL COMMENT '修改人',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公共表';
/*!40101 SET character_set_client = @saved_cs_client */;