1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Linux BenchTools - Device Model
|
||||
"""
|
||||
|
||||
from sqlalchemy import Column, Integer, String, DateTime, Text
|
||||
from sqlalchemy import Column, Integer, String, DateTime, Text, Float
|
||||
from sqlalchemy.orm import relationship
|
||||
from datetime import datetime
|
||||
from app.db.base import Base
|
||||
@@ -22,6 +22,9 @@ class Device(Base):
|
||||
location = Column(String(255), nullable=True)
|
||||
owner = Column(String(100), nullable=True)
|
||||
tags = Column(Text, nullable=True) # JSON or comma-separated
|
||||
purchase_store = Column(String(255), nullable=True)
|
||||
purchase_date = Column(String(50), nullable=True)
|
||||
purchase_price = Column(Float, nullable=True)
|
||||
created_at = Column(DateTime, nullable=False, default=datetime.utcnow)
|
||||
updated_at = Column(DateTime, nullable=False, default=datetime.utcnow, onupdate=datetime.utcnow)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user