modify entities according to NNBD models

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-20 15:37:12 +05:30
parent 271dad7f0c
commit e3589a3030
8 changed files with 1323 additions and 1459 deletions
@@ -16,10 +16,10 @@ class Reactions extends Table {
TextColumn get type => text()();
/// The DateTime on which the reaction is created
DateTimeColumn get createdAt => dateTime()();
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
/// The score of the reaction (ie. number of reactions sent)
IntColumn get score => integer().nullable()();
IntColumn get score => integer().withDefault(const Constant(0))();
/// Reaction custom extraData
TextColumn get extraData => text().nullable().map(MapConverter<Object>())();