1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Oauth - Extend tables

Discussion in 'PHP' started by Contfm, Dec 20, 2016.

  1. #1
    Hello,

    I have 3 apps: passport, consumer1 and consumer2.

    In the first project (passport) i have one table: users.

    users columns: id and name.

    Each consumer want to extend the table, and to add their own columns.

    consumer1

    id, name, avatar

    consumer2

    id, name, status, account

    How can each consumer customize passport tables?

    Thank you very much!
     
    Contfm, Dec 20, 2016 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    By using proper table prefixes, that way you don't have one table for all consumers, but allow them access to only those tables that they have the correct prefix for, and then you allow them to change / add whatever in that table (or those tables, if more tables will be coming along).
     
    PoPSiCLe, Dec 21, 2016 IP