Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/db/schemas/models.py
Browse files- src/db/schemas/models.py +1 -40
src/db/schemas/models.py
CHANGED
@@ -1,42 +1,3 @@
|
|
1 |
-
Hugging Face's logo
|
2 |
-
Hugging Face
|
3 |
-
|
4 |
-
Spaces:
|
5 |
-
|
6 |
-
Ashad001
|
7 |
-
/
|
8 |
-
auto-analyst-previous
|
9 |
-
|
10 |
-
like
|
11 |
-
0
|
12 |
-
|
13 |
-
App
|
14 |
-
Files
|
15 |
-
Community
|
16 |
-
Settings
|
17 |
-
auto-analyst-previous
|
18 |
-
/
|
19 |
-
src
|
20 |
-
/
|
21 |
-
db
|
22 |
-
/
|
23 |
-
schemas
|
24 |
-
/
|
25 |
-
models.py
|
26 |
-
|
27 |
-
Ashad001's picture
|
28 |
-
Ashad001
|
29 |
-
chats deleting fixed
|
30 |
-
f5d71c7
|
31 |
-
raw
|
32 |
-
|
33 |
-
Copy download link
|
34 |
-
history
|
35 |
-
blame
|
36 |
-
edit
|
37 |
-
delete
|
38 |
-
|
39 |
-
3.16 kB
|
40 |
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, DateTime, Text, Float, Boolean
|
41 |
from sqlalchemy.ext.declarative import declarative_base
|
42 |
from sqlalchemy.orm import sessionmaker, relationship
|
@@ -103,4 +64,4 @@ class ModelUsage(Base):
|
|
103 |
request_time_ms = Column(Integer, default=0) # Request processing time in milliseconds
|
104 |
# Add relationships
|
105 |
user = relationship("User", back_populates="usage_records")
|
106 |
-
chat = relationship("Chat", back_populates="usage_records")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from sqlalchemy import create_engine, Column, Integer, String, ForeignKey, DateTime, Text, Float, Boolean
|
2 |
from sqlalchemy.ext.declarative import declarative_base
|
3 |
from sqlalchemy.orm import sessionmaker, relationship
|
|
|
64 |
request_time_ms = Column(Integer, default=0) # Request processing time in milliseconds
|
65 |
# Add relationships
|
66 |
user = relationship("User", back_populates="usage_records")
|
67 |
+
chat = relationship("Chat", back_populates="usage_records")
|