Skip to content

Commit

Permalink
added dab configuration file, dummy data in tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArth1 committed Aug 22, 2024
1 parent c93f435 commit cd33a90
Show file tree
Hide file tree
Showing 184 changed files with 41,621 additions and 115 deletions.
Empty file added .devcontainer/check sql.sql
Empty file.
372 changes: 372 additions & 0 deletions dab-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,372 @@
{
"$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.2.10/dab.draft.schema.json",
"data-source": {
"database-type": "mssql",
"connection-string": "Server=localhost;TrustServerCertificate=True;Database=ScooterDB;User ID=sa;Password=P@ssw0rd!",
"options": {
"set-session-context": false
}
},
"runtime": {
"rest": {
"enabled": true,
"path": "/api",
"request-body-strict": true
},
"graphql": {
"enabled": true,
"path": "/graphql",
"allow-introspection": true
},
"host": {
"cors": {
"origins": [],
"allow-credentials": false
},
"authentication": {
"provider": "StaticWebApps"
},
"mode": "development"
}
},
"entities": {
"User": {
"source": {
"object": "dbo.UserAuthentication",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "User",
"plural": "Users"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"UserInfo": {
"source": {
"object": "dbo.UserManagement",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "UserInfo",
"plural": "UserInfos"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Scooter": {
"source": {
"object": "dbo.Scooters",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Scooter",
"plural": "Scooters"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"ScooterTracker": {
"source": {
"object": "dbo.ScooterTracking",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "ScooterTracker",
"plural": "ScooterTrackers"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Ride": {
"source": {
"object": "dbo.Rides",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Ride",
"plural": "Rides"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Issue": {
"source": {
"object": "dbo.ScooterIssues",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Issue",
"plural": "Issues"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Reward": {
"source": {
"object": "dbo.Rewards",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Reward",
"plural": "Rewards"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"PaymentMethod": {
"source": {
"object": "dbo.PaymentMethods",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "PaymentMethod",
"plural": "PaymentMethods"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Payment": {
"source": {
"object": "dbo.Payments",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Payment",
"plural": "Payments"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Notification": {
"source": {
"object": "dbo.Notifications",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Notification",
"plural": "Notifications"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"MaintenanceRecord": {
"source": {
"object": "dbo.MaintenanceRecords",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "MaintenanceRecord",
"plural": "MaintenanceRecords"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"Geofence": {
"source": {
"object": "dbo.Geofences",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "Geofence",
"plural": "Geofences"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
},
"GeofenceViolation": {
"source": {
"object": "dbo.GeofenceViolations",
"type": "table"
},
"graphql": {
"enabled": true,
"type": {
"singular": "GeofenceViolation",
"plural": "GeofenceViolations"
}
},
"rest": {
"enabled": true
},
"permissions": [
{
"role": "anonymous",
"actions": [
{
"action": "*"
}
]
}
]
}
}
}
Binary file modified database/Library/bin/Debug/Library.dacpac
Binary file not shown.
Binary file modified database/Library/bin/Debug/Library.dll
Binary file not shown.
Binary file modified database/Library/bin/Debug/Library.pdb
Binary file not shown.
Binary file modified database/Library/obj/Debug/Library.dll
Binary file not shown.
Binary file modified database/Library/obj/Debug/Library.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@
/workspaces/javascript-node/database/Library/obj/Debug/predeploy.sql
/workspaces/javascript-node/database/Library/obj/Debug/Library.dll
/workspaces/javascript-node/database/Library/obj/Debug/Library.pdb
/workspace/database/Library/bin/Debug/Library.dacpac
/workspace/database/Library/bin/Debug/Library.dll
/workspace/database/Library/bin/Debug/Library.pdb
/workspace/database/Library/obj/Debug/Model.xml
/workspace/database/Library/obj/Debug/refactor.xml
/workspace/database/Library/obj/Debug/postdeploy.sql
/workspace/database/Library/obj/Debug/predeploy.sql
/workspace/database/Library/obj/Debug/Library.dll
/workspace/database/Library/obj/Debug/Library.pdb
Loading

0 comments on commit cd33a90

Please sign in to comment.