{ "db_name": "SQLite", "query": "\n SELECT pc.id, pc.code, pc.expires_at, pc.used, m.id as machine_id, m.user_id, u.username\n FROM provisioning_codes pc\n JOIN machines m ON pc.machine_id = m.id\n JOIN users u ON m.user_id = u.id\n WHERE pc.code = ? AND pc.used = 0\n ", "describe": { "columns": [ { "name": "id", "ordinal": 0, "type_info": "Integer" }, { "name": "code", "ordinal": 1, "type_info": "Text" }, { "name": "expires_at", "ordinal": 2, "type_info": "Datetime" }, { "name": "used", "ordinal": 3, "type_info": "Bool" }, { "name": "machine_id", "ordinal": 4, "type_info": "Integer" }, { "name": "user_id", "ordinal": 5, "type_info": "Integer" }, { "name": "username", "ordinal": 6, "type_info": "Text" } ], "parameters": { "Right": 1 }, "nullable": [ true, false, false, true, true, false, false ] }, "hash": "2d6e5810f76e780a4a9b54c5ea39d707be614eb304dc6b4f32d8b6d28464c4b5" }