Files
to_session/models/ips.py
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

17 lines
789 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from peewee import *
# 假设 db 已经在其他地方定义并连接到数据库
from models import db, BaseModel
class Ips(BaseModel):
id = AutoField(primary_key=True) # 自增主键
ip = CharField(max_length=255, null=True) # IP 地址,最大长度 255可为空
ip_port = CharField(max_length=255, null=True) # IP 端口,最大长度 255可为空
ip_user = CharField(max_length=255, null=True) # IP 对应的用户名,最大长度 255可为空
ip_password = CharField(max_length=255, null=True) # IP 对应的密码,最大长度 255可为空
ip_start = CharField(max_length=255, null=True) # ip_start 字段,最大长度 255可为空
class Meta:
database = db # 所属数据库
table_name = 'ips' # 表名