Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/cgit/models.py
| # Copyright (C) 2019 the Software Heritage developers | # Copyright (C) 2019 the Software Heritage developers | ||||
| # License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
| # See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
| from sqlalchemy import Column, String | from sqlalchemy import Column, String | ||||
| from ..core.models import ModelBase | from ..core.models import ModelBase | ||||
| class CGitModel(ModelBase): | class CGitModel(ModelBase): | ||||
| """a CGit repository representation | """a CGit repository representation | ||||
| """ | """ | ||||
| __tablename__ = 'cgit_repo' | __tablename__ = 'cgit_repo' | ||||
| uid = Column(String, primary_key=True) | uid = Column(String, primary_key=True) | ||||
| time_updated = Column(String) | |||||
| instance = Column(String, index=True) | instance = Column(String, index=True) | ||||