title: I want to implement manager class. So when we create user, we can define manager and under that defined manager we will create user
body: <pre><code>roles users = db.Table(
      'roles_users',
      db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
      db.Column('role_id', db.Integer(), db.ForeignKey('role.id'))
  )
  </code></pre>
  <p>Above mentioned code is for roles_users table</p>
  <pre><code>class Role(db.Model, RoleMixin):
      id = db.Column(db.Integer(), primary_key=True)
      name = db.Column(db.String(80), unique=True)
      description = db.Column(db.String(255))
  
      def __str__(self):
          return self.name
  </code></pre>
  <p>Above mentioned code build Role table and returns name of specific
  role(SuperAdmin, Admin, User)</p>
  <pre><code>class User(db.Model, UserMixin):
      id = db.Column(db.Integer, primary_key=True)
      first_name = db.Column(db.String(255))
      last_name = db.Column(db.String(255))
      email = db.Column(db.String(255), unique=True)
      password = db.Column(db.String(255))
      active = db.Column(db.Boolean())
      roles = db.relationship('Role', secondary=roles_users,
                              backref=db.backref('users', lazy='dynamic'))
      managername = db.Column(db.String(20))
      managers = db.relationship('Manager', backref='user', lazy='dynamic')
  
      def __str__(self):
          return self.first_name
  </code></pre>
  <p>Class User for user database</p>
  <pre><code>class Manager(db.Model, RoleMixin):
      id = db.Column(db.Integer, primary_key=True)
      username = db.Column(db.String(20))
      email = db.Column(db.String(50))
      user_id = db.Column(db.Integer, db.ForeignKey('user.id'), nullable=True)
  
      def __repr__(self):
          return '&lt;Manager %r&gt;' %(self.username)
  </code></pre>
  <p>class manager for manager database</p>
  <pre><code> user_datastore = SQLAlchemyUserDatastore(db, User, Role, Manager)
   security = Security(app, user_datastore)
  </code></pre>
  <p>**<strong>user_datastore =SQLAlchemyUserDatastore(db, User, Role, Manager)
  TypeError: <strong>init</strong>() takes 4 positional arguments but 5 were
  given</strong></p>