Правки + иконка

This commit is contained in:
2025-04-01 22:38:36 +03:00
parent b1aefa9f11
commit fb7ff84087
87 changed files with 1653 additions and 1720 deletions

View File

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

View File

@@ -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))();
}