mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-12 22:48:06 +02:00
Added table for registrar to user connection
This commit is contained in:
parent
4c3d4d6b18
commit
2ec5e9b6f5
2 changed files with 27 additions and 10 deletions
|
@ -463,6 +463,15 @@ CREATE TABLE IF NOT EXISTS registry.users_throttling (
|
|||
);
|
||||
CREATE INDEX IF NOT EXISTS "expires_at" ON registry.users_throttling ("expires_at");
|
||||
|
||||
CREATE TABLE IF NOT EXISTS registry.registrar_users (
|
||||
registrar_id int NOT NULL,
|
||||
user_id int NOT NULL,
|
||||
PRIMARY KEY (registrar_id, user_id),
|
||||
FOREIGN KEY (registrar_id) REFERENCES registrar(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
|
||||
) WITH (OIDS=FALSE);
|
||||
COMMENT ON TABLE registrar_users IS 'Linking Registrars with Panel Users';
|
||||
|
||||
CREATE TABLE registry.urs_actions (
|
||||
"id" serial8 PRIMARY KEY,
|
||||
"domain_name" VARCHAR(255) NOT NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue