SQL
CREATE TABLE "core_users_groups" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"user_id" bigint NOT NULL REFERENCES "core_users" ("id") DEFERRABLE INITIALLY DEFERRED,
"group_id" integer NOT NULL REFERENCES "auth_group" ("id") DEFERRABLE INITIALLY DEFERRED
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
id |
INTEGER |
✓ | Rename | Drop | |
user_id |
bigint |
Rename | Drop | ||
group_id |
INTEGER |
Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
group_id |
auth_group.id |
user_id |
core_users.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| core_users_groups_group_id_a85c7d38 |
group_id
|
SQL | Drop | |
| core_users_groups_user_id_acee482b |
user_id
|
SQL | Drop | |
| core_users_groups_user_id_group_id_61a6cd7e_uniq |
|
✓ | SQL | Drop |