Hirdetés

Új hozzászólás Aktív témák

  • Bambula5

    csendes tag

    válasz fordfairlane #9295 üzenetére

    Table "public.users"
    Column | Type | Modifiers
    ------------+-----------------------+----------------------------------------------------
    id | bigint | not null default nextval('users_id_seq'::regclass)
    first_name | character varying(20) | not null
    last_name | character varying(20) | not null
    Indexes:
    "pk_users" PRIMARY KEY, btree (id)
    Foreign-key constraints:
    "fk_users_1" FOREIGN KEY (id) REFERENCES products_reviews(user_id)

    Table "public.products_reviews"
    Column | Type | Modifiers
    ----------+---------+-------------------------------------------------------------
    id | bigint | not null default nextval('products_reviews_id_seq'::regclass)
    star | integer | not null
    comment | text | not null
    product_id | bigint |
    user_id | bigint |
    Indexes:
    "pk_products_reviews" PRIMARY KEY, btree (id)
    "pk_products_reviews_0" UNIQUE CONSTRAINT, btree (product_id)
    "pk_products_reviews_1" UNIQUE CONSTRAINT, btree (user_id)
    Referenced by:
    TABLE "products" CONSTRAINT "fk_products_3" FOREIGN KEY (id) REFERENCES products_reviews(product_id)
    TABLE "users" CONSTRAINT "fk_users_1" FOREIGN KEY (id) REFERENCES products_reviews(user_id)

    [ Szerkesztve ]

Új hozzászólás Aktív témák