2023-10-15 20:33:14 +00:00
|
|
|
-- SPDX-FileCopyrightText: 2023 Louis Hollingworth <louis@hollingworth.nl>
|
|
|
|
--
|
|
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
-- Your SQL goes here
|
|
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
|
|
|
|
|
|
CREATE TABLE users (
|
2023-10-17 17:20:02 +00:00
|
|
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
2023-10-15 20:33:14 +00:00
|
|
|
username VARCHAR NOT NULL,
|
|
|
|
epost VARCHAR NOT NULL,
|
|
|
|
pass VARCHAR NOT NULL,
|
|
|
|
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
2023-10-17 17:20:02 +00:00
|
|
|
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
|
|
|
main_fedi TEXT
|
2023-10-15 20:33:14 +00:00
|
|
|
);
|
|
|
|
SELECT diesel_manage_updated_at('users');
|