feat: update template

This commit is contained in:
2026-08-19 22:07:42 +08:00
parent 99d5392a68
commit 6c45b75786
97 changed files with 1460 additions and 477 deletions

View File

@@ -0,0 +1,18 @@
import { z } from 'zod'
export const AccessLogSchema = z.object({
id: z.number().int(),
request_id: z.string(),
username: z.string().nullable(),
message: z.string(),
ip: z.string(),
user_agent: z.string(),
request_method: z.string(),
request_path: z.string(),
referer: z.string(),
status_code: z.number(),
response_time_ms: z.number(),
started_at: z.string(),
})
export type AccessLog = z.infer<typeof AccessLogSchema>