Skip to content

Commit

Permalink
fix: rebuild zero schema
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcadams committed Jan 5, 2025
1 parent daef144 commit 85c98d9
Showing 1 changed file with 34 additions and 12 deletions.
46 changes: 34 additions & 12 deletions integration/zero-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"tables": {
"medium": {
"tableName": "medium",
"primaryKey": ["id"],
"primaryKey": [
"id"
],
"columns": {
"id": {
"type": "string",
Expand All @@ -86,15 +88,21 @@
},
"relationships": {
"messages": {
"sourceField": ["id"],
"destField": ["mediumId"],
"sourceField": [
"id"
],
"destField": [
"mediumId"
],
"destSchema": "message"
}
}
},
"message": {
"tableName": "message",
"primaryKey": ["id"],
"primaryKey": [
"id"
],
"columns": {
"body": {
"type": "string",
Expand All @@ -115,20 +123,30 @@
},
"relationships": {
"medium": {
"sourceField": ["mediumId"],
"destField": ["id"],
"sourceField": [
"mediumId"
],
"destField": [
"id"
],
"destSchema": "medium"
},
"sender": {
"sourceField": ["senderId"],
"destField": ["id"],
"sourceField": [
"senderId"
],
"destField": [
"id"
],
"destSchema": "user"
}
}
},
"user": {
"tableName": "user",
"primaryKey": ["id"],
"primaryKey": [
"id"
],
"columns": {
"id": {
"type": "string",
Expand All @@ -141,12 +159,16 @@
},
"relationships": {
"messages": {
"sourceField": ["id"],
"destField": ["senderId"],
"sourceField": [
"id"
],
"destField": [
"senderId"
],
"destSchema": "message"
}
}
}
}
}
}
}

0 comments on commit 85c98d9

Please sign in to comment.