code: public static function getTableSchema()
      {
          $tableSchema = static::getDb()
              ->getSchema()
              ->getTableSchema(static::tableName());
  
          if ($tableSchema === null) {
              throw new InvalidConfigException('The table does not exist: ' . static::tableName());
          }
  
          return $tableSchema;
      }
docs: Returns the schema information of the DB table associated with this AR class.
  @return TableSchema the schema information of the DB table associated with this AR class.
  @throws InvalidConfigException if the table for the AR class does not exist.