Order History Table - Copy this React, Tailwind Component to your project
base it on this model model CompanySubscription { id String @id @default(cuid()) company Company @relation(fields: [companyId], references: [id]) companyId String // Link to the company subscription Subscription @relation(fields: [subscriptionId], references: [id]) subscriptionId String // Link to the subscription plan startDate DateTime @default(now()) // When the subscription starts endDate DateTime? // When the subscription ends (for expired subscriptions) documentUsage Int @default(0) // Number of documents signed this month employeeCount Int @default(0) // Current count of employees active Boolean @default(true) payed Boolean @default(false) price Int? @default(0) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt @@index([companyId, subscriptionId]) }
