feat: define RADIUS database entities and initialize PostgreSQL schema with FreeRADIUS support
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m11s

This commit is contained in:
Tygozwolle
2026-07-24 16:44:44 +02:00
parent c85b598b82
commit aebf757f26
2 changed files with 28 additions and 7 deletions
+19 -4
View File
@@ -105,11 +105,11 @@ public class RadAcct
[Column("acctauthentic")]
public string? AcctAuthentic { get; set; }
[Column("connectinfo_in")]
public string? ConnectInfoIn { get; set; }
[Column("connectinfo_start")]
public string? ConnectInfoStart { get; set; }
[Column("connectinfo_out")]
public string? ConnectInfoOut { get; set; }
[Column("connectinfo_stop")]
public string? ConnectInfoStop { get; set; }
[Column("acctinputoctets")]
public long? AcctInputOctets { get; set; }
@@ -134,6 +134,21 @@ public class RadAcct
[Column("framedipaddress")]
public string? FramedIpAddress { get; set; }
[Column("framedipv6address")]
public string? FramedIpV6Address { get; set; }
[Column("framedipv6prefix")]
public string? FramedIpV6Prefix { get; set; }
[Column("framedinterfaceid")]
public string? FramedInterfaceId { get; set; }
[Column("delegatedipv6prefix")]
public string? DelegatedIpV6Prefix { get; set; }
[Column("class")]
public string? Class { get; set; }
}
[Table("guest_profiles")]
+9 -3
View File
@@ -60,8 +60,8 @@ CREATE TABLE IF NOT EXISTS radacct (
acctinterval INT DEFAULT NULL,
acctsessiontime BIGINT DEFAULT NULL,
acctauthentic VARCHAR(32) DEFAULT NULL,
connectinfo_in VARCHAR(50) DEFAULT NULL,
connectinfo_out VARCHAR(50) DEFAULT NULL,
connectinfo_start VARCHAR(50) DEFAULT NULL,
connectinfo_stop VARCHAR(50) DEFAULT NULL,
acctinputoctets BIGINT DEFAULT NULL,
acctoutputoctets BIGINT DEFAULT NULL,
calledstationid VARCHAR(50) NOT NULL DEFAULT '',
@@ -69,10 +69,16 @@ CREATE TABLE IF NOT EXISTS radacct (
acctterminatecause VARCHAR(32) NOT NULL DEFAULT '',
servicetype VARCHAR(32) DEFAULT NULL,
framedprotocol VARCHAR(32) DEFAULT NULL,
framedipaddress VARCHAR(15) NOT NULL DEFAULT ''
framedipaddress VARCHAR(15) NOT NULL DEFAULT '',
framedipv6address VARCHAR(45) NOT NULL DEFAULT '',
framedipv6prefix VARCHAR(45) NOT NULL DEFAULT '',
framedinterfaceid VARCHAR(44) NOT NULL DEFAULT '',
delegatedipv6prefix VARCHAR(45) NOT NULL DEFAULT '',
class VARCHAR(64) DEFAULT NULL
);
CREATE INDEX IF NOT EXISTS radacct_username ON radacct (username);
CREATE INDEX IF NOT EXISTS radacct_active ON radacct (acctstoptime) WHERE acctstoptime IS NULL;
CREATE INDEX IF NOT EXISTS radacct_acctuniqueid ON radacct (acctuniqueid);
CREATE TABLE IF NOT EXISTS nas (
id SERIAL PRIMARY KEY,