Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
db_gpt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linyangyang
db_gpt
Commits
fd472c01
Commit
fd472c01
authored
Aug 14, 2024
by
张会鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整model
parent
e85f3e8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
25 deletions
+2
-25
crud.py
dbgpt/app/apps/vadmin/auth/crud.py
+2
-2
knowledge.py
dbgpt/app/apps/vadmin/auth/models/knowledge.py
+0
-23
No files found.
dbgpt/app/apps/vadmin/auth/crud.py
View file @
fd472c01
...
...
@@ -33,7 +33,7 @@ from dbgpt.app.apps.system import crud as vadmin_system_crud
import
copy
from
dbgpt.app.apps.utils
import
status
from
datetime
import
datetime
from
dbgpt.app.apps.vadmin.media.models.media
import
VadminCorrelation
class
UserDal
(
DalBase
):
import_headers
=
[
...
...
@@ -786,7 +786,7 @@ class KnowledgeDal(DalBase):
def
__init__
(
self
,
db
:
AsyncSession
):
super
(
KnowledgeDal
,
self
)
.
__init__
()
self
.
db
=
db
self
.
model
=
models
.
KnowledgeDept
self
.
model
=
VadminCorrelation
self
.
schema
=
schemas
.
KnowledgeOut
# class TestDal(DalBase):
...
...
dbgpt/app/apps/vadmin/auth/models/knowledge.py
deleted
100644 → 0
View file @
e85f3e8a
#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version : 1.0
# @Create Time : 2023/10/23 13:41
# @File : dept.py
# @IDE : PyCharm
# @desc : 部门模型
from
sqlalchemy.orm
import
Mapped
,
mapped_column
from
dbgpt.app.apps.db.db_base
import
BaseModel
from
sqlalchemy
import
String
,
Integer
,
ForeignKey
class
KnowledgeDept
(
BaseModel
):
__tablename__
=
"knowledge_space"
__table_args__
=
({
'comment'
:
'知识库表'
})
name
:
Mapped
[
str
]
=
mapped_column
(
String
(
100
),
index
=
True
,
nullable
=
False
,
comment
=
"名称"
)
# vector_type: Mapped[str] = mapped_column(String(50), nullable=False, comment="vector_type")
# domain_type: Mapped[str] = mapped_column(String(50), nullable=False, comment="domain_type")
# desc: Mapped[int | str] = mapped_column(String(500), nullable=False,comment="desc")
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment