2023-04-11 11:41:10 +12:00
|
|
|
import 'package:moor_flutter/moor_flutter.dart';
|
|
|
|
|
|
|
|
class GymSets extends Table {
|
|
|
|
IntColumn get id => integer().autoIncrement()();
|
|
|
|
TextColumn get name => text()();
|
|
|
|
IntColumn get reps => integer()();
|
2023-11-10 16:16:12 +13:00
|
|
|
RealColumn get weight => real()();
|
2023-04-11 11:41:10 +12:00
|
|
|
IntColumn get sets => integer().withDefault(const Constant(3))();
|
|
|
|
IntColumn get minutes => integer().withDefault(const Constant(3))();
|
|
|
|
IntColumn get seconds => integer().withDefault(const Constant(30))();
|
2023-11-10 16:16:12 +13:00
|
|
|
BoolColumn get hidden =>
|
|
|
|
boolean().nullable().withDefault(const Constant(false))();
|
2023-04-11 11:41:10 +12:00
|
|
|
TextColumn get created => text()();
|
|
|
|
TextColumn get unit => text().withDefault(const Constant('kg'))();
|
2023-11-10 16:16:12 +13:00
|
|
|
TextColumn get image => text().nullable()();
|
2023-04-11 11:41:10 +12:00
|
|
|
TextColumn get steps => text().nullable()();
|
2023-04-07 15:56:17 +12:00
|
|
|
}
|