<commit_before>--
-- create new Captive Portal database
--

-- connected clients
create table cp_clients (
      zoneid int
,     sessionid varchar
,     username varchar
,     ip_address varchar
,     mac_address varchar
,     created number
,     deleted integer default (0)
,     primary key (zoneid, sessionid)
);

create index cp_clients_ip ON cp_clients (ip_address);
create index cp_clients_zone ON cp_clients (zoneid);

-- session (accounting) info
create table session_info (
      zoneid int
,     sessionid varchar
,     prev_packets_in integer
,     prev_bytes_in   integer
,     prev_packets_out integer
,     prev_bytes_out   integer
,     packets_in integer default (0)<commit_msg>(captiveportal, new) sql template addition<commit_after>--
-- create new Captive Portal database
--

-- connected clients
create table cp_clients (
      zoneid int
,     sessionid varchar
,     authenticated_via varchar
,     username varchar
,     ip_address varchar
,     mac_address varchar
,     created number
,     deleted integer default (0)
,     primary key (zoneid, sessionid)
);

create index cp_clients_ip ON cp_clients (ip_address);
create index cp_clients_zone ON cp_clients (zoneid);

-- session (accounting) info
create table session_info (
      zoneid int
,     sessionid varchar
,     prev_packets_in integer
,     prev_bytes_in   integer
,     prev_packets_out integer
,     prev_bytes_out   integer
,     packets_in integer default (0)
{'fraction_non_alphanumeric': 0.06469373709566414, 'fraction_numerical': 0.0027529249827942187, 'mean_word_length': 3.2514619883040936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5523993', 'n_tokens_mistral': 442, 'n_tokens_neox': 432, 'n_words': 135}