feat(account): refactor team account retrieval and update SQL function for workspace

This commit is contained in:
Danel Kungla
2025-08-18 15:59:59 +03:00
parent 1427bcd5a9
commit 937f3e4a71
4 changed files with 58 additions and 8 deletions

View File

@@ -1640,9 +1640,7 @@ export type Database = {
Returns: Json
}
create_team_account: {
Args:
| { account_name: string }
| { account_name: string; new_personal_code: string }
Args: { account_name: string; new_personal_code: string }
Returns: {
application_role: Database["medreport"]["Enums"]["application_role"]
city: string | null