Skip to content

Conversation

@ndthang15
Copy link
Owner

No description provided.

Copy link
Owner Author

@ndthang15 ndthang15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good 👍

Comment on lines +26 to +27
user_id int4 NULL,
organization_id int4 NULL
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
user_id int4 NULL,
organization_id int4 NULL
user_id int4 NOT NULL,
organization_id int4 NOT NULL,
constraint user_org primary key (organization_id,user_id)

ALTER TABLE public.sso_organization_user ADD CONSTRAINT sso_org_user_fk_1 FOREIGN KEY (organization_id) REFERENCES public.sso_organization(organization_id);

CREATE TABLE public.sso_role (
role_id uuid NOT NULL,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
role_id uuid NOT NULL,
role_id uuid NOT NULL default uuid_generate_v4(),

Comment on lines +46 to +47
user_id int4 NULL,
role_id uuid NULL
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tương tự bảng sso_organization_user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants