File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments