-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.py
33 lines (25 loc) · 999 Bytes
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from django.db import models
class ModelMap(models.Model):
Name = models.CharField(max_length=200)
CreatedBy = models.CharField(max_length=200)
Created = models.DateTimeField('date created')
Description =models.TextField()
RawXML = models.TextField()
class DataFolder(models.Model):
FolderName = models.CharField(max_length=200)
CreatedBy = models.CharField(max_length=200)
LastUpdated = models.DateTimeField('date created')
Description =models.TextField()
class DataFile(models.Model):
FileName = models.CharField(max_length=200)
dataFile = models.FileField(upload_to='%Y/%m/%d')
CreatedBy = models.CharField(max_length=200)
LastUpdated = models.DateTimeField('date created')
Description =models.TextField()
class Project(models.Model):
Name = models.CharField(max_length=200)
ModelMap = models.ForeignKey(ModelMap)
CreatedBy = models.CharField(max_length=200)
LastUpdated = models.DateTimeField('date created')
Description =models.TextField()
# Create your models here.