modify entities according to NNBD models
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -15,7 +15,7 @@ class Reads extends Table {
|
||||
text().customConstraint('REFERENCES channels(cid) ON DELETE CASCADE')();
|
||||
|
||||
/// Number of unread messages
|
||||
IntColumn get unreadMessages => integer().nullable()();
|
||||
IntColumn get unreadMessages => integer().withDefault(const Constant(0))();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {
|
||||
|
||||
Reference in New Issue
Block a user