web: histogram

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-01-07 21:56:30 +01:00
parent 31a4e1a277
commit 39827226d8
29 changed files with 523 additions and 321 deletions

View File

@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "ChartType" ADD VALUE 'histogram';

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `range` on the `reports` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "reports" DROP COLUMN "range";

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "reports" ADD COLUMN "range" TEXT NOT NULL DEFAULT '1m';

View File

@@ -115,6 +115,7 @@ enum Interval {
enum ChartType {
linear
bar
histogram
pie
metric
area
@@ -138,7 +139,7 @@ model Report {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
name String
interval Interval
range Int
range String @default("1m")
chart_type ChartType
breakdowns Json
events Json