feat: add frontend project to repo

This commit is contained in:
2025-07-23 04:24:47 +00:00
parent 3c161bca51
commit 7abed7e634
44 changed files with 18490 additions and 143 deletions

View File

@@ -0,0 +1 @@
from .url import Url

10
backend/models/url.py Normal file
View File

@@ -0,0 +1,10 @@
from sqlalchemy import Column, Integer, String
from backend.db.database import Base
class Url(Base):
__tablename__ = "urls"
id = Column(Integer, primary_key=True, index=True)
url = Column(String, nullable=False)
shortcode = Column(String, index=True, unique=True, nullable=False)