yantene / yantene.net

a personal website crafted with shiitake, tofu, and steamed chicken!
https://stg-www.yantene.net
1 stars 0 forks source link

Add endpoint to return articles by popularity #63

Open yantene opened 1 year ago

yantene commented 1 year ago

Add NoteAccess model

model NoteAccess {
  id BigInt @id @default(autoincrement())

  note   Note   @relation(fields: [noteId], references: [id], onDelete: Cascade, onUpdate: Cascade)
  noteId BigInt

  remoteAddr     String?
  userAgent      String?
  acceptLanguage String?

  accessedAt DateTime

  insertedAtForAudit DateTime @default(now())
  updatedAtForAudit  DateTime @updatedAt
}