Download prisma/schema.sqlite.prisma from truegleai/tinker: direct link, hf CLI and curl.
- Browser
- Download file 4.54 kB
-
https://huggingface.co/spaces/truegleai/tinker/resolve/main/prisma/schema.sqlite.prisma
- Command line
-
hf download hf://spaces/truegleai/tinker/prisma/schema.sqlite.prisma
-
curl -L -o schema.sqlite.prisma https://huggingface.co/spaces/truegleai/tinker/resolve/main/prisma/schema.sqlite.prisma
4.54 kB
| generator client { | |
| provider = "prisma-client-js" | |
| } | |
| datasource db { | |
| provider = "sqlite" | |
| url = "file:./data/tinker.db" | |
| relationMode = "prisma" | |
| } | |
| model User { | |
| id String | |
| name String? | |
| email String | |
| password String? | |
| emailVerified DateTime? | |
| image String? | |
| createdAt DateTime | |
| updatedAt DateTime | |
| subscription String | |
| credits Int | |
| maxDeals Int | |
| accounts Account[] | |
| sessions Session[] | |
| deals Deal[] | |
| scanLogs ScanLog[] | |
| negotiations Negotiation[] | |
| transactions Transaction[] | |
| queueItems QueueItem[] | |
| @ | |
| } | |
| model Account { | |
| id String | |
| userId String | |
| type String | |
| provider String | |
| providerAccountId String | |
| refresh_token String? | |
| access_token String? | |
| expires_at Int? | |
| token_type String? | |
| scope String? | |
| id_token String? | |
| session_state String? | |
| user User | |
| @ | |
| @ | |
| } | |
| model Session { | |
| id String | |
| sessionToken String | |
| userId String | |
| expires DateTime | |
| user User | |
| @ | |
| } | |
| model Deal { | |
| id String | |
| userId String | |
| title String | |
| sourceUrl String | |
| marketplace String | |
| buyPrice Float | |
| estimatedSell Float | |
| profitMargin Float | |
| confidence Float | |
| status String | |
| scrapedAt DateTime | |
| analyzedAt DateTime? | |
| negotiatedAt DateTime? | |
| transactedAt DateTime? | |
| sellerContact String? | |
| notes String? | |
| user User | |
| negotiations Negotiation[] | |
| transaction Transaction? | |
| @ | |
| @ | |
| } | |
| model ScanLog { | |
| id String | |
| userId String? | |
| marketplace String | |
| itemsScanned Int | |
| dealsFound Int | |
| duration Int | |
| status String | |
| error String? | |
| createdAt DateTime | |
| user User? | |
| @ | |
| @ | |
| } | |
| model Negotiation { | |
| id String | |
| dealId String | |
| userId String | |
| message String | |
| response String? | |
| offeredPrice Float? | |
| acceptedPrice Float? | |
| status String | |
| turn Int | |
| createdAt DateTime | |
| updatedAt DateTime | |
| deal Deal | |
| user User | |
| @ | |
| @ | |
| } | |
| model Transaction { | |
| id String | |
| dealId String | |
| userId String | |
| amount Float | |
| fee Float | |
| netProfit Float | |
| paymentMethod String | |
| paymentStatus String | |
| shippingAddress String? | |
| trackingNumber String? | |
| status String | |
| createdAt DateTime | |
| completedAt DateTime? | |
| deal Deal | |
| user User | |
| @ | |
| @ | |
| } | |
| model QueueItem { | |
| id String | |
| userId String | |
| dealId String? | |
| action String | |
| priority Int | |
| status String | |
| data String? | |
| error String? | |
| retries Int | |
| maxRetries Int | |
| scheduled DateTime? | |
| startedAt DateTime? | |
| finishedAt DateTime? | |
| createdAt DateTime | |
| updatedAt DateTime | |
| user User | |
| @ | |
| @ | |
| } | |