Louis Hollingworth
cf80d4b70d
Added DB schemas that are needed for the basics. Signed-off-by: Louis Hollingworth <louis@hollingworth.nl>
19 lines
495 B
SQL
19 lines
495 B
SQL
-- SPDX-FileCopyrightText: 2023 Louis Hollingworth <louis@hollingworth.nl>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- Your SQL goes here
|
|
CREATE TABLE blogs (
|
|
id SERIAL PRIMARY KEY,
|
|
slug VARCHAR NOT NULL,
|
|
name VARCHAR NOT NULL,
|
|
description TEXT NOT NULL,
|
|
url TEXT NOT NULL,
|
|
user_id UUID NOT NULL REFERENCES users(id),
|
|
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
|
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
|
);
|
|
|
|
SELECT diesel_manage_updated_at('blogs');
|
|
|