mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-19 19:46:34 +00:00
28 lines
448 B
MySQL
28 lines
448 B
MySQL
|
-- Add migration script here
|
||
|
CREATE TABLE
|
||
|
ndk_users (
|
||
|
pubkey TEXT NOT NULL PRIMARY KEY,
|
||
|
profile TEXT,
|
||
|
createdAt NUMBER
|
||
|
);
|
||
|
|
||
|
CREATE TABLE
|
||
|
ndk_events (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
pubkey TEXT,
|
||
|
content TEXT,
|
||
|
kind NUMBER,
|
||
|
createdAt NUMBER,
|
||
|
relay TEXT,
|
||
|
event TEXT
|
||
|
);
|
||
|
|
||
|
CREATE TABLE
|
||
|
ndk_eventtags (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
eventId TEXT,
|
||
|
tag TEXT,
|
||
|
value TEXT,
|
||
|
tagValue TEXT
|
||
|
);
|