// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider = "prisma-client-js"
  output   = "../../../../node_modules/.prisma/Sensors-client"
}

datasource db {
  provider = "postgresql"
  url      = env("SENSORS_SOURCE_URL")
}


model Sensor {
  uuid                String            @id @default(uuid()) @db.VarChar(36)
  createdAt           DateTime          @default(now()) @db.Timestamp(6)
  updatedAt           DateTime          @updatedAt @db.Timestamp(6)
  sendedInDate        String?
  creatorUUID         String            @db.VarChar(36)
  isDeleted           Boolean           @default(false)
  lat                 String?
  lng                 String?
  height              Float?             // высота над уровнем моря
  name                String?           @db.VarChar(255)
  agregator_uuid      String?           @db.VarChar(36)
}
