Skip to main content

数据库

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服务

Release files for xj-location 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xj-location 1.1.8
File Size Uploaded
xj_location-1.1.8.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xj-location 1.1.8
File Interpreter ABI Platform
xj_location-1.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 53.5 kB

Release files / xj_location-1.1.8.tar.gz

Download URL xj_location-1.1.8.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9d29f3c6e66e9bf73903868adddf63db43f6f0a95ea6702a4cc61e2ac630b4e8
BLAKE2b-256 checksum
How to use checksums
950a5de4f8a3dd51d50c53430993ebbb0f29eb016bb1d38cd09203dc454bb736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

Release files / xj_location-1.1.8-py3-none-any.whl

Download URL xj_location-1.1.8-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bed0a9efdd316d2a49f5866d7461bc85bdf15ed7addd0b128f1c03d21adc4d9
BLAKE2b-256 checksum
How to use checksums
43e2153121594744bb9de9d2d50ed86c471fa5e7192c6beae245c7dae88690c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

1 release file

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page