Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/gnu/models.py
- This file was added.
| # Copyright (C) 2019 the Software Heritage developers | |||||
| # License: GNU General Public License version 3, or any later version | |||||
| # See top-level LICENSE file for more information | |||||
| from sqlalchemy import Column, String, Integer | |||||
| from ..core.models import ModelBase | |||||
| class GNUModel(ModelBase): | |||||
| """a GNU repository representation | |||||
| """ | |||||
| __tablename__ = 'gnu_repo' | |||||
| uid = Column(String, primary_key=True) | |||||
| time_last_upated = Column(Integer) | |||||
ardumont: Why do you need to add that information here? | |||||
Done Inline ActionsAs it will be a now column in the database hence I guess we need to add it in the model. nahimilega: As it will be a now column in the database hence I guess we need to add it in the model.
And… | |||||
Why do you need to add that information here?