mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-18 23:21:03 +00:00
30 lines
702 B
MySQL
30 lines
702 B
MySQL
|
CREATE TABLE config (
|
||
|
id bigserial primary key,
|
||
|
name varchar(255) NOT NULL,
|
||
|
value varchar(255) NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE entries (
|
||
|
id bigserial primary key,
|
||
|
title varchar(255) NOT NULL,
|
||
|
url varchar(255) NOT NULL,
|
||
|
is_read boolean DEFAULT false,
|
||
|
is_fav boolean DEFAULT false,
|
||
|
content TEXT,
|
||
|
user_id integer NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE users (
|
||
|
id bigserial primary key,
|
||
|
username varchar(255) NOT NULL,
|
||
|
password varchar(255) NOT NULL,
|
||
|
name varchar(255) NOT NULL,
|
||
|
email varchar(255) NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE users_config (
|
||
|
id bigserial primary key,
|
||
|
user_id integer NOT NULL,
|
||
|
name varchar(255) NOT NULL,
|
||
|
value varchar(255) NOT NULL
|
||
|
);
|