Skip to content

Commit

Permalink
add table index and foreign key constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jun 9, 2024
1 parent 9e1601b commit eb4ecc4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions spec/backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,21 @@
"items": {
"$ref": "Database_Table_Column"
}
},
"primaryKey": {
"$ref": "Database_Table_Index"
},
"indexes": {
"type": "array",
"items": {
"$ref": "Database_Table_Index"
}
},
"foreignKeys": {
"type": "array",
"items": {
"$ref": "Database_Table_ForeignKeyConstraint"
}
}
}
},
Expand Down Expand Up @@ -596,6 +611,43 @@
}
}
},
"Database_Table_Index": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"unique": {
"type": "boolean"
},
"columns": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Database_Table_ForeignKeyConstraint": {
"type": "object",
"properties": {
"foreignTable": {
"type": "string"
},
"localColumnNames": {
"type": "array",
"items": {
"type": "string"
}
},
"foreignColumnNames": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Database_Rows": {
"$ref": "common:Collection",
"$template": {
Expand Down

0 comments on commit eb4ecc4

Please sign in to comment.