15 lines
307 B
MySQL
15 lines
307 B
MySQL
|
CREATE TABLE users (
|
||
|
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
username TEXT NOT NULL,
|
||
|
password TEXT NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE videos (
|
||
|
id TEXT PRIMARY KEY NOT NULL,
|
||
|
user_id INTEGER,
|
||
|
title TEXT NOT NULL,
|
||
|
path TEXT NOT NULL,
|
||
|
FOREIGN KEY(user_id) REFERENCES users(id)
|
||
|
);
|
||
|
|