Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
smradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shail
smradius
Commits
afd2d1f0
Commit
afd2d1f0
authored
16 years ago
by
Robert Anderson
Browse files
Options
Downloads
Patches
Plain Diff
Fixed up accounting schema
parent
a13fa8a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
database/core.tsql
+52
-1
52 additions, 1 deletion
database/core.tsql
with
52 additions
and
1 deletion
database/core.tsql
+
52
−
1
View file @
afd2d1f0
@PRELOAD@
/* Users */
CREATE TABLE @PREFIX@users (
ID @SERIAL_TYPE@,
...
...
@@ -78,6 +77,58 @@ CREATE TABLE @PREFIX@users_to_groups (
CREATE INDEX @PREFIX@users_to_groups_idx1 ON @PREFIX@users_to_groups (UserID,GroupID);
/* Accounting */
CREATE TABLE @PREFIX@accounting (
ID @SERIAL_TYPE@,
Username VARCHAR(255) NOT NULL,
ServiceType INT UNSIGNED NOT NULL,
FramedProtocol INT UNSIGNED NOT NULL,
NASPort VARCHAR(255) NOT NULL,
NASPortType INT UNSIGNED NOT NULL,
CallingStationID VARCHAR(255) NOT NULL,
CalledStationID VARCHAR(255) NOT NULL,
NASPortID VARCHAR(255) NOT NULL,
AcctSessionID VARCHAR(255) NOT NULL,
FramedIPAddress VARCHAR(16) NOT NULL,
AcctAuthentic INT UNSIGNED NOT NULL,
EventTimestamp INT UNSIGNED NOT NULL,
NASIdentifier VARCHAR(255) NOT NULL,
NASIPAddress VARCHAR(16) NOT NULL,
AcctDelayTime INT UNSIGNED NOT NULL,
AcctSessionTime INT UNSIGNED NOT NULL,
AcctInputOctets INT UNSIGNED NOT NULL,
AcctInputGigawords INT UNSIGNED NOT NULL,
AcctInputPackets INT UNSIGNED NOT NULL,
AcctOutputOctets INT UNSIGNED NOT NULL,
AcctOutputGigawords INT UNSIGNED NOT NULL,
AcctOutputPackets INT UNSIGNED NOT NULL,
AcctStatusType INT UNSIGNED NOT NULL,
AcctTerminateCause INT UNSIGNED NOT NULL
) @CREATE_TABLE_SUFFIX@;
CREATE INDEX @PREFIX@accounting_idx1 ON @PREFIX@accounting (Username);
/* FIXME: indexes */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment