New things...

master
Kaitlyn Parkhurst 3 years ago
parent dbdc512df3
commit e0a72bbda0
  1. 31
      DB/etc/schema.sql

@ -9,6 +9,15 @@ CREATE TABLE person (
created_at timestamptz not null default current_timestamp
);
-- Allow notes to be made about a person (Admin Panel -> People -> Person)
CREATE TABLE person_note (
id serial PRIMARY KEY,
person_id int not null references person(id),
source_id int not null references person(id),
content text ,
created_at timestamptz not null default current_timestamp
);
-- Settings for a given user. | Use with care, add things to the data model when you should.
CREATE TABLE person_settings (
id serial PRIMARY KEY,
@ -129,9 +138,31 @@ CREATE TABLE hosted_domain (
created_at timestamptz not null default current_timestamp
);
-- Make a simple invite gate for creating accounts.
CREATE TABLE invite (
id serial PRIMARY KEY,
code text not null,
is_active boolean not null default true,
is_one_time_use boolean not null default true,
created_at timestamptz not null default current_timestamp
);
-- Servers that we will deploy the blogs to.
CREATE TABLE servers (
id serial PRIMARY KEY,
hostname text not null,
created_at timestamptz not null default current_timestamp
);
-- Allow notes to be made that will show up on the admin panel.
--
-- The is_read count can help with adding a marker to the Admin Panel -> Notes tab
-- when there is unread notes.
CREATE TABLE system_note (
id serial PRIMARY KEY,
is_read boolean not null default false,
source text ,
content text ,
created_at timestamptz not null default current_timestamp
);

Loading…
Cancel
Save