Fix: Rename directory to remove & character causing shell issues

Renamed ebook_backend&admin_panel to ebook_backend_admin_panel
  The & character was being interpreted by shell as background
  process operator, causing 'Dockerfile not found' errors in Coolify.
This commit is contained in:
richardtekula
2025-11-11 17:06:39 +01:00
parent a3b609eab7
commit f78c2199e1
35 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,47 @@
from pydantic import BaseModel
from typing import List
class AdminLogin(BaseModel):
"""
Schema for admin login credentials.
Attributes:
username (str): Admin username.
password (str): Admin password.
"""
username: str
password: str
class CodeItem(BaseModel):
"""
Schema representing a coupon code and its usage count.
Attributes:
code (str): The coupon code.
usage (int): Number of times the code has been used.
"""
code: str
usage: int
class CouponUploadItem(BaseModel):
"""
Schema for an individual coupon code to be uploaded.
Attributes:
code (str): The coupon code.
usage (int): Optional initial usage count (default is 0).
"""
code: str
usage: int = 0
class CouponUpload(BaseModel):
"""
Schema for bulk coupon upload containing a list of coupon items.
Attributes:
codes (List[CouponUploadItem]): List of coupon entries.
"""
codes: List[CouponUploadItem]