's'
This commit is contained in:
@@ -134,6 +134,10 @@ COLLECTIONS: dict[str, list[dict[str, Any]]] = {
|
||||
json_field("tags"),
|
||||
text("bio", max=1000),
|
||||
text("photo", max=500),
|
||||
text("gender", max=40),
|
||||
text("single", max=40),
|
||||
json_field("lookingFor"),
|
||||
text("citySlug", max=80),
|
||||
],
|
||||
"member_applications": [
|
||||
text("userId", max=80),
|
||||
@@ -148,6 +152,9 @@ COLLECTIONS: dict[str, list[dict[str, Any]]] = {
|
||||
text("graduationYear", max=20),
|
||||
text("phone", max=40),
|
||||
text("media", max=500),
|
||||
text("location", max=120),
|
||||
text("citySlug", max=80),
|
||||
json_field("lookingFor"),
|
||||
boolean("isComplete"),
|
||||
],
|
||||
"city_volunteer_applications": [
|
||||
@@ -229,6 +236,7 @@ COLLECTIONS: dict[str, list[dict[str, Any]]] = {
|
||||
text("accessLevel", max=40),
|
||||
text("meetingProvider", max=80),
|
||||
text("mirotalkRoom", max=160),
|
||||
text("loungeChannel", max=120),
|
||||
text("meetingUrl", max=500),
|
||||
text("replayUrl", max=500),
|
||||
json_field("features"),
|
||||
@@ -341,7 +349,21 @@ COLLECTIONS: dict[str, list[dict[str, Any]]] = {
|
||||
text("content", max=2000),
|
||||
text("status", max=40),
|
||||
],
|
||||
"swipes": [text("userId", max=80), text("profileId", max=80), text("action", max=40)],
|
||||
"swipes": [
|
||||
text("userId", max=80),
|
||||
text("profileId", max=80),
|
||||
text("action", max=40),
|
||||
text("intent", max=40),
|
||||
],
|
||||
"match_connections": [
|
||||
text("pairKey", max=160),
|
||||
text("userAId", max=80),
|
||||
text("userBId", max=80),
|
||||
text("profileAId", max=80),
|
||||
text("profileBId", max=80),
|
||||
text("intent", max=40),
|
||||
date("matchedAt"),
|
||||
],
|
||||
"content_items": [
|
||||
text("slug", required=True, max=120),
|
||||
text("type", required=True, max=40),
|
||||
@@ -466,6 +488,7 @@ async def main() -> None:
|
||||
await seed_if_empty("gigs", GIGS)
|
||||
await seed_if_empty("profiles", PROFILES)
|
||||
await upsert_seed("meetups", "venue", ENHANCED_MEETUPS)
|
||||
await upsert_seed("meetups", "mirotalkRoom", MEETUPS)
|
||||
await upsert_seed("discussions", "title", ENHANCED_DISCUSSIONS)
|
||||
await upsert_seed("gigs", "title", ENHANCED_GIGS)
|
||||
await upsert_seed("profiles", "name", ENHANCED_PROFILES)
|
||||
|
||||
Reference in New Issue
Block a user