// 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"
}

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

model User {
  id          String   @id @default(uuid())
  name        String
  phoneNumber String   @unique
  email       String   @unique
  password    String
  avatar      String?
  token       String?
  dateJoined  DateTime @default(now())
  lastLogin   DateTime @default(now())

  @@map("users")
}
