17 lines
679 B
Python
17 lines
679 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from tortoise import fields
|
|
from app.models.base import BaseModel, TimestampMixin
|
|
|
|
|
|
class BossToken(BaseModel, TimestampMixin):
|
|
wt2 = fields.CharField(max_length=200, null=True, description="Boss直聘wt2")
|
|
mpt = fields.CharField(max_length=200, null=True, description="Boss直聘mpt")
|
|
is_active = fields.BooleanField(default=True, description="是否可用")
|
|
failed_count = fields.IntField(default=0, description="失败次数")
|
|
last_used_time = fields.DatetimeField(null=True, description="最后使用时间")
|
|
|
|
class Meta:
|
|
table = "boss_token"
|
|
table_description = "Boss直聘token表" |