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": {
"status_report_to_monitors": {
"name": "status_report_to_monitors",
"columns": {
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"status_report_id": {
"name": "status_report_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"status_report_to_monitors_monitor_id_monitor_id_fk": {
"name": "status_report_to_monitors_monitor_id_monitor_id_fk",
"tableFrom": "status_report_to_monitors",
"columnsFrom": [
"monitor_id"
],
"tableTo": "monitor",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
},
"status_report_to_monitors_status_report_id_status_report_id_fk": {
"name": "status_report_to_monitors_status_report_id_status_report_id_fk",
"tableFrom": "status_report_to_monitors",
"columnsFrom": [
"status_report_id"
],
"tableTo": "status_report",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"status_report_to_monitors_monitor_id_status_report_id_pk": {
"columns": [
"monitor_id",
"status_report_id"
]
}
},
"uniqueConstraints": {}
},
"status_reports_to_pages": {
"name": "status_reports_to_pages",
"columns": {
"page_id": {
"name": "page_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"status_report_id": {
"name": "status_report_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"status_reports_to_pages_page_id_page_id_fk": {
"name": "status_reports_to_pages_page_id_page_id_fk",
"tableFrom": "status_reports_to_pages",
"columnsFrom": [
"page_id"
],
"tableTo": "page",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
},
"status_reports_to_pages_status_report_id_status_report_id_fk": {
"name": "status_reports_to_pages_status_report_id_status_report_id_fk",
"tableFrom": "status_reports_to_pages",
"columnsFrom": [
"status_report_id"
],
"tableTo": "status_report",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {
"status_reports_to_pages_page_id_status_report_id_pk": {
"columns": [
"page_id",
"status_report_id"
]
}
},
"uniqueConstraints": {}
},
"status_report": {
"name": "status_report",
"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": {
"status_report_workspace_id_workspace_id_fk": {
"name": "status_report_workspace_id_workspace_id_fk",
"tableFrom": "status_report",
"columnsFrom": [
"workspace_id"
],
"tableTo": "workspace",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"status_report_update": {
"name": "status_report_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
},
"status_report_id": {
"name": "status_report_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": {
"status_report_update_status_report_id_status_report_id_fk": {
"name": "status_report_update_status_report_id_status_report_id_fk",
"tableFrom": "status_report_update",
"columnsFrom": [
"status_report_id"
],
"tableTo": "status_report",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "cascade"
}
},
"compositePrimaryKeys": {},
"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
},
"role": {
"name": "role",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'member'"
}
},
"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": {}
},
"page_subscriber": {
"name": "page_subscriber",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"page_id": {
"name": "page_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"token": {
"name": "token",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"accepted_at": {
"name": "accepted_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"expires_at": {
"name": "expires_at",
"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": {
"page_subscriber_page_id_page_id_fk": {
"name": "page_subscriber_page_id_page_id_fk",
"tableFrom": "page_subscriber",
"columnsFrom": [
"page_id"
],
"tableTo": "page",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"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": {}
},
"invitation": {
"name": "invitation",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"role": {
"name": "role",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'member'"
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"token": {
"name": "token",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"expires_at": {
"name": "expires_at",
"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'))"
},
"accepted_at": {
"name": "accepted_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"incident": {
"name": "incident",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"summary": {
"name": "summary",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "''"
},
"status": {
"name": "status",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'triage'"
},
"monitor_id": {
"name": "monitor_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"workspace_id": {
"name": "workspace_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"started_at": {
"name": "started_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(strftime('%s', 'now'))"
},
"acknowledged_at": {
"name": "acknowledged_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"acknowledged_by": {
"name": "acknowledged_by",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"resolved_at": {
"name": "resolved_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"resolved_by": {
"name": "resolved_by",
"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": {
"incident_monitor_id_started_at_unique": {
"name": "incident_monitor_id_started_at_unique",
"columns": [
"monitor_id",
"started_at"
],
"isUnique": true
}
},
"foreignKeys": {
"incident_monitor_id_monitor_id_fk": {
"name": "incident_monitor_id_monitor_id_fk",
"tableFrom": "incident",
"columnsFrom": [
"monitor_id"
],
"tableTo": "monitor",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "set default"
},
"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"
},
"incident_acknowledged_by_user_id_fk": {
"name": "incident_acknowledged_by_user_id_fk",
"tableFrom": "incident",
"columnsFrom": [
"acknowledged_by"
],
"tableTo": "user",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "no action"
},
"incident_resolved_by_user_id_fk": {
"name": "incident_resolved_by_user_id_fk",
"tableFrom": "incident",
"columnsFrom": [
"resolved_by"
],
"tableTo": "user",
"columnsTo": [
"id"
],
"onUpdate": "no action",
"onDelete": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {},
"_meta": {
"tables": {},
"columns": {}
},
"id": "d3626cd5-956f-4a64-9c70-02e5ee44cde0",
"prevId": "f5a77857-319d-4575-b570-f0aacb9eab35"
}