feat: add frontend project to repo
This commit is contained in:
1
backend/models/__init__.py
Normal file
1
backend/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .url import Url
|
||||
10
backend/models/url.py
Normal file
10
backend/models/url.py
Normal 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)
|
||||
Reference in New Issue
Block a user