Remove most fields from the model to save disk space

This commit is contained in:
Никита Тырин 2024-09-16 11:27:56 +03:00
parent c122b271e9
commit 3d9c950751

View File

@ -27,17 +27,17 @@ class GaiaSource(models.Model):
related_name='sources', null=True related_name='sources', null=True
) )
solution_id = models.CharField(blank=True, default='', max_length=19) #solution_id = models.CharField(blank=True, default='', max_length=19)
#solution identifier #solution identifier
#why charfield and not integerfield? #why charfield and not integerfield?
designation = models.CharField(max_length=30, blank=True, default='') designation = models.CharField(max_length=30, blank=True, default='')
#unique source designation across all DR #unique source designation across all DR
source_id = models.CharField(max_length=19, blank=True, default='') #source_id = models.CharField(max_length=19, blank=True, default='')
#unique id within DR again why not integer #unique id within DR again why not integer
ref_epoch = models.FloatField(default=0.0, null=True) #ref_epoch = models.FloatField(default=0.0, null=True)
#reference epoch julian years #reference epoch julian years
ra = models.FloatField(default=0.0, null=True) ra = models.FloatField(default=0.0, null=True)
@ -50,25 +50,25 @@ class GaiaSource(models.Model):
#barycentric dec in icrs at ref epoch #barycentric dec in icrs at ref epoch
#error in mas #error in mas
parallax = models.FloatField(default=0.0, null=True) #parallax = models.FloatField(default=0.0, null=True)
parallax_error = models.FloatField(default=0.0, null=True) #parallax_error = models.FloatField(default=0.0, null=True)
#parallax and error at ref epoch in mas #parallax and error at ref epoch in mas
pmra = models.FloatField(default=0.0, null=True) #pmra = models.FloatField(default=0.0, null=True)
pmra_error = models.FloatField(default=0.0, null=True) #pmra_error = models.FloatField(default=0.0, null=True)
#proper motion over ra mas/yr #proper motion over ra mas/yr
pmdec = models.FloatField(default=0.0, null=True) #pmdec = models.FloatField(default=0.0, null=True)
pmdec_error = models.FloatField(default=0.0, null=True) #pmdec_error = models.FloatField(default=0.0, null=True)
#proper motion over dec mas/yr #proper motion over dec mas/yr
phot_g_mean_mag = models.FloatField(default=0.0, null=True) #phot_g_mean_mag = models.FloatField(default=0.0, null=True)
#mean g band magnitude, vega scale #mean g band magnitude, vega scale
phot_bp_mean_mag = models.FloatField(default=0.0, null=True) #phot_bp_mean_mag = models.FloatField(default=0.0, null=True)
#mean bp magnitude, vega scale #mean bp magnitude, vega scale
phot_rp_mean_mag = models.FloatField(default=0.0, null=True) #phot_rp_mean_mag = models.FloatField(default=0.0, null=True)
#mean rp magnitude, vega scale #mean rp magnitude, vega scale
healpix_ring_index = models.BigIntegerField(null=True, blank=True) healpix_ring_index = models.BigIntegerField(null=True, blank=True)