Changed DB comment for user column is_active in order to be inline with what the frontend does. If user is inactive changed from 0 to 2.

This commit is contained in:
João Silva
2023-11-02 11:09:05 +00:00
parent 6b8c3f038c
commit ae12cfc393
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `gearguardian`.`users` (
`access_type` INT(1) NOT NULL COMMENT 'User type (one digit)(1 - regular user, 2 - admin)' ,
`photo_path` VARCHAR(250) NULL COMMENT 'User photo path' ,
`photo_path_aux` VARCHAR(250) NULL COMMENT 'Auxiliar photo path' ,
`is_active` INT(1) NOT NULL COMMENT 'Is user active (0 - not active, 1 - active)' ,
`is_active` INT(1) NOT NULL COMMENT 'Is user active (2 - not active, 1 - active)' ,
`strava_token` VARCHAR(250) NULL ,
`strava_refresh_token` VARCHAR(250) NULL ,
`strava_token_expires_at` DATETIME NULL ,

View File

@@ -43,7 +43,7 @@ class User(Base):
access_type = Column(Integer, nullable=False, comment='User type (one digit)(1 - student, 2 - admin)')
photo_path = Column(String(length=250), nullable=True, comment='User photo path')
photo_path_aux = Column(String(length=250), nullable=True, comment='Auxiliary photo path')
is_active = Column(Integer, nullable=False, comment='Is user active (0 - not active, 1 - active)')
is_active = Column(Integer, nullable=False, comment='Is user active (2 - not active, 1 - active)')
strava_token = Column(String(length=250), nullable=True)
strava_refresh_token = Column(String(length=250), nullable=True)
strava_token_expires_at = Column(DateTime, nullable=True)