Files
tui-rsync/tui_rsync/infrastructure/orm/models.py
T
2025-01-06 22:05:19 +02:00

17 lines
334 B
Python

from peewee import *
import uuid
class BackupPlan(Model):
id = UUIDField(primary_key=True, default=uuid.uuid4)
label = CharField()
source = CharField()
class Meta:
database = DatabaseProxy()
class Destination(Model):
source = ForeignKeyField(BackupPlan, backref='destinations')
path = CharField()