diff options
Diffstat (limited to 'migrations/202610150003_add_measurement.sql')
| -rw-r--r-- | migrations/202610150003_add_measurement.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/202610150003_add_measurement.sql b/migrations/202610150003_add_measurement.sql new file mode 100644 index 0000000..364e265 --- /dev/null +++ b/migrations/202610150003_add_measurement.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS measurement ( + id UUID PRIMARY KEY, + measured_at TIMESTAMPTZ NOT NULL, + metric_type metric_type NOT NULL, + value DOUBLE PRECISION NOT NULL, + unit unit NOT NULL +);
\ No newline at end of file |
