limits ddl for sqlite (#606)

This commit is contained in:
Michael Quigley 2024-05-13 12:39:30 -04:00
parent 5d72890d32
commit 1238c4981c
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -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)
)