-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels_ordenadores.py
136 lines (102 loc) · 4.59 KB
/
models_ordenadores.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey has `on_delete` set to the desired behavior.
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
# Feel free to rename the models, but don't rename db_table values or field names.
from __future__ import unicode_literals
from django.db import models
class Asignacion(models.Model):
clase = models.CharField(max_length=20)
puesto = models.CharField(max_length=10)
alumno = models.CharField(max_length=60)
ordenador = models.CharField(max_length=45, blank=True, null=True)
class Meta:
managed = False
db_table = 'asignacion'
unique_together = (('clase', 'puesto'),)
class Cd(models.Model):
idcd = models.AutoField(primary_key=True)
vendor = models.CharField(max_length=45, blank=True, null=True)
product = models.CharField(max_length=70, blank=True, null=True)
equipo_num_serie = models.ForeignKey('Equipo', models.DO_NOTHING, db_column='equipo_num_serie')
class Meta:
managed = False
db_table = 'cd'
class CloudDns(models.Model):
ip = models.IntegerField()
host = models.CharField(max_length=30)
dominio = models.CharField(max_length=40)
usuario = models.CharField(max_length=30)
class Meta:
managed = False
db_table = 'cloud_dns'
class Cpu(models.Model):
idcpu = models.AutoField(primary_key=True)
vendor = models.CharField(max_length=45, blank=True, null=True)
product = models.CharField(max_length=70, blank=True, null=True)
slot = models.CharField(max_length=45, blank=True, null=True)
class Meta:
managed = False
db_table = 'cpu'
class Equipo(models.Model):
num_serie = models.CharField(primary_key=True, max_length=45)
vendor = models.CharField(max_length=45, blank=True, null=True)
product = models.CharField(max_length=70, blank=True, null=True)
cpu_idcpu = models.ForeignKey(Cpu, models.DO_NOTHING, db_column='cpu_idcpu')
class Meta:
managed = False
db_table = 'equipo'
class Hd(models.Model):
serial = models.CharField(max_length=45)
equipo_num_serie = models.ForeignKey(Equipo, models.DO_NOTHING, db_column='equipo_num_serie')
vendor = models.CharField(max_length=45, blank=True, null=True)
product = models.CharField(max_length=70, blank=True, null=True)
description = models.CharField(max_length=45, blank=True, null=True)
size = models.CharField(max_length=45, blank=True, null=True)
class Meta:
managed = False
db_table = 'hd'
unique_together = (('serial', 'equipo_num_serie'),)
class Incidencias(models.Model):
fecha = models.CharField(max_length=10)
ordenador = models.CharField(max_length=15)
incidencia = models.TextField()
estado = models.IntegerField()
class Meta:
managed = False
db_table = 'incidencias'
class Matricula(models.Model):
alumno = models.CharField(max_length=30)
codasig = models.IntegerField()
tipo = models.CharField(max_length=1)
class Meta:
managed = False
db_table = 'matricula'
class Modulos(models.Model):
id = models.AutoField(db_column='Id', primary_key=True) # Field name made lowercase.
codigo = models.CharField(db_column='Codigo', max_length=15) # Field name made lowercase.
curso = models.CharField(db_column='Curso', max_length=16) # Field name made lowercase.
nombre = models.CharField(db_column='Nombre', max_length=70) # Field name made lowercase.
horas = models.IntegerField(db_column='Horas') # Field name made lowercase.
class Meta:
managed = False
db_table = 'modulos'
class Ram(models.Model):
idram = models.AutoField(primary_key=True)
size = models.CharField(max_length=45, blank=True, null=True)
clock = models.CharField(max_length=45, blank=True, null=True)
equipo_num_serie = models.ForeignKey(Equipo, models.DO_NOTHING, db_column='equipo_num_serie')
class Meta:
managed = False
db_table = 'ram'
class Red(models.Model):
serial = models.CharField(max_length=45)
equipo_num_serie = models.ForeignKey(Equipo, models.DO_NOTHING, db_column='equipo_num_serie')
vendor = models.CharField(max_length=45, blank=True, null=True)
product = models.CharField(max_length=70, blank=True, null=True)
class Meta:
managed = False
db_table = 'red'
unique_together = (('serial', 'equipo_num_serie'),)