You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

4 months ago
4 months ago
4 months ago
  1. // This is your Prisma schema file,
  2. // learn more about it in the docs: https://pris.ly/d/prisma-schema
  3. // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
  4. // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
  5. generator client {
  6. provider = "prisma-client-js"
  7. }
  8. datasource db {
  9. provider = "sqlite"
  10. url = "file:./dev.db"
  11. }
  12. // model User {
  13. // id Int @id @default(autoincrement())
  14. // name String
  15. // email String @unique
  16. // password String
  17. // createdTime DateTime @default(now()) @map("created_time")
  18. // updatedTime DateTime @updatedAt @map("updated_time")
  19. // @@map("user")
  20. // }
  21. // 测量数据
  22. model measurement {
  23. id Int @id @default(autoincrement())
  24. name String
  25. railId Int
  26. bureau String
  27. line String
  28. section String
  29. direction String
  30. createAt DateTime @default(now()) @map("create_at")
  31. leftPoints String @map("left_points")
  32. rightPoints String @map("right_points")
  33. upload Boolean @default(false)
  34. }