mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
indent
This commit is contained in:
parent
eeebda8d67
commit
11d7047b46
1 changed files with 7 additions and 7 deletions
|
@ -1,13 +1,13 @@
|
||||||
create type if not exists inet_protocol as enum ('tcp', 'udp');
|
create type if not exists inet_protocol as enum ('tcp', 'udp');
|
||||||
|
|
||||||
create table if not exists client (
|
create table if not exists client (
|
||||||
client_id uuid NOT NULL primary key unique,
|
client_id uuid NOT NULL primary key unique,
|
||||||
created timestamp NOT NULL,
|
created timestamp NOT NULL,
|
||||||
ip_address inet NOT NULL,
|
ip_address inet NOT NULL,
|
||||||
"protocol" inet_protocol NOT NULL,
|
"protocol" inet_protocol NOT NULL,
|
||||||
enabled boolean NOT NULL,
|
enabled boolean NOT NULL,
|
||||||
last_packets bigint default 0,
|
last_packets bigint default 0,
|
||||||
last_activity timestamp
|
last_activity timestamp
|
||||||
);
|
);
|
||||||
|
|
||||||
create index if not exists client_ip_address_index on client (ip_address);
|
create index if not exists client_ip_address_index on client (ip_address);
|
||||||
|
|
Loading…
Reference in a new issue