Skip to content

Commit

Permalink
Add links lite-TIC
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jun 15, 2020
1 parent d4643de commit ed83510
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions python/sdssdb/peewee/sdss5db/catalogdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,12 @@ class Gaia_DR2_Lite(CatalogdbModel):
column_name='source_id',
backref='+')

tic = ForeignKeyField(TIC_v8,
field='gaia_int',
column_name='source_id',
object_id_name='source_id',
backref='+')


class Legacy_Survey_DR8_Lite(CatalogdbModel):

Expand All @@ -1032,6 +1038,12 @@ class Legacy_Survey_DR8_Lite(CatalogdbModel):
column_name='ls_id',
backref='+')

tic = ForeignKeyField(TIC_v8,
field='gaia_int',
column_name='gaia_sourceid',
object_id_name='gaia_sourceid',
backref='+')

gaia = ForeignKeyField(Gaia_DR2,
column_name='gaia_sourceid',
object_id_name='gaia_sourceid',
Expand All @@ -1046,6 +1058,12 @@ class TwoMassPSC_Lite(CatalogdbModel):
column_name='pts_key',
backref='+')

tic = ForeignKeyField(TIC_v8,
field='twomass_psc',
column_name='designation',
object_id_name='designation',
backref='+')

class Meta:
table_name = 'twomass_psc_lite'

Expand Down Expand Up @@ -1098,6 +1116,12 @@ class AllWise_Lite(CatalogdbModel):
column_name='cntr',
backref='+')

tic = ForeignKeyField(TIC_v8,
field='allwise',
column_name='designation',
object_id_name='designation',
backref='+')


# Add relational tables to namespace.
if database.connected and database.is_connection_usable():
Expand Down

0 comments on commit ed83510

Please sign in to comment.