web: histogram
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "ChartType" ADD VALUE 'histogram';
|
||||
@@ -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";
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "reports" ADD COLUMN "range" TEXT NOT NULL DEFAULT '1m';
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user