feat: specialist_invite API + user lookup. Fixes EventHub/EventHubBack#55
This commit is contained in:
+18
-1
@@ -125,6 +125,22 @@
|
||||
updated_at :: calendar:datetime()
|
||||
}).
|
||||
|
||||
%% ------------------- Приглашения специалистов ------------------------
|
||||
%% PK = id. Pending-уникальность (calendar + user|email) — в logic.
|
||||
-record(specialist_invite, {
|
||||
id :: binary(),
|
||||
calendar_id :: binary(),
|
||||
inviter_id :: binary(),
|
||||
invitee_user_id :: binary(), % <<>> если ещё неизвестен
|
||||
invitee_email :: binary(), % <<>> если только user_id
|
||||
name :: binary(),
|
||||
specialization :: [binary()],
|
||||
status :: pending | accepted | declined | expired | cancelled,
|
||||
token :: binary(),
|
||||
created_at :: calendar:datetime(),
|
||||
expires_at :: calendar:datetime()
|
||||
}).
|
||||
|
||||
-record(location, {
|
||||
address :: binary(),
|
||||
lat :: float(),
|
||||
@@ -296,7 +312,8 @@
|
||||
-record(notification, {
|
||||
id :: binary(),
|
||||
user_id :: binary(),
|
||||
type :: booking_confirmed | event_reminder | event_cancelled | custom,
|
||||
type :: booking_confirmed | event_reminder | event_cancelled |
|
||||
specialist_invite | custom,
|
||||
title :: binary(),
|
||||
body :: binary(),
|
||||
is_read :: boolean(),
|
||||
|
||||
Reference in New Issue
Block a user