mirror of https://github.com/buster-so/buster.git
13 lines
363 B
MySQL
13 lines
363 B
MySQL
|
-- Your SQL goes here
|
||
|
CREATE TABLE users (
|
||
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||
|
email TEXT NOT NULL UNIQUE,
|
||
|
name TEXT,
|
||
|
config JSONB NOT NULL DEFAULT '{}',
|
||
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||
|
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||
|
);
|
||
|
|
||
|
-- Enable Row Level Security
|
||
|
ALTER TABLE
|
||
|
users ENABLE ROW LEVEL SECURITY;
|