1+ /*
2+ * This file is part of wger Workout Manager <https://github.com/wger-project>.
3+ * Copyright (c) 2020, wger Team
4+ *
5+ * wger Workout Manager is free software: you can redistribute it and/or modify
6+ * it under the terms of the GNU Affero General Public License as published by
7+ * the Free Software Foundation, either version 3 of the License, or
8+ * (at your option) any later version.
9+ *
10+ * This program is distributed in the hope that it will be useful,
11+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ * GNU Affero General Public License for more details.
14+ *
15+ * You should have received a copy of the GNU Affero General Public License
16+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17+ */
18+
119import 'package:drift/drift.dart' ;
220import 'package:drift_sqlite_async/drift_sqlite_async.dart' ;
21+ import 'package:flutter/material.dart' show TimeOfDay;
322import 'package:flutter_riverpod/flutter_riverpod.dart' ;
423import 'package:powersync/powersync.dart' show uuid;
24+ import 'package:wger/database/converters/int_to_string_converter.dart' ;
25+ import 'package:wger/database/converters/time_of_day_converter.dart' ;
526import 'package:wger/models/body_weight/weight_entry.dart' ;
627import 'package:wger/models/exercises/category.dart' ;
728import 'package:wger/models/exercises/equipment.dart' ;
@@ -12,11 +33,14 @@ import 'package:wger/models/exercises/muscle.dart';
1233import 'package:wger/models/exercises/translation.dart' ;
1334import 'package:wger/models/exercises/video.dart' ;
1435import 'package:wger/models/measurements/measurement_category.dart' ;
36+ import 'package:wger/models/workouts/log.dart' ;
37+ import 'package:wger/models/workouts/session.dart' ;
1538
1639import 'powersync.dart' ;
1740import 'tables/exercise.dart' ;
1841import 'tables/language.dart' ;
1942import 'tables/measurements.dart' ;
43+ import 'tables/routines.dart' ;
2044import 'tables/weight.dart' ;
2145
2246part 'database.g.dart' ;
@@ -41,7 +65,8 @@ part 'database.g.dart';
4165 // User data
4266 WeightEntryTable ,
4367 MeasurementCategoryTable ,
44- // WorkoutLogTable,
68+ WorkoutLogTable ,
69+ WorkoutSessionTable ,
4570 ],
4671 //include: {'queries.drift'},
4772)
0 commit comments