Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
{
"version": "6",
"dialect": "sqlite",
"tables": {
"incident": {
"name": "incident",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"title": {
"name": "title",
"type": "text(256)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {},
"foreignKeys": {
"incident_workspace_id_workspace_id_fk": {
"name": "incident_workspace_id_workspace_id_fk",
"tableFrom": "incident",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"incident_update": {
"name": "incident_update",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"status": {
"name": "status",
"type": "text(4)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"date": {
"name": "date",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"message": {
"name": "message",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"incident_id": {
"name": "incident_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {},
"foreignKeys": {
"incident_update_incident_id_incident_id_fk": {
"name": "incident_update_incident_id_incident_id_fk",
"tableFrom": "incident_update",
"columnsFrom": ["incident_id"],
"tableTo": "incident",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"incidents_to_monitors": {
"name": "incidents_to_monitors",
"columns": {
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"incident_id": {
"name": "incident_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"incidents_to_monitors_monitor_id_monitor_id_fk": {
"name": "incidents_to_monitors_monitor_id_monitor_id_fk",
"tableFrom": "incidents_to_monitors",
"columnsFrom": ["monitor_id"],
"tableTo": "monitor",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
},
"incidents_to_monitors_incident_id_incident_id_fk": {
"name": "incidents_to_monitors_incident_id_incident_id_fk",
"tableFrom": "incidents_to_monitors",
"columnsFrom": ["incident_id"],
"tableTo": "incident",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"incidents_to_monitors_monitor_id_incident_id_pk": {
"columns": ["incident_id", "monitor_id"]
}
},
"uniqueConstraints": {}
},
"incidents_to_pages": {
"name": "incidents_to_pages",
"columns": {
"page_id": {
"name": "page_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"incident_id": {
"name": "incident_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"incidents_to_pages_page_id_page_id_fk": {
"name": "incidents_to_pages_page_id_page_id_fk",
"tableFrom": "incidents_to_pages",
"columnsFrom": ["page_id"],
"tableTo": "page",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
},
"incidents_to_pages_incident_id_incident_id_fk": {
"name": "incidents_to_pages_incident_id_incident_id_fk",
"tableFrom": "incidents_to_pages",
"columnsFrom": ["incident_id"],
"tableTo": "incident",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"incidents_to_pages_page_id_incident_id_pk": {
"columns": ["incident_id", "page_id"]
}
},
"uniqueConstraints": {}
},
"integration": {
"name": "integration",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text(256)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"credential": {
"name": "credential",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"external_id": {
"name": "external_id",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"data": {
"name": "data",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"integration_workspace_id_workspace_id_fk": {
"name": "integration_workspace_id_workspace_id_fk",
"tableFrom": "integration",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"page": {
"name": "page",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"icon": {
"name": "icon",
"type": "text(256)",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"slug": {
"name": "slug",
"type": "text(256)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"custom_domain": {
"name": "custom_domain",
"type": "text(256)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"published": {
"name": "published",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {
"page_slug_unique": {
"name": "page_slug_unique",
"columns": ["slug"],
"isUnique": true
}
},
"foreignKeys": {
"page_workspace_id_workspace_id_fk": {
"name": "page_workspace_id_workspace_id_fk",
"tableFrom": "page",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"monitor": {
"name": "monitor",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"job_type": {
"name": "job_type",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'other'"
},
"periodicity": {
"name": "periodicity",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'other'"
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'active'"
},
"active": {
"name": "active",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": false
},
"regions": {
"name": "regions",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"url": {
"name": "url",
"type": "text(2048)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text(256)",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"headers": {
"name": "headers",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"body": {
"name": "body",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"method": {
"name": "method",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "'GET'"
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {},
"foreignKeys": {
"monitor_workspace_id_workspace_id_fk": {
"name": "monitor_workspace_id_workspace_id_fk",
"tableFrom": "monitor",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"monitors_to_pages": {
"name": "monitors_to_pages",
"columns": {
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"page_id": {
"name": "page_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"monitors_to_pages_monitor_id_monitor_id_fk": {
"name": "monitors_to_pages_monitor_id_monitor_id_fk",
"tableFrom": "monitors_to_pages",
"columnsFrom": ["monitor_id"],
"tableTo": "monitor",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
},
"monitors_to_pages_page_id_page_id_fk": {
"name": "monitors_to_pages_page_id_page_id_fk",
"tableFrom": "monitors_to_pages",
"columnsFrom": ["page_id"],
"tableTo": "page",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"monitors_to_pages_monitor_id_page_id_pk": {
"columns": ["monitor_id", "page_id"]
}
},
"uniqueConstraints": {}
},
"user": {
"name": "user",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"tenant_id": {
"name": "tenant_id",
"type": "text(256)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"first_name": {
"name": "first_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"last_name": {
"name": "last_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"photo_url": {
"name": "photo_url",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {
"user_tenant_id_unique": {
"name": "user_tenant_id_unique",
"columns": ["tenant_id"],
"isUnique": true
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"users_to_workspaces": {
"name": "users_to_workspaces",
"columns": {
"user_id": {
"name": "user_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"users_to_workspaces_user_id_user_id_fk": {
"name": "users_to_workspaces_user_id_user_id_fk",
"tableFrom": "users_to_workspaces",
"columnsFrom": ["user_id"],
"tableTo": "user",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
},
"users_to_workspaces_workspace_id_workspace_id_fk": {
"name": "users_to_workspaces_workspace_id_workspace_id_fk",
"tableFrom": "users_to_workspaces",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {
"users_to_workspaces_user_id_workspace_id_pk": {
"columns": ["user_id", "workspace_id"]
}
},
"uniqueConstraints": {}
},
"workspace": {
"name": "workspace",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"slug": {
"name": "slug",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"stripe_id": {
"name": "stripe_id",
"type": "text(256)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"subscription_id": {
"name": "subscription_id",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"plan": {
"name": "plan",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"ends_at": {
"name": "ends_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"paid_until": {
"name": "paid_until",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {
"workspace_slug_unique": {
"name": "workspace_slug_unique",
"columns": ["slug"],
"isUnique": true
},
"workspace_stripe_id_unique": {
"name": "workspace_stripe_id_unique",
"columns": ["stripe_id"],
"isUnique": true
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"notification": {
"name": "notification",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"provider": {
"name": "provider",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"data": {
"name": "data",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "'{}'"
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {},
"foreignKeys": {
"notification_workspace_id_workspace_id_fk": {
"name": "notification_workspace_id_workspace_id_fk",
"tableFrom": "notification",
"columnsFrom": ["workspace_id"],
"tableTo": "workspace",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"notifications_to_monitors": {
"name": "notifications_to_monitors",
"columns": {
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"notification_id": {
"name": "notification_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"notifications_to_monitors_monitor_id_monitor_id_fk": {
"name": "notifications_to_monitors_monitor_id_monitor_id_fk",
"tableFrom": "notifications_to_monitors",
"columnsFrom": ["monitor_id"],
"tableTo": "monitor",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
},
"notifications_to_monitors_notification_id_notification_id_fk": {
"name": "notifications_to_monitors_notification_id_notification_id_fk",
"tableFrom": "notifications_to_monitors",
"columnsFrom": ["notification_id"],
"tableTo": "notification",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"notifications_to_monitors_monitor_id_notification_id_pk": {
"columns": ["monitor_id", "notification_id"]
}
},
"uniqueConstraints": {}
},
"monitor_status": {
"name": "monitor_status",
"columns": {
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"region": {
"name": "region",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'active'"
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
}
},
"indexes": {
"monitor_status_idx": {
"name": "monitor_status_idx",
"columns": ["monitor_id", "region"],
"isUnique": false
}
},
"foreignKeys": {
"monitor_status_monitor_id_monitor_id_fk": {
"name": "monitor_status_monitor_id_monitor_id_fk",
"tableFrom": "monitor_status",
"columnsFrom": ["monitor_id"],
"tableTo": "monitor",
"columnsTo": ["id"],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"monitor_status_monitor_id_region_pk": {
"columns": ["monitor_id", "region"]
}
},
"uniqueConstraints": {}
}
},
"enums": {},
"_meta": {
"tables": {},
"columns": {}
},
"id": "452e7037-85cf-4d9a-b4e2-375a695d5fa8",
"prevId": "0f3dddb6-09cf-46a4-b12c-c5bb82475b94"
}