mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-10-23 04:08:08 +00:00
17 lines
334 B
Python
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()
|