调整字段长度
This commit is contained in:
parent
b2dd98cc30
commit
2b607afc29
|
@ -15,9 +15,9 @@ class BaseModel(Model):
|
||||||
database = db
|
database = db
|
||||||
|
|
||||||
class Model(BaseModel):
|
class Model(BaseModel):
|
||||||
path = CharField(primary_key=True)
|
path = CharField(primary_key=True, max_length=255)
|
||||||
position = CharField(null = False)
|
position = CharField(null = False, max_length=32)
|
||||||
type = CharField(null = False)
|
type = CharField(null = False, max_length=32)
|
||||||
frame = IntegerField(null = False)
|
frame = IntegerField(null = False)
|
||||||
create_time = DateTimeField(null=False)
|
create_time = DateTimeField(null=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
|
@ -26,8 +26,8 @@ class Model(BaseModel):
|
||||||
|
|
||||||
class Battle(BaseModel):
|
class Battle(BaseModel):
|
||||||
id = PrimaryKeyField()
|
id = PrimaryKeyField()
|
||||||
challenger_path = CharField(null = False, index = True)
|
challenger_path = CharField(null = False, max_length=255, index = True)
|
||||||
challenger_position = CharField(null = False)
|
challenger_position = CharField(null = False, max_length=32)
|
||||||
opponent_rank = IntegerField(null = False)
|
opponent_rank = IntegerField(null = False)
|
||||||
status = IntegerField(null = False, index = True)
|
status = IntegerField(null = False, index = True)
|
||||||
challenger_wp = DecimalField(null=True)
|
challenger_wp = DecimalField(null=True)
|
||||||
|
|
Loading…
Reference in New Issue