Database Export Summary
Export Information
- Source File:
C:\Users\david\Downloads\auth_backup_20260316_021641.db - Export Date: 2026-03-16T03:10:33.486822Z
- Output File:
database_export.json - Format: JSON with full schema and data
Database Structure
π Tables Exported:
- GroupMembers - Group membership relationships
- Groups - Group definitions and ownership
- Settings - Application configuration
- Users - User accounts and credentials
Data Overview
π₯ Users Table (6 records)
| Id | Name | Roles | PIN Status | |β-|ββ|ββ-|ββββ| | 1 | Admin | Admin,Player | β Secured | | 2 | Bob | Player | β Secured | | 3 | Carol | Player | β Secured | | 4 | Tad | Player | β Secured | | 5 | Alice | Player | β Secured | | 6 | Fred | Player | β Secured |
Notes:
- All users have secure PIN hashes and salts
- PIN salts and hashes are Base64 encoded in JSON
- TTS preferences are null for all users
π·οΈ Groups Table (2 records)
| Id | Name | Description | OwnerUserId | |β-|ββ|ββββ-|ββββ-| | 1 | Bob-Carol | Bob and Carolβs group | 2 (Bob) | | 2 | Ted-Alice | Ted and Aliceβs group | 5 (Alice) |
Notes:
- Groups have proper ownership relationships
- Descriptions stored with escaped characters in JSON
π GroupMembers Table (4 records)
| Id | GroupId | UserId | JoinedAtUtc | |β-|βββ|βββ|ββββ-| | 1 | 1 | 2 (Bob) | 2026-03-16 00:54:59 | | 2 | 1 | 3 (Carol) | 2026-03-16 00:54:59 | | 3 | 2 | 5 (Alice) | 2026-03-16 00:54:59 | | 4 | 2 | 4 (Tad) | 2026-03-16 00:54:59 |
Notes:
- Bob owns Bob-Carol group and is a member
- Carol is member of Bob-Carol group
- Alice owns Ted-Alice group and is a member
- Tad is member of Ted-Alice group
- Fred is not a member of any group (as expected)
βοΈ Settings Table (1 record)
| Property | Value | |βββ-|ββ-| | Id | 1 | | MaxTimeoutMins | 30 | | ReaperPeriodSeconds | 30 | | LastMoveHighlightColor | rgba(255,0,0,0.85) | | EntrapmentMode | 1 (true) | | MultiJumpGraceSeconds | 1.5 | | GameInitiatorGoesFirst | 1 (true) |
Notes:
- All expected settings are present
- GameInitiatorGoesFirst is properly set to true
- Boolean values stored as integers (0/1)
JSON Structure
Format Details:
{
"exportDate": "2026-03-16T03:10:33.486822Z",
"sourceFile": "C:\\Users\\david\\Downloads\\auth_backup_20260316_021641.db",
"tables": {
"TableName": {
"tableName": "TableName",
"columns": [
{
"name": "ColumnName",
"type": "DataType",
"notNull": boolean,
"defaultValue": value|null,
"isPrimaryKey": boolean
}
],
"rows": [
{
"ColumnName": value,
...
}
]
}
}
}
Data Type Handling:
- TEXT β JSON strings
- INTEGER β JSON numbers
- REAL β JSON numbers with decimals
- BLOB β Base64 encoded strings
- DATETIME β ISO 8601 formatted strings
- NULL β JSON null
Character Encoding:
- Special characters are properly escaped (e.g., apostrophes as \u0027)
- Unicode characters preserved correctly
- Base64 encoding for binary data (PIN hashes/salts)
Security Considerations
π Sensitive Data:
- PIN hashes are included but cryptographically secure
- PIN salts are included but random per user
- No plain text passwords or PINs stored
π Recommendations:
- Treat JSON file as sensitive - contains credential hashes
- Store securely - same security level as database file
- Donβt commit to version control - exclude via .gitignore
- Delete after use - if not needed for long-term storage
Usage Scenarios
Development/Testing:
- Database seeding reference - replicate exact data structure
- Test data validation - ensure proper relationships
- Migration testing - verify data integrity
Backup/Recovery:
- Data snapshot - point-in-time database state
- Migration source - import to new database
- Analysis - inspect data relationships
Documentation:
- Schema reference - complete table definitions
- Data examples - sample records for testing
- Configuration backup - settings preservation
Import Capability
The JSON format is structured to enable potential re-import:
- Schema preservation - column definitions maintained
- Data integrity - relationships and constraints preserved
- Type safety - data types properly serialized
File Locations
- Source Database:
C:\Users\david\Downloads\auth_backup_20260316_021641.db - JSON Export:
c:\Users\david\source\repos\Drafts\database_export.json - Documentation:
c:\Users\david\source\repos\Drafts\docs\database-export-summary.md
Verification Checklist
β Data Completeness:
- All 4 tables exported
- All user accounts present (6 total)
- All groups present (2 total)
- All group memberships present (4 total)
- Settings record present
β Data Integrity:
- Foreign key relationships preserved
- Primary key constraints maintained
- Data types correctly converted
- Special characters properly escaped
β Security:
- No plain text credentials exposed
- Hashes and salts properly encoded
- File location noted for security
Status: β COMPLETE
Database successfully exported to JSON format with complete schema and data preservation. The export includes all users, groups, memberships, and settings from the specified SQLite database file.