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