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
@@ -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 => {