Commit 2a3584f
Changed files (1)
health_data_store
lib
health_data_store/lib/src/database_manager.dart
@@ -5,6 +5,21 @@ import 'package:sqflite_common/sqlite_api.dart';
///
/// Responsible for setting up the database and performing schema and version
/// updates.
+///
+/// ## DB scheme
+///
+/// 
+///
+/// ## Types
+/// Data in the database tries to always use the most common SI-units.
+/// Exceptions must be documented here.
+/// - Timestamps are in seconds since unix epoch
+/// - Color are integers in format 0xRRGGBB
+/// - Pressure is in *kPa* // TODO: rethink and validate this is used everywhere; possibly encapsulate values in type class
+/// - Pulse is in bpm
+/// - Weight is in kg
+/// - Length is in meter
+/// - Temperature is in kelvin
class DatabaseManager {
DatabaseManager._create(this._db);