From cc04b89890cc057a64e976a271b5491df7dbd721 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期五, 06 十二月 2024 16:04:08 +0800
Subject: [PATCH] 增加数据库一建迁移能力

---
 app/models/user_model.py |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/app/models/user_model.py b/app/models/user_model.py
index 77d8a4b..0cf9fd5 100644
--- a/app/models/user_model.py
+++ b/app/models/user_model.py
@@ -41,6 +41,8 @@
     age = Column(Integer)
     created_at = Column(DateTime, default=datetime.now())
     updated_at = Column(DateTime, default=datetime.now(), onupdate=datetime.now())
+    updated_at11 = Column(Integer)
+
 
 
     organizations = relationship('OrganizationModel',
@@ -175,4 +177,19 @@
         return cipher_suite.encrypt(password.encode("utf-8")).decode("utf-8")
 
     def decrypted_password(self):
-        return cipher_suite.decrypt(self.password).decode("utf-8")
\ No newline at end of file
+        return cipher_suite.decrypt(self.password).decode("utf-8")
+
+
+
+class UserModel(Base):
+    __tablename__ = "user_test"
+    id = Column(Integer, primary_key=True, index=True)
+    username = Column(String(255), unique=True, index=True)
+    hashed_password = Column(String(255))
+    password = Column(String(255))
+    compellation = Column(String(255), nullable=False, default="")
+    phone = Column(String(255), nullable=False, default="")
+    email = Column(String(255), nullable=False, default="")
+    description = Column(String(255), nullable=False, default="")
+    ragflow_id = Column(String(32))
+    bisheng_id = Column(Integer)
\ No newline at end of file

--
Gitblit v1.8.0