Yakova commited on
Commit
e5309c1
·
verified ·
1 Parent(s): fe1d75b

Update App/routers/stocks/models.py

Browse files
Files changed (1) hide show
  1. App/routers/stocks/models.py +0 -15
App/routers/stocks/models.py CHANGED
@@ -27,21 +27,6 @@ class Stock(Model):
27
  table = "stocks"
28
 
29
 
30
- # No changes needed for the Stock model itself
31
- class Stock(Model):
32
- id = fields.IntField(primary_key=True)
33
- symbol = fields.CharField(max_length=10, unique=True)
34
- name = fields.CharField(max_length=200)
35
- created_at = fields.DatetimeField(auto_now_add=True)
36
- updated_at = fields.DatetimeField(auto_now=True)
37
-
38
- # Relationships
39
- price_data: fields.ReverseRelation["StockPriceData"]
40
- dividends: fields.ReverseRelation["Dividend"]
41
- portfolio_holdings: fields.ReverseRelation["PortfolioHolding"] # Assuming this model exists
42
-
43
- class Meta:
44
- table = "stocks"
45
 
46
  # Create a lean Pydantic model for Stock that excludes deep relationships
47
  StockPydantic_Slim = pydantic_model_creator(
 
27
  table = "stocks"
28
 
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  # Create a lean Pydantic model for Stock that excludes deep relationships
32
  StockPydantic_Slim = pydantic_model_creator(