{


		".rules": {
			".read": "true",
			".write": "state.auth && state.auth.username=='admin'",
			".download": "true",
			".upload": "state.auth && state.auth.username=='admin'",
			".execute": "state.auth && state.auth.username=='admin'",
			"database.json" : {
				".download": "state.auth && state.auth.username=='admin'"
			},
			"users": {
				"$user": {
					".read": "state.auth && (state.auth.username == $user || state.auth.username == 'admin')",
					".upload": "state.auth && state.auth.username == $user && path.indexOf('router.js')==-1",
					"name" : {
						".read" : "true"
					},
					"status" : {
						".read" : "true"
					},
					"playing" : {
						".read" : "true"
					}
				}
			},
			"messages" : {
				"$sender" : {
					".read": "state.auth && (state.auth.username == $sender || root.child('users').child(state.auth.username).child('relations').child('friend').child($sender).exists() )",
					"$receiver" : {
						".read": "state.auth && (state.auth.username == $receiver || state.auth.username == $sender )"
					}
				}
			},
			"games" : {
				"$game" : {
					"scoreboards" : {
						"$scoreboard" : {
							".read" : "true"
						}
					},
					"player_data" : {
						"$player" : {
							".read": "state.auth && state.auth.username == $player"
						}
					},
					"achievements" : {
						"$achievement" : {
							"earned_players" : {
								"$player" : {
									".read": "state.auth && state.auth.username == $player"
								}
							}
						}
					}
				}
			},
			"email_activation" : {
				".read": "state.auth && state.auth.username=='admin'"
			},
			"emails" : {
				".read": "state.auth && state.auth.username=='admin'"
			},
			".rules": {
				".read": "state.auth && state.auth.username=='admin'",
				".write": "state.auth && state.auth.username=='admin'"
			},
			".auth_keys": {
				".read": "state.auth && state.auth.username=='admin'",
				".write": "state.auth && state.auth.username=='admin'"
			}
		},


		"users": {
			"admin": {
				"note": "password is admin",
				"password": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"
			},
			"protouser" : {
				"name" : "Proto User",
				"email" : "protouser@protomail.com",
				"status" : "offline",
				"ctime" : 0,
				"password" : "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
				"playing" : {
					"protogame" : {
						"status" : "owned",
						"points" : 99995,
						"ctime" : 0,
						"ptime" : 0
					}
				},
				"relations" : {
					"friend_request" : {
						"protouser" : {
							"since" : 0
						}
					},
					"block" : {}
				},
				"notifications" : {
					"0" : {
						"type" : "info",
						"status" : "unread",
						"message" : "welcome to custom store"
					},
					"length" : 1
				}
			}
		},
		"messages" : {
			"protouser" : {
				"protouser" : {
					"0" : {
						"message" : "hello to myself",
						"time" : 0,
						"status" : "unread"
					},
					"length" : 0
				}
			}
		},

		"news" : {
			"0" : {
				"title" : "Big discount",
				"type" : "discount",
				"message" : "The Proto Game Discount!!!"
			},
			"length" : 1
		},

		"games": {

			"protogame" : {
				"name" : "The Proto Game",
				"type" : "arcade",
				"priority" : 0,
				"description" : "Proto Games is best game around world!",
				"price" : 37.5,
				"time" : 0,
				"owner" : "protouser",
				"active" : true,
				"settings" : {

				},
				"player_data" : {
					"protouser":{
						"data" : 0
					}
				},
				"scoreboards": {
					"level1_board" : {
						"name" : "Level 1 Score Board",
						"description" : "Level 1 is so cool yeah?",
						"time" : 0,
						"scores" : {
							"protouser" : {
								"score" : 5000,
								"time" : 0
							}
						}
					}
				},
				"achievements": {
					"complete_all_levels" : {
						"name" : "Complate All Levels",
						"description" : "Game is so cool yeah?",
						"time" : 0,
						"score" :50,
						"earned_players" : {
							"protouser":{
								"time" : 0
							}
						}
					}
				}
			}

		},

		"enum" : {
			"game_types" : {
				"arcade" : {},
				"similation" : {},
				"puzzle" : {}
			},

			"game_status" : {
				"playing" : {},
				"owned" : {},
				"installed" : {},
				"uninstalled" : {}
			}
		}
}