-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ethan
committed
Aug 4, 2020
1 parent
1e96d38
commit 528a779
Showing
8 changed files
with
3,490 additions
and
6,680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
DROP TABLE IF EXISTS `region`; | ||
CREATE TABLE IF NOT EXISTS `region` ( | ||
`code` int NOT NULL PRIMARY KEY, | ||
|
||
CREATE TABLE `region` ( | ||
`id` varchar(32) NOT NULL DEFAULT '', | ||
`name` varchar(50) NOT NULL, | ||
`parent_code` int NOT NULL, | ||
`lng` varchar(50) NOT NULL DEFAULT '', -- lng 经度值 | ||
`lat` varchar(50) NOT NULL DEFAULT '', -- lat 纬度值 | ||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME | ||
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=utf8 COMMENT='区域'; | ||
`parent_id` varchar(32) NOT NULL DEFAULT '', | ||
`lng` varchar(50) NOT NULL DEFAULT '', | ||
`lat` varchar(50) NOT NULL DEFAULT '', | ||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
`updated_at` datetime DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='区域'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.