-
Notifications
You must be signed in to change notification settings - Fork 4
/
conch_geo.sql
39 lines (32 loc) · 1.15 KB
/
conch_geo.sql
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
/*
Navicat Premium Data Transfer
Source Server : Haina-Dev-Mysql
Source Server Type : MySQL
Source Server Version : 80017
Source Host : 192.168.2.44:3307
Source Schema : org_management
Target Server Type : MySQL
Target Server Version : 80017
File Encoding : 65001
Date: 05/08/2019 10:59:40
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
create database if not exists `conch-geo` character set utf8mb4 collate utf8mb4_bin;
use `conch-geo`;
-- ----------------------------
-- 城市位点
-- ----------------------------
DROP TABLE IF EXISTS `area_point`;
CREATE TABLE `area_point` (
`id` varchar(255) NOT NULL COMMENT '主键ID',
`prov` varchar(255) NOT NULL COMMENT '省',
`city` varchar(255) NULL COMMENT '市',
`district` varchar(255) NULL COMMENT '区',
`lat` double NOT NULL COMMENT '纬度',
`lng` double NOT NULL COMMENT '经度',
`ct` TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `area_point_prov` (`prov`) USING BTREE COMMENT '省索引'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT '城市位点';
SET FOREIGN_KEY_CHECKS = 1;