update
This commit is contained in:
parent
f87e1511bc
commit
e48e400e43
13 changed files with 333 additions and 33 deletions
|
|
@ -10,6 +10,16 @@ class RefGenericNames {
|
|||
return data.toList();
|
||||
}
|
||||
|
||||
Future<String> getCategoryUUID(name) async {
|
||||
final data = await _supabase.from('ref_generic_names').select('ref_categories_uuid').eq('generic_name', name);
|
||||
return data.first['ref_categories_uuid'].toString();
|
||||
}
|
||||
|
||||
Future<String> getUUID(name) async {
|
||||
final data = await _supabase.from('ref_generic_names').select('ref_generic_names_uuid').eq('generic_name', name);
|
||||
return data.first['ref_generic_names_uuid'].toString();
|
||||
}
|
||||
|
||||
Future<void> postGeneric(String name, String uuid) async {
|
||||
final genericUUID = Uuid().v4();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue