From a00f4a8b971e8bedefc297af61552e1bab6e3da7 Mon Sep 17 00:00:00 2001
From: xuyonghao <898441624@qq.com>
Date: 星期二, 12 十一月 2024 19:16:12 +0800
Subject: [PATCH] 毕昇与ragflow历史记录获取

---
 app/models/role_model.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/models/role_model.py b/app/models/role_model.py
index 3121054..e9b80bf 100644
--- a/app/models/role_model.py
+++ b/app/models/role_model.py
@@ -9,8 +9,8 @@
 
 # 瑙掕壊璧勬簮鍏宠仈琛�
 role_resource_table = Table('role_resource', Base.metadata,
-                            Column('role_id', String(36), ForeignKey('role.id')),
-                            Column('resource_id', String(36), ForeignKey('resource.id')))
+                            Column('role_id', String(36), ForeignKey('role.id', ondelete='CASCADE')),
+                            Column('resource_id', String(36), ForeignKey('resource.id', ondelete='CASCADE')))
 
 
 

--
Gitblit v1.8.0