17 lines
720 B
Dart
17 lines
720 B
Dart
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()();
|
|
}
|