Index: prisma/schema.prisma
===================================================================
--- prisma/schema.prisma	(revision dc3406b4adcd188a5b90d471779b2da7665882cc)
+++ prisma/schema.prisma	(revision 5d6f37a75130aab7d9a67b5b430603eff2c0ca6e)
@@ -8,64 +8,70 @@
 }
 
-model Client {
-  id             String       @id @default(uuid())
-  tenantId       String       @map("tenant_id")
-  name           String
-  email          String       @unique
-  address        Json
-  logoUrl        String?      @map("logo_url")
-  phoneNumber    String?      @map("phone_number")
-  vatNumber      String?      @map("vat_number")
-  companyNumber  String?      @map("company_number")
-  representative String
-  status         ClientStatus @default(active)
-  createdAt      DateTime     @default(now()) @map("created_at")
-  updatedAt      DateTime     @updatedAt @map("updated_at")
+model Customer {
+  id              String        @id @default(uuid())
+  companyId       String?       // Optional company identifier
+  name            String
+  email           String        @unique
+  address         Json
+  logoUrl         String?
+  phoneNumber     String?
+  vatNumber       String?
+  companyNumber   String?
+  representative  String
+  status          CustomerStatus @default(active)
 
-  tenant           Tenant    @relation(fields: [tenantId], references: [id], onDelete: Cascade)
+  bankAccounts    BankAccount[] // One-to-many relation
+  invoicesSent    Invoice[] @relation("InvoiceFrom")
   invoicesReceived Invoice[] @relation("InvoiceTo")
 }
 
+model BankAccount {
+  id             String   @id @default(uuid())
+  customerId     String
+  customer       Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)
+  accountNumber  String?
+  bicSwift       String?
+  iban           String?
+  routingNumber  String?
+  currency       Currency
+}
+
 model Service {
-  id       String @id @default(uuid())
-  name     String
-  sprint   Float
-  hour     Float
-  month    Float
-  tenantId String @map("tenant_id")
-  tenant   Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade)
+  id          String  @id @default(uuid())
+  name        String
+  sprintPrice Float
+  hourPrice   Float
+  monthPrice  Float
 
-  lineItems LineItem[]
+  invoiceItems InvoiceItem[]
 }
 
 model Invoice {
-  id            String        @id @default(uuid())
-  sent          Int?
-  dueDate       DateTime      @map("due_date")
+  id            String         @id @default(uuid())
+  sent          Int?           // Number of times sent
+  dueDate       DateTime
   status        InvoiceStatus
   currency      Currency
-  quantityType  QuantityType  @map("quantity_type")
-  subTotal      Float         @map("sub_total")
-  issueDate     DateTime      @map("issue_date")
+  quantityType  QuantityType
+  subTotal      Float
+  createDate    DateTime
   month         Month
   discount      Float?
   taxes         Float?
-  totalAmount   Float         @map("total_amount")
-  invoiceNumber String        @unique @map("invoice_number")
-  pdfRef        String?       @map("pdf_ref")
-  createdAt     DateTime      @default(now()) @map("created_at")
-  updatedAt     DateTime      @updatedAt @map("updated_at")
+  totalAmount   Float
+  invoiceNumber String         @unique
+  pdfRef        String?
 
-  invoiceFromId String @map("tenant_id")
-  invoiceFrom   Tenant @relation(fields: [invoiceFromId], references: [id], onDelete: Cascade)
+  invoiceFromId String
+  invoiceFrom   Customer       @relation("InvoiceFrom", fields: [invoiceFromId], references: [id], onDelete: Cascade)
 
-  invoiceToId String @map("client_id")
-  invoiceTo   Client @relation("InvoiceTo", fields: [invoiceToId], references: [id], onDelete: Cascade)
+  invoiceToId   String
+  invoiceTo     Customer       @relation("InvoiceTo", fields: [invoiceToId], references: [id], onDelete: Cascade)
 
-  items LineItem[]
+  items         InvoiceItem[]
 }
 
-model LineItem {
-  id          String  @id @default(uuid())
+model InvoiceItem {
+  id          String   @id @default(uuid())
   title       String
   price       Float
@@ -73,107 +79,49 @@
   quantity    Int
   description String?
-  serviceId   String  @map("service_id")
-  service     Service @relation(fields: [serviceId], references: [id], onDelete: Cascade)
-  invoiceId   String  @map("invoice_id")
-  invoice     Invoice @relation(fields: [invoiceId], references: [id], onDelete: Cascade)
+  serviceId   String
+  service     Service   @relation(fields: [serviceId], references: [id], onDelete: Cascade)
+  invoiceId   String
+  invoice     Invoice   @relation(fields: [invoiceId], references: [id], onDelete: Cascade)
 }
 
-model Tenant {
-  id                String     @id @default(cuid())
-  name              String
-  email             String     @unique
-  address           Json
-  bankAccounts      Json?      @map("bank_accounts")
-  logoUrl           String?    @map("logo_url")
-  phoneNumber       String?    @map("phone_number")
-  vatNumber         String?    @map("vat_number")
-  companyNumber     String?    @map("company_number")
-  representative    String
-  lastInvoiceNumber String     @default("0") @map("last_invoice_number")
-  createdAt         DateTime   @default(now()) @map("created_at")
-  updatedAt         DateTime   @updatedAt @map("updated_at")
-  invoicesSent      Invoice[]
-  services          Service[]
-  employees         Employee[]
-  clients           Client[]
-  users             User[]
-}
-
-model Employee {
-  id        String         @id @default(uuid())
-  name      String
-  email     String         @unique
-  status    EmployeeStatus @default(active)
-  iban      String?
-  cv        String?
-  photo     String?
-  project   String?
-  tenantId  String         @map("tenant_id")
-  tenant    Tenant         @relation(fields: [tenantId], references: [id], onDelete: Cascade)
-  createdAt DateTime       @default(now()) @map("created_at")
-  updatedAt DateTime       @updatedAt @map("updated_at")
-}
-
-model User {
-  id          String   @id @default(uuid())
-  uid         String   @unique // Firebase UID
-  email       String   @unique
-  displayName String   @map("display_name")
-  role        UserRole
-  tenantId    String   @map("tenant_id")
-  tenant      Tenant   @relation(fields: [tenantId], references: [id], onDelete: Cascade)
-  createdAt   DateTime @default(now()) @map("created_at")
-  updatedAt   DateTime @updatedAt @map("updated_at")
-}
-
-enum UserRole {
-  ADMIN   @map("ADMIN")
-  MANAGER @map("MANAGER")
-  USER    @map("USER")
-}
-
-enum ClientStatus {
-  active   @map("ACTIVE")
-  banned   @map("BANNED")
-  inactive @map("INACTIVE")
+// Enums
+enum CustomerStatus {
+  active
+  banned
+  inactive
 }
 
 enum InvoiceStatus {
-  draft      @map("DRAFT")
-  processing @map("PROCESSING")
-  pending    @map("PENDING")
-  overdue    @map("OVERDUE")
-  paid       @map("PAID")
+  DRAFT
+  PROCESSING
+  PENDING
+  OVERDUE
+  PAID
 }
 
 enum Currency {
-  EUR @map("EUR")
-  USD @map("USD")
+  EUR
+  USD
 }
 
 enum QuantityType {
-  Unit   @map("UNIT")
-  Hour   @map("HOUR")
-  Sprint @map("SPRINT")
-  Month  @map("MONTH")
+  UNIT
+  HOUR
+  SPRINT
+  MONTH
 }
 
 enum Month {
-  January   @map("JANUARY")
-  February  @map("FEBRUARY")
-  March     @map("MARCH")
-  April     @map("APRIL")
-  May       @map("MAY")
-  June      @map("JUNE")
-  July      @map("JULY")
-  August    @map("AUGUST")
-  September @map("SEPTEMBER")
-  October   @map("OCTOBER")
-  November  @map("NOVEMBER")
-  December  @map("DECEMBER")
+  JANUARY
+  FEBRUARY
+  MARCH
+  APRIL
+  MAY
+  JUNE
+  JULY
+  AUGUST
+  SEPTEMBER
+  OCTOBER
+  NOVEMBER
+  DECEMBER
 }
-
-enum EmployeeStatus {
-  active   @map("ACTIVE")
-  inactive @map("INACTIVE")
-}
