From 1238c4981c27761ec5a254951379994ab5ef1e9d Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 13 May 2024 12:39:30 -0400 Subject: [PATCH] limits ddl for sqlite (#606) --- .../sql/sqlite3/022_v0_4_31_limits_classes.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 controller/store/sql/sqlite3/022_v0_4_31_limits_classes.sql diff --git a/controller/store/sql/sqlite3/022_v0_4_31_limits_classes.sql b/controller/store/sql/sqlite3/022_v0_4_31_limits_classes.sql new file mode 100644 index 00000000..70792f1e --- /dev/null +++ b/controller/store/sql/sqlite3/022_v0_4_31_limits_classes.sql @@ -0,0 +1,16 @@ +-- +migrate Up + +create table limits_classes ( + id serial primary key, + limit_scope string not null default ('account'), + limit_action string not null default ('limit'), + share_mode string, + backend_mode string, + period_minutes int not null default (1440), + rx_bytes bigint not null default (-1), + tx_bytes bigint not null default (-1), + total_bytes bigint not null default (-1), + created_at timestamptz not null default(current_timestamp), + updated_at timestamptz not null default(current_timestamp), + deleted boolean not null default(false) +) \ No newline at end of file