mirror of https://gitlab.com/KKlochko/tui-rsync
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
334 B
17 lines
334 B
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()
|