refactor: Projektstruktur in app/ und backend/ aufgeteilt

This commit is contained in:
2026-03-24 15:06:44 +01:00
parent 5f5d5995c5
commit 2673ef658d
449 changed files with 28551 additions and 167 deletions

View File

@@ -0,0 +1,48 @@
import 'package:objectbox/objectbox.dart';
@Entity()
class ChatMessageEntity {
@Id()
int id = 0;
@Unique()
String messageId;
@Index()
String conversationKey;
String content;
String contentType; // 'TEXT' or 'IMAGE'
@Property(type: PropertyType.date)
@Index()
DateTime createdAt;
String origin; // 'INCOMING' or 'OUTGOING'
String messageType; // 'NORMAL', 'JOB_ASSIGNMENT', etc.
String? jobId;
String? jobNumber;
bool read;
bool pendingSync;
ChatMessageEntity({
required this.messageId,
required this.conversationKey,
required this.content,
this.contentType = 'TEXT',
required this.createdAt,
required this.origin,
required this.messageType,
this.jobId,
this.jobNumber,
this.read = false,
this.pendingSync = false,
});
}