16 lines
366 B
Python
16 lines
366 B
Python
|
|
from peewee import *
|
||
|
|
|
||
|
|
from models import db1, BaseModel
|
||
|
|
|
||
|
|
|
||
|
|
class Xstart(BaseModel):
|
||
|
|
id = AutoField(primary_key=True) # 自增主键
|
||
|
|
bit_id = IntegerField(null=True)
|
||
|
|
start = CharField(null=True)
|
||
|
|
x_id = IntegerField(null=True)
|
||
|
|
ip_id = IntegerField(null=True)
|
||
|
|
|
||
|
|
class Meta:
|
||
|
|
database = db1 # 所属数据库
|
||
|
|
table_name = 'xstart'
|