t_hpai_member_info.sql
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
Navicat MySQL Data Transfer
Source Server : 127
Source Server Version : 50632
Source Host : localhost
Source Database : csair_dp
Target Server Version : 50632
File Encoding : utf-8
Date: 12/29/2017 17:28:10 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `t_hpai_member_info`
-- ----------------------------
DROP TABLE IF EXISTS `t_hpai_member_info`;
CREATE TABLE `t_hpai_member_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`source` bigint(20) NOT NULL,
`timestamp` bigint(20) NOT NULL,
`barcode` varchar(128) NOT NULL,
`channel_id` bigint(20) NOT NULL,
`manager_id` bigint(20) NOT NULL,
`name` varchar(255) NOT NULL,
`gender` char(32) NOT NULL,
`birthday_str` varchar(128) NOT NULL,
`mobile_number` varchar(255) NOT NULL,
`sampling_date` varchar(255) NOT NULL,
`recipients` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`family_disease` varchar(255) NOT NULL,
`existing_disease` varchar(255) NOT NULL,
`weight` float NOT NULL,
`height` bigint(20) NOT NULL,
`remarks` varchar(255) DEFAULT NULL,
`create_at` datetime NOT NULL,
`status` tinyint(4) NOT NULL,
`member_number` varchar(255) NOT NULL,
`is_genereport` tinyint(4) DEFAULT '0',
`genereport_at` datetime DEFAULT NULL,
`pack_name` varchar(255) DEFAULT NULL,
`pdf_name` varchar(255) DEFAULT NULL,
`url` text,
`genereport_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;
SET FOREIGN_KEY_CHECKS = 1;