Ajit Panday commited on
Commit
8433771
·
1 Parent(s): 093b53f

Remove customer-call_records relationship

Browse files
Files changed (1) hide show
  1. app/models.py +0 -3
app/models.py CHANGED
@@ -75,9 +75,6 @@ class CallRecord(Base):
75
  created_at = Column(DateTime, default=datetime.utcnow)
76
  updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
77
 
78
- # Relationship with customer
79
- customer = relationship("Customer", back_populates="call_records")
80
-
81
  @classmethod
82
  def create_from_api(cls, customer_id: int, data: Dict) -> 'CallRecord':
83
  """Create a call record from API data"""
 
75
  created_at = Column(DateTime, default=datetime.utcnow)
76
  updated_at = Column(DateTime, default=datetime.utcnow, onupdate=datetime.utcnow)
77
 
 
 
 
78
  @classmethod
79
  def create_from_api(cls, customer_id: int, data: Dict) -> 'CallRecord':
80
  """Create a call record from API data"""