30 lines
928 B
Dart
30 lines
928 B
Dart
import '../appwrite_config.dart';
|
|
|
|
/// Anleitung: Collection [kAppwriteCollectionId] in DB [kAppwriteDatabaseId].
|
|
String appwriteRechnungenCollectionCheckliste() {
|
|
final db = kAppwriteDatabaseId;
|
|
final col = kAppwriteCollectionId;
|
|
return '''In der Appwrite-Console (oder per Skript, siehe unten):
|
|
|
|
1) Databases → Datenbank „$db“.
|
|
|
|
2) Collection ID exakt: $col — Document security an.
|
|
|
|
3) String-Attribute (Appwrite 1.8.x: nur zwei erlaubt):
|
|
|
|
userId (required, Index)
|
|
extendedJson (JSON v2: kompletter Auftrag inkl. titel, Fotos, Unterschrift, …)
|
|
|
|
4) Index auf userId.
|
|
|
|
5) Storage-Bucket „$kAppwriteBucketId“.
|
|
|
|
—— Automatisch ——
|
|
WARNUNG: Löscht die Collection „$col“ inkl. aller Dokumente und legt sie neu an.
|
|
|
|
export APPWRITE_API_KEY='neuer_Schlüssel'
|
|
dart run tool/setup_appwrite_rechnungen.dart
|
|
|
|
Schlüssel nie in Chat/App/Git. Alten Key nach Leaken in Appwrite widerrufen.''';
|
|
}
|