refactor: add ip record in website session

This commit is contained in:
moonrailgun 2023-10-09 00:06:20 +08:00
parent 7a3ef40b9e
commit cb8b14b910
2 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,7 @@ model WebsiteSession {
device String? @db.VarChar(20)
screen String? @db.VarChar(11)
language String? @db.VarChar(35)
ip String? @db.VarChar(20)
country String? @db.Char(2)
subdivision1 String? @db.VarChar(20)
subdivision2 String? @db.VarChar(50)

View File

@ -109,6 +109,7 @@ export async function findSession(req: Request): Promise<{
device,
screen,
language,
ip,
country,
subdivision1,
subdivision2,