feat: implement counter management application with drag-and-drop functionality
- Add main application component (App.tsx) to manage counters - Create Counter component for individual counter display and editing - Implement CreateCounter component for adding new counters - Add API utility for handling server requests - Set up Vite configuration with proxy for API calls - Introduce TypeScript configuration for app and node environments - Style application with global CSS for consistent design
This commit is contained in:
18
backend/prisma/schema.prisma
Normal file
18
backend/prisma/schema.prisma
Normal file
@@ -0,0 +1,18 @@
|
||||
datasource db {
|
||||
provider = "sqlite"
|
||||
url = "file:../data/sqlite.db"
|
||||
}
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
model Counter {
|
||||
id Int @id @default(autoincrement())
|
||||
name String? // human-friendly name for the counter
|
||||
value Int @default(0)
|
||||
imageUrl String? // nullable URL for uploaded image
|
||||
position Int @default(0) // used for ordering
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
}
|
||||
Reference in New Issue
Block a user