test audit add
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-15 09:54:42 +11:00
parent 5920db48d8
commit 95125b691d
4 changed files with 56 additions and 13 deletions

View File

@@ -20,16 +20,6 @@ const (
sqlFile = "smt.db"
)
/*
const createRoles string = `
CREATE TABLE IF NOT EXISTS roles (
RoleId INTEGER PRIMARY KEY ASC,
RoleName VARCHAR,
ReadOnly BOOLEAN
);
`
*/
const createUsers string = `
CREATE TABLE IF NOT EXISTS users (
UserId INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -90,10 +80,11 @@ const createSchema string = `
const createAudit string = `
CREATE TABLE IF NOT EXISTS audit (
EventId INTEGER PRIMARY KEY AUTOINCREMENT,
UserName VARCHAR,
AuditId INTEGER PRIMARY KEY AUTOINCREMENT,
UserId INTEGER DEFAULT 0,
SecretId INTEGER DEFAULT 0,
EventText VARCHAR,
EventTime INTEGER
Timestamp datetime
);
`