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()();
|
|
|
|
IntColumn get weight => integer()();
|
|
|
|
IntColumn get sets => integer().withDefault(const Constant(3))();
|
|
|
|
IntColumn get minutes => integer().withDefault(const Constant(3))();
|
|
|
|
IntColumn get seconds => integer().withDefault(const Constant(30))();
|
|
|
|
BoolColumn get hidden => boolean().withDefault(const Constant(false))();
|
|
|
|
TextColumn get created => text()();
|
|
|
|
TextColumn get unit => text().withDefault(const Constant('kg'))();
|
|
|
|
TextColumn get image => text()();
|
|
|
|
TextColumn get steps => text().nullable()();
|
2023-04-07 15:56:17 +12:00
|
|
|
}
|