mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
incremental backups: stage 4: job structure
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
from websiteFunctions.models import Websites
|
||||
from datetime import datetime
|
||||
|
||||
# Create your models here.
|
||||
class IncJob(models.Model):
|
||||
website = models.ForeignKey(Websites)
|
||||
date = models.DateTimeField(default=datetime.now, blank=True)
|
||||
|
||||
class JobSnapshots(models.Model):
|
||||
job = models.ForeignKey(IncJob)
|
||||
type = models.CharField(max_length=50)
|
||||
snapshotid = models.CharField(max_length=50)
|
||||
Reference in New Issue
Block a user