modify entities according to NNBD models
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -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>())();
|
||||
|
||||
Reference in New Issue
Block a user