fforge/crates/backend/migrations/20240627153516_initial.sql

15 lines
281 B
MySQL
Raw Normal View History

2024-06-27 16:06:47 +00:00
CREATE TABLE users (
user_id TEXT PRIMARY KEY,
name TEXT UNIQUE
);
CREATE TABLE user_keys (
user_key TEXT PRIMARY KEY,
user_id TEXT NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(user_id)
);
CREATE TABLE repo (
repo_id TEXT PRIMARY KEY,
repo_name TEXT NOT NULL
);