urca non ci credo, potrebbe già funzionare

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-26 16:29:31 +02:00
parent 1d3a685368
commit 6cbf0479a1
9 changed files with 297 additions and 101 deletions

View File

@@ -108,4 +108,12 @@ class CoreRepository {
throw Exception('Creazione profilo staff fallita: $e');
}
}
// Assegna un membro a un negozio
Future<void> assignStaffToStore(String staffId, String storeId) async {
await _supabase.from('staff_in_stores').insert({
'staff_member_id': staffId,
'store_id': storeId,
});
}
}