Prepare monorepo
This commit is contained in:
parent
a1ddb43ed0
commit
938582155d
61 changed files with 5 additions and 5 deletions
15
backend/app/models/connector.py
Normal file
15
backend/app/models/connector.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import uuid
|
||||
from sqlalchemy import Uuid, Column, Enum, ForeignKey, Integer
|
||||
|
||||
from app.schemas.connector import ConnectorStatus
|
||||
from app.database import Base
|
||||
|
||||
class Connector(Base):
|
||||
__tablename__ = "connectors"
|
||||
|
||||
id = Column(Uuid, primary_key=True, default=uuid.uuid4)
|
||||
evse = Column(Integer)
|
||||
index = Column(Integer)
|
||||
status = Column(Enum(ConnectorStatus))
|
||||
|
||||
chargepoint_id = Column(Uuid, ForeignKey("chargepoints.id"))
|
Loading…
Add table
Add a link
Reference in a new issue