generator client { provider = "prisma-client-js" } datasource db { provider = "sqlite" url = env("DATABASE_URL") } model Session { id String @id shop String state String isOnline Boolean @default(false) scope String? expires DateTime? accessToken String userId BigInt? firstName String? lastName String? email String? accountOwner Boolean @default(false) locale String? collaborator Boolean? @default(false) emailVerified Boolean? @default(false) } model ActivityPushLog { id String @id @default(cuid()) shop String orderId String customerId String? email String? activityId String eventType String eventId String status String requestBody String? responseBody String? errorMessage String? createdAt DateTime @default(now()) @@index([shop, orderId]) @@index([createdAt]) } model ActivityPushIdempotency { id String @id @default(cuid()) shop String orderId String activityId String eventType String eventId String redirectUrl String buttonText String pushedAt DateTime @default(now()) createdAt DateTime @default(now()) @@unique([shop, orderId, activityId]) }