17 lines
499 B
Python
17 lines
499 B
Python
from tortoise import fields
|
|
from tortoise.models import Model
|
|
|
|
|
|
class User(Model):
|
|
id = fields.BigIntField(pk=True, autoincrement=False)
|
|
name = fields.CharField(max_length=60)
|
|
state = fields.CharField(max_length=60)
|
|
|
|
|
|
class GiteaUser(Model):
|
|
id = fields.BigIntField(pk=True, autoincrement=False)
|
|
qid = fields.ForeignKeyField('models.GiteaUser')
|
|
name = fields.CharField(max_length=20)
|
|
ac_tk = fields.CharField(max_length=256)
|
|
rfs_tk = fields.CharField(max_length=256)
|