数据库
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服务
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xj_location-1.1.8.tar.gz | 20.8 kB | Without provenance | Details for xj_location-1.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xj_location-1.1.8-py3-none-any.whl | Python 3 | none | any | Details for xj_location-1.1.8-py3-none-any.whl |
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
|
Security for xj-location 1.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.