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
@@ -24,16 +24,16 @@ class Channels extends Table {
DateTimeColumn get lastMessageAt => dateTime().nullable()();
/// The date of channel creation
DateTimeColumn get createdAt => dateTime().nullable()();
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
/// The date of the last channel update
DateTimeColumn get updatedAt => dateTime().nullable()();
DateTimeColumn get updatedAt => dateTime().withDefault(currentDateAndTime)();
/// The date of channel deletion
DateTimeColumn get deletedAt => dateTime().nullable()();
/// The count of this channel members
IntColumn get memberCount => integer().nullable()();
IntColumn get memberCount => integer().withDefault(const Constant(0))();
/// The id of the user that created this channel
TextColumn get createdById => text().nullable()();