Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabulka pro social tokeny #209

Open
pohadkar opened this issue Sep 24, 2021 · 0 comments
Open

tabulka pro social tokeny #209

pohadkar opened this issue Sep 24, 2021 · 0 comments

Comments

@pohadkar
Copy link
Collaborator

-- Struktura tabulky t_social_tokens

CREATE TABLE t_social_tokens (
c_uid int NOT NULL,
c_user_id int NOT NULL,
c_service varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
c_type varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
c_data varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
c_token varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
c_valid_until int NOT NULL DEFAULT '0',
c_long_token varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Klíče pro exportované tabulky

--
-- Klíče pro tabulku t_social_tokens

ALTER TABLE t_social_tokens
ADD PRIMARY KEY (c_uid),
ADD KEY c_uid (c_user_id) USING BTREE;

--
-- AUTO_INCREMENT pro tabulky

--
-- AUTO_INCREMENT pro tabulku t_social_tokens

ALTER TABLE t_social_tokens
MODIFY c_uid int NOT NULL AUTO_INCREMENT;
COMMIT;

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

No branches or pull requests

1 participant