Skip to content

Commit a09404e

Browse files
committed
chore: reorder import statements in document models for consistency
1 parent b3e3d1e commit a09404e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

backend/api/Documents-service/src/models/document.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import sys
2-
import os
31
from sqlalchemy import Column, Integer, String
2+
43
from database import Base
54

5+
66
class Document(Base):
77
__tablename__ = "documents"
88

backend/api/Documents-service/src/models/document_schema.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
from pydantic import BaseModel
21
from typing import Optional
32

3+
from pydantic import BaseModel
4+
5+
46
class DocumentBase(BaseModel):
57
title: str
68
content: str
@@ -10,6 +12,7 @@ class DocumentBase(BaseModel):
1012
class DocumentCreate(DocumentBase):
1113
pass
1214

15+
1316
class Document(DocumentBase):
1417
id: int
1518

0 commit comments

Comments
 (0)