Skip to content

Instantly share code, notes, and snippets.

@mattn9x
Last active July 8, 2017 17:00
Show Gist options
  • Save mattn9x/7f095dcbe5ff82a737bf95a4eaf392a3 to your computer and use it in GitHub Desktop.
Save mattn9x/7f095dcbe5ff82a737bf95a4eaf392a3 to your computer and use it in GitHub Desktop.
init data test
use phone_solution
db.people.insert({'name': 'ThuyNgan', 'age': 24});
db.people.insert({'name': 'NguyenManh', 'age': 24});
db.work.insert({'title': 'Travel agent', 'location': 'HaNoi'});
db.work.insert({'title': 'It Develop', 'location': 'HaNoi'});
use company
db.users.insert({'name': 'admin_company', address: 'GiaLam'});
db.users.insert({'name': 'employee', address: 'VietNam'});
user demo
db.chat.insert({'message': 'xin chao blog nguyenmanh'});
db.chat.insert({'message': 'xin chao the gioi'});
db.warning.insert({'error_message': 'Loi that roi'});
db.warning.insert({'error_message': 'Khong hieu sao lại loi'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment