예제 #1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Country',
            fields=[
                ('code', models.CharField(default='', max_length=10, primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=52)),
                ('continent', enumfields.fields.EnumField(default='Asia', enum=Data.models.Continent, max_length=10)),
                ('region', models.CharField(default='', max_length=26)),
                ('surfacearea', models.FloatField(default=0.0, max_length=10.2)),
                ('indyear', models.IntegerField(default='NULL')),
                ('populaton', models.IntegerField(default=0)),
                ('lifeexpectany', models.FloatField(default='NULL', max_length=3)),
                ('gnp', models.FloatField(default='NULL', max_length=10.2)),
                ('gnppold', models.FloatField(default='NULL', max_length=10.2)),
                ('localname', models.CharField(default='', max_length=100)),
                ('govtform', models.CharField(default='', max_length=100)),
                ('headofsate', models.CharField(default='', max_length=10)),
                ('capital', models.CharField(default='', max_length=11)),
                ('code2', models.CharField(default='', max_length=3)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('first_name', models.CharField(max_length=20)),
                ('last_name', models.CharField(max_length=20)),
                ('email', models.EmailField(max_length=60, primary_key=True, serialize=False, unique=True)),
                ('gender', models.CharField(max_length=8)),
                ('phone', models.CharField(max_length=13)),
            ],
        ),
        migrations.CreateModel(
            name='CountryLanguage',
            fields=[
                ('language', models.CharField(default='', max_length=30, primary_key=True, serialize=False)),
                ('iosofficial', enumfields.fields.EnumField(default='F', enum=Data.models.official, max_length=10)),
                ('percantage', models.FloatField(default=0.0, max_length=4.2)),
                ('code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Data.Country')),
            ],
        ),
        migrations.CreateModel(
            name='City',
            fields=[
                ('id', models.IntegerField(auto_created=True, default=0, primary_key=True, serialize=False)),
                ('name', models.CharField(default='', max_length=35)),
                ('Distrist', models.CharField(default='', max_length=20)),
                ('populaton', models.IntegerField(default=0)),
                ('code', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Data.Country')),
            ],
        ),
    ]
예제 #2
0
class Betas(models.Model):
    iZA = models.BigIntegerField(null=False)
    Mode = models.CharField(max_length=16)
    Eb = models.FloatField()
    Ib = models.FloatField()
    #IbRel = models.FloatField()
    IbStr = models.CharField(max_length=100)

    def __unicode__(self):
        return unicode(iZA_to_string(self.iZA)) + u" " + unicode(
            self.Eb) + u" keV (" + unicode(self.Ib) + u" %)"
예제 #3
0
class Gammas(models.Model):
    iZA = models.BigIntegerField()
    Foot = models.CharField(max_length=2)
    Eg = models.FloatField(db_index=True)
    EgStr = models.CharField(max_length=100)
    Ig = models.FloatField(null=True, db_index=True)
    IgRel = models.FloatField(null=True, db_index=True)
    IgStr = models.CharField(max_length=54)
    Mode = models.CharField(max_length=16)

    def __unicode__(self):
        return unicode(iZA_to_string(self.iZA)) + u" " + unicode(
            self.Eg) + u" keV (" + unicode(self.Ig) + u" %)"
예제 #4
0
class Alphas(models.Model):
    iZA = models.BigIntegerField(null=False)
    Foot = models.CharField(max_length=2)
    Ea = models.FloatField()
    EaStr = models.CharField(max_length=100)
    Ia = models.FloatField()
    IaStr = models.CharField(max_length=100)

    #IaRel = models.FloatField()

    def __unicode__(self):
        return unicode(iZA_to_string(self.iZA)) + u" " + unicode(
            self.Ea) + u" keV (" + unicode(self.Ia) + u" %)"
예제 #5
0
class XRays(models.Model):
    XCode = models.BigIntegerField()
    Z = models.IntegerField()
    Energy = models.FloatField(null=False)
    Element = models.CharField(max_length=4)
    Assignment = models.CharField(max_length=100)
    Kint = models.FloatField(null=True)
    KintStr = models.CharField(max_length=100, null=True)
    L1Int = models.FloatField(null=True)
    L1IntStr = models.CharField(max_length=100, null=True)
    L2Int = models.FloatField(null=True)
    L2IntStr = models.CharField(max_length=100, null=True)
    L3Int = models.FloatField(null=True)
    L3IntStr = models.CharField(max_length=100, null=True)
예제 #6
0
class Parents(models.Model):
    A = models.IntegerField(null=False)
    Z = models.IntegerField(null=False)
    Symb = models.CharField(max_length=4, null=False)
    iZA = models.BigIntegerField(null=False)
    El = models.FloatField(null=True)
    ElStr = models.CharField(max_length=46)
    TSek = models.FloatField(null=True)
    TStr = models.CharField(max_length=74)
    JPi = models.CharField(max_length=56)
    Abund = models.FloatField(null=True)
    AbundStr = models.CharField(max_length=54)
    SnStr = models.CharField(max_length=100)
    SpStr = models.CharField(max_length=100)

    def __unicode__(self):
        return unicode(self.Symb) + u"-" + unicode(self.A)
예제 #7
0
class Parents2(models.Model):
    iZA = models.BigIntegerField(null=False)
    nMode = models.IntegerField()
    DSID = models.CharField(max_length=60, null=True)
    Spec = models.CharField(max_length=4)
    Mode = models.CharField(max_length=16)
    Perc = models.FloatField(null=True)
    PercStr = models.CharField(max_length=100)
    QStr = models.CharField(max_length=100)
예제 #8
0
class Augers(models.Model):
    ACode = models.BigIntegerField()
    Z = models.IntegerField()
    Energy = models.FloatField(null=False)
    Element = models.CharField(max_length=4)
    Assignment = models.CharField(max_length=100)
    Kint = models.FloatField(null=True)
    KintStr = models.CharField(max_length=100, null=True)
    L1Int = models.FloatField(null=True)
    L1IntStr = models.CharField(max_length=100, null=True)
    L2Int = models.FloatField(null=True)
    L2IntStr = models.CharField(max_length=100, null=True)
    L3Int = models.FloatField(null=True)
    L3IntStr = models.CharField(max_length=100, null=True)


#
# class Parents(models.Model):
# 	iZA = models.BigIntegerField(null = False)
#
# class Parents2(models.Model):
# 	iZA = models.BigIntegerField(null = False)
#
# class Production(models.Model):
# 	iZA = models.BigIntegerField(null = False)
#
# class References(models.Model):
# 	iZA = models.BigIntegerField(null = False)
#
# class Status(models.Model):
# 	DatabaseID = models.CharField(max_length = 510)
#
# class Terms(models.Model):
# 	ID = models.BigIntegerField()
#
# class XIntensities(models.Model):
# 	iZA = models.BigIntegerField(null = False)
#
# class XRays(models.Model):
# 	XCode = models.BigIntegerField()
예제 #9
0
class XIntensities(models.Model):
    iZA = models.BigIntegerField(null=False)
    XCode = models.BigIntegerField(null=False)
    Int = models.FloatField()
    IntStr = models.CharField(max_length=100)