定位模块
Project description
数据库
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for location_boundary
-- ----------------------------
DROP TABLE IF EXISTS `location_boundary`;
CREATE TABLE `location_boundary` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`boundary_list` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '边界线列表',
`name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '名称',
`created_at` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for location_location
-- ----------------------------
DROP TABLE IF EXISTS `location_location`;
CREATE TABLE `location_location` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站名',
`region_code` bigint(18) NULL DEFAULT NULL COMMENT '区站号',
`address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站址',
`longitude` decimal(10, 6) NULL DEFAULT NULL COMMENT '经度',
`latitude` decimal(10, 6) NULL DEFAULT NULL COMMENT '纬度',
`group_id` int(11) NOT NULL DEFAULT 0 COMMENT '分组ID',
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户ID',
`by_user_id` int(11) NOT NULL DEFAULT 0 COMMENT '填报用户ID',
`updated_at` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
`created_at` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
`is_delete` tinyint(2) NOT NULL COMMENT '是否删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `code`(`region_code`) USING BTREE,
INDEX `lng`(`longitude`) USING BTREE,
INDEX `lat`(`latitude`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 231 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '气象站信息' ROW_FORMAT = Compact;
-- ----------------------------
-- Table structure for location_region
-- ----------------------------
DROP TABLE IF EXISTS `location_region`;
CREATE TABLE `location_region` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` bigint(16) NOT NULL COMMENT '行政区划代码',
`level` int(1) NOT NULL DEFAULT 0 COMMENT '类型: 0国家或者未填写 1-省 直辖市 2-市 3-区县',
`p_code` bigint(16) NOT NULL DEFAULT 0 COMMENT '父级行政区划代码',
`name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`is_delete` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0',
PRIMARY KEY (`id`) USING BTREE,
INDEX `complex_code`(`p_code`, `code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3222 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
使用
1.使用之前注意需要配置redis服务
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xj_location-1.1.8.tar.gz
(20.8 kB
view details)
Built Distribution
File details
Details for the file xj_location-1.1.8.tar.gz
.
File metadata
- Download URL: xj_location-1.1.8.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d29f3c6e66e9bf73903868adddf63db43f6f0a95ea6702a4cc61e2ac630b4e8 |
|
MD5 | 43ff8b6ffd2338ac7a075df3e234076b |
|
BLAKE2b-256 | 950a5de4f8a3dd51d50c53430993ebbb0f29eb016bb1d38cd09203dc454bb736 |
File details
Details for the file xj_location-1.1.8-py3-none-any.whl
.
File metadata
- Download URL: xj_location-1.1.8-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bed0a9efdd316d2a49f5866d7461bc85bdf15ed7addd0b128f1c03d21adc4d9 |
|
MD5 | 648edc16c1315aac867cdd1586d4dad8 |
|
BLAKE2b-256 | 43e2153121594744bb9de9d2d50ed86c471fa5e7192c6beae245c7dae88690c2 |