mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-11 09:10:51 +01:00
* fixed visualization * simplified tests * split into files * refactored test expected publications * split update tests * expanded specifications and tests * added event_status window tests * fixed 'all' command * renamed everything * fixed uppercase
18 lines
401 B
Python
18 lines
401 B
Python
from tortoise import fields
|
|
from tortoise.models import Model
|
|
|
|
|
|
class Publisher(Model):
|
|
id = fields.UUIDField(pk=True)
|
|
name = fields.CharField(max_length=256)
|
|
# TODO: What to do with this?
|
|
account_ref = fields.TextField(null=True)
|
|
|
|
publications: fields.ReverseRelation["Publication"]
|
|
|
|
def __str__(self):
|
|
return f"{self.id}"
|
|
|
|
class Meta:
|
|
table = "publisher"
|