2 Commits

Author SHA1 Message Date
2fdc16e003
Add initial seeding script for roles and promo codes
This commit introduces a new seed script located at prisma/seed.ts. The script seeds the database with default roles ('user' and 'admin') and a sample promo code ('PROMO1000' with a value of 1000). This setup helps initialize essential data for application functionality.
2024-11-12 13:30:21 +01:00
d73aecd2ab
Add initial Prisma schema
Set up Prisma models for Crypto, CryptoHistory, Offer, PromoCode, Role, Trade, User, and UserHasCrypto. This includes defining fields, relationships, and default values for each model, and configuring PostgreSQL as the database provider.
2024-11-08 09:35:32 +01:00