@bash-app/bash-common 29.41.1 → 29.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +39 -1
- package/src/definitions.ts +8 -0
- package/src/extendedSchemas.ts +4 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -808,6 +808,43 @@ enum SponsorType {
|
|
|
808
808
|
CompetitionPrizeProvider
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
+
model SocialMediaProfile {
|
|
812
|
+
id String @id @default(uuid())
|
|
813
|
+
platform SocialMediaPlatform
|
|
814
|
+
url String
|
|
815
|
+
visibility VisibilityPreference @default(Private)
|
|
816
|
+
user User @relation(fields: [userId], references: [id])
|
|
817
|
+
userId String
|
|
818
|
+
|
|
819
|
+
@@unique([userId, platform])
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
enum SocialMediaPlatform {
|
|
823
|
+
Facebook
|
|
824
|
+
Instagram
|
|
825
|
+
LinkedIn
|
|
826
|
+
TikTok
|
|
827
|
+
X
|
|
828
|
+
YouTube
|
|
829
|
+
Snapchat
|
|
830
|
+
Pinterest
|
|
831
|
+
Reddit
|
|
832
|
+
WhatsApp
|
|
833
|
+
Messenger
|
|
834
|
+
Telegram
|
|
835
|
+
Discord
|
|
836
|
+
Clubhouse
|
|
837
|
+
Twitch
|
|
838
|
+
Medium
|
|
839
|
+
BeReal
|
|
840
|
+
Mastodon
|
|
841
|
+
Tumblr
|
|
842
|
+
Threads
|
|
843
|
+
WeChat
|
|
844
|
+
Vk
|
|
845
|
+
Line
|
|
846
|
+
}
|
|
847
|
+
|
|
811
848
|
model User {
|
|
812
849
|
id String @id @default(cuid())
|
|
813
850
|
email String @unique
|
|
@@ -855,7 +892,8 @@ model User {
|
|
|
855
892
|
zipCode String?
|
|
856
893
|
country String? @default("US")
|
|
857
894
|
phone String?
|
|
858
|
-
|
|
895
|
+
socialMediaProfiles SocialMediaProfile[]
|
|
896
|
+
documentIDId String? @unique
|
|
859
897
|
documentID DocumentID?
|
|
860
898
|
comment BashComment[]
|
|
861
899
|
associatedBashes AssociatedBash[]
|
package/src/definitions.ts
CHANGED
package/src/extendedSchemas.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
ServiceAddon,
|
|
38
38
|
ServicePackage,
|
|
39
39
|
ServiceListingSubscription,
|
|
40
|
+
SocialMediaProfile,
|
|
40
41
|
} from "@prisma/client";
|
|
41
42
|
import { SERVICE_LINK_DATA_TO_INCLUDE, UnionFromArray, VENUE_DATA_TO_INCLUDE } from "./definitions";
|
|
42
43
|
|
|
@@ -520,6 +521,8 @@ export const CONTACT_DATA_TO_INCLUDE = {
|
|
|
520
521
|
export interface UserExtraData extends User {
|
|
521
522
|
password?: string;
|
|
522
523
|
otp?: string;
|
|
524
|
+
socialMediaProfiles?: SocialMediaProfile[];
|
|
525
|
+
|
|
523
526
|
}
|
|
524
527
|
|
|
525
528
|
export interface UserExt extends User {
|
|
@@ -528,6 +531,7 @@ export interface UserExt extends User {
|
|
|
528
531
|
// Do not include in fetch as there could be thousands of these
|
|
529
532
|
associatedBashes?: AssociatedBash[] | null;
|
|
530
533
|
associatedServices?: AssociatedService[] | null;
|
|
534
|
+
socialMediaProfiles?: SocialMediaProfile[] | null;
|
|
531
535
|
reviews?: ReviewExt[] | null;
|
|
532
536
|
contacts?: Contact[] | null;
|
|
533
537
|
ticketsIOwn?: TicketExt[] | null;
|