mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-11-20 01:08:09 +00:00
18 lines
406 B
Python
18 lines
406 B
Python
from peewee import *
|
|
import uuid
|
|
|
|
|
|
class BackupPlanModel(Model):
|
|
id = UUIDField(primary_key=True, default=uuid.uuid4)
|
|
label = CharField()
|
|
source = CharField()
|
|
|
|
class Meta:
|
|
database = DatabaseProxy()
|
|
|
|
|
|
class DestinationModel(Model):
|
|
id = UUIDField(primary_key=True, default=uuid.uuid4)
|
|
source = ForeignKeyField(BackupPlanModel, backref='destinations')
|
|
path = CharField()
|