gitea_push2qq/models.py

17 lines
454 B
Python
Raw Normal View History

2023-12-20 04:53:13 +08:00
from tortoise import fields
from tortoise.models import Model
class User(Model):
id = fields.IntField(pk=True)
name = fields.CharField(max_length=60)
gusers = fields.ForeignKeyField('models.GiteaUser')
state = fields.CharField(max_length=20)
class GiteaUser(Model):
id = fields.IntField(pk=True)
name = fields.CharField(max_length=20)
ac_tk = fields.CharField(max_length=256)
rfs_tk = fields.CharField(max_length=256)