10 lines
282 B
MySQL
10 lines
282 B
MySQL
|
CREATE TABLE users(
|
||
|
UserID BIGINT NOT NULL PRIMARY KEY,
|
||
|
Email TEXT NOT NULL UNIQUE);
|
||
|
|
||
|
CREATE TABLE user_notes(
|
||
|
UserID BIGINT NOT NULL REFERENCES users(UserID),
|
||
|
NoteID BIGINT NOT NULL,
|
||
|
Note Text NOT NULL,
|
||
|
PRIMARY KEY(UserID,NoteID));
|