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.

Good 👍

CREATE TYPE type_sex AS ENUM ('male', 'female');
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE IF NOT EXISTS sso_user (
user_id SERIAL PRIMARY KEY,
Copy link
Owner Author

Choose a reason for hiding this comment

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

Cần thêm generate tự tăng

Suggested change
user_id SERIAL PRIMARY KEY,
user_id SERIAL PRIMARY KEY GENERATED ALWAYS AS IDENTITY,

status type_status DEFAULT 'active'
);
CREATE TABLE IF NOT EXISTS sso_organization (
organization_id SERIAL PRIMARY KEY,
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
organization_id SERIAL PRIMARY KEY,
organization_id SERIAL PRIMARY KEY GENERATED ALWAYS AS IDENTITY,

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