Правки + иконка
This commit is contained in:
@@ -34,7 +34,7 @@ class CollectionsDao extends DatabaseAccessor<AppDatabase>
|
||||
title: dto.title,
|
||||
desc: dto.desc,
|
||||
isPublic: Value<bool>(dto.isPublic),
|
||||
image: Value<String?>(dto.avatar),
|
||||
image: Value<Uint8List?>(dto.avatar),
|
||||
),
|
||||
);
|
||||
} catch (e, st) {
|
||||
@@ -52,7 +52,7 @@ class CollectionsDao extends DatabaseAccessor<AppDatabase>
|
||||
title: Value<String>(dto.title),
|
||||
desc: Value<String>(dto.desc),
|
||||
isPublic: Value<bool>(dto.isPublic),
|
||||
image: Value<String?>(dto.avatar),
|
||||
image: Value<Uint8List?>(dto.avatar),
|
||||
),
|
||||
);
|
||||
} catch (e, st) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -64,10 +64,23 @@ mixin _Deletable on Table {
|
||||
class Collections extends Table with _UuidPrimaryKey, _Timestampable {
|
||||
TextColumn get title => text()();
|
||||
TextColumn get desc => text()();
|
||||
TextColumn get image => text().nullable()();
|
||||
BlobColumn get image => blob().nullable()();
|
||||
TextColumn get payload => text().nullable()();
|
||||
IntColumn get likesCount => integer().withDefault(Constant(0))();
|
||||
BoolColumn get isLiked => boolean().withDefault(Constant(false))();
|
||||
BoolColumn get isPublic => boolean().withDefault(Constant(false))();
|
||||
BoolColumn get includeInTraining => boolean().withDefault(Constant(false))();
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
///
|
||||
@DataClassName('Ticket')
|
||||
class Tickets extends Table with _UuidPrimaryKey, _Timestampable {
|
||||
TextColumn get question => text()();
|
||||
TextColumn get answer => text()();
|
||||
BlobColumn get image => blob().nullable()();
|
||||
TextColumn get collectionId =>
|
||||
text().references(Collections, #id, onDelete: KeyAction.cascade)();
|
||||
RealColumn get progress => real().withDefault(Constant(0))();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user