2023-12-20 04:53:13 +08:00
|
|
|
from tortoise import fields
|
|
|
|
from tortoise.models import Model
|
|
|
|
|
|
|
|
|
|
|
|
class User(Model):
|
2023-12-20 20:47:07 +08:00
|
|
|
id = fields.BigIntField(pk=True, autoincrement=False)
|
2023-12-20 04:53:13 +08:00
|
|
|
name = fields.CharField(max_length=60)
|
2023-12-20 20:47:07 +08:00
|
|
|
state = fields.CharField(max_length=60)
|
2023-12-20 04:53:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
class GiteaUser(Model):
|
2023-12-20 20:47:07 +08:00
|
|
|
id = fields.BigIntField(pk=True, autoincrement=False)
|
|
|
|
qid = fields.ForeignKeyField('models.GiteaUser')
|
2023-12-20 04:53:13 +08:00
|
|
|
name = fields.CharField(max_length=20)
|
|
|
|
ac_tk = fields.CharField(max_length=256)
|
|
|
|
rfs_tk = fields.CharField(max_length=256)
|