mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-09 15:57:59 -05:00
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:
@@ -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 ,
|
||||
|
||||
2
db/db.py
2
db/db.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user