bugfix(image): Перенос хранения картинок из бд в папку приложения
This commit is contained in:
@@ -64,7 +64,7 @@ mixin _Deletable on Table {
|
||||
class Collections extends Table with _UuidPrimaryKey, _Timestampable {
|
||||
TextColumn get title => text()();
|
||||
TextColumn get desc => text()();
|
||||
BlobColumn get image => blob().nullable()();
|
||||
TextColumn get image => text().nullable()();
|
||||
TextColumn get payload => text().nullable()();
|
||||
IntColumn get likesCount => integer().withDefault(Constant(0))();
|
||||
BoolColumn get isLiked => boolean().withDefault(Constant(false))();
|
||||
@@ -78,9 +78,9 @@ class Collections extends Table with _UuidPrimaryKey, _Timestampable {
|
||||
@DataClassName('Ticket')
|
||||
class Tickets extends Table with _UuidPrimaryKey, _Timestampable {
|
||||
TextColumn get question => text()();
|
||||
BlobColumn get questionImage => blob().named('question_image').nullable()();
|
||||
TextColumn get questionImage => text().named('question_image').nullable()();
|
||||
TextColumn get answer => text()();
|
||||
BlobColumn get answerImage => blob().named('answer_image').nullable()();
|
||||
TextColumn get answerImage => text().named('answer_image').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