diff options
Diffstat (limited to 'qtip/web/bench/models.py')
-rw-r--r-- | qtip/web/bench/models.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/qtip/web/bench/models.py b/qtip/web/bench/models.py index 1e8e4e1b..0594dbd9 100644 --- a/qtip/web/bench/models.py +++ b/qtip/web/bench/models.py @@ -1,6 +1,28 @@ +############################################################################## +# Copyright (c) 2017 akhil.batra@research.iiit.ac.in and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + # -*- coding: utf-8 -*- from __future__ import unicode_literals -# from django.db import models +from django.db import models # Create your models here. + + +class Repo(models.Model): + name = models.CharField(max_length=200, blank=False) + github_link = models.URLField(unique=True) + + +class Task(models.Model): + start_time = models.DateTimeField(auto_now_add=True) + end_time = models.DateTimeField() + run_time = models.DurationField() + repo = models.ForeignKey('Repo', on_delete=models.DO_NOTHING) + log = models.TextField() |