Skip to content

Instantly share code, notes, and snippets.

View wx-chevalier's full-sized avatar
🎯
Focusing

王下邀月熊 wx-chevalier

🎯
Focusing
View GitHub Profile
@wx-chevalier
wx-chevalier / datebase_demo.sql
Last active November 17, 2018 04:41
Demo Datebase for SQL Learning, Backend Application Example, MySQL Optimization, etc.
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `component`
-- ----------------------------
DROP TABLE IF EXISTS `component`;
CREATE TABLE `component` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(40) DEFAULT NULL,
@wx-chevalier
wx-chevalier / es-data.sh
Created December 8, 2017 13:44
ElasticSearch Data Generator
curl -XPUT "http://localhost:9200/movies/movie/1" -d'
{
"title": "The Godfather",
"director": "Francis Ford Coppola",
"year": 1972,
"genres": ["Crime", "Drama"]
}'
curl -XPUT "http://localhost:9200/movies/movie/2" -d'
{