From 99b9c47b7894fb4e6da973ef188c4862a54f1ffe Mon Sep 17 00:00:00 2001 From: qiangyanwen <508737091@qq.com> Date: Mon, 16 Jan 2023 18:41:57 +0800 Subject: [PATCH] add test --- models/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/model.py b/models/model.py index 0c82d80..38612ea 100644 --- a/models/model.py +++ b/models/model.py @@ -4,7 +4,7 @@ # @Author :qiangyanwen # @File :model.py from datetime import datetime -from sqlalchemy import Column, INT, String, DATETIME,Integer +from sqlalchemy import Column, INT, String, DATETIME, Integer from config.database import DatabaseModel @@ -17,12 +17,12 @@ class User(DatabaseModel): username = Column(String(16), unique=True, index=True, comment="用户名") password = Column(String(256), comment="密码") email = Column(String(64), unique=True, nullable=False, comment="邮箱") - status = Column(Integer,nullable=False,comment="用户状态,0是禁用1是启用",default=1) + status = Column(Integer, nullable=False, comment="用户状态,0是禁用1是启用", default=1) created_time = Column(DATETIME, comment='创建时间') deleted_time = Column(DATETIME, comment="更新时间") __table_args__ = ({'comment': '用户表'}) - def __init__(self, username, password, email,status): + def __init__(self, username, password, email, status): self.username = username self.password = password self.email = email