Skip to content

Commit 86b6203

Browse files
committed
tweak host club portion
1 parent bea066d commit 86b6203

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

convex/schema.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,22 @@ export default defineSchema({
3434
v.literal("info"), // announcements with no clear CTA, catch-all
3535
),
3636

37-
// ex. WICC x Jane Street, AppDev x Ramp, etc.
38-
hostClub: v.string(), // primary org (maps to a clubs table eventually)
39-
coHosts: v.array(v.string()), // ["Ramp"], [] if none
37+
// ex. WICC x Jane Street, AppDev x Ramp, WICC x AppDev
38+
hosts: v.array(
39+
v.object({
40+
name: v.string(),
41+
kind: v.union(
42+
v.literal("club"),
43+
v.literal("company"),
44+
v.literal("external_org"),
45+
),
46+
role: v.union(
47+
v.literal("primary"),
48+
v.literal("cohost"),
49+
v.literal("sponsor"),
50+
),
51+
}),
52+
),
4053

4154
dates: v.array(
4255
v.object({
@@ -109,6 +122,5 @@ export default defineSchema({
109122
})
110123
.index("by_listserv", ["listserv"])
111124
.index("by_section", ["listservSection"])
112-
.index("by_event_type", ["eventType"])
113-
.index("by_host", ["hostClub"]),
125+
.index("by_event_type", ["eventType"]),
114126
});

0 commit comments

Comments
 (0)