bubble/db/setup-tables.sql
shockrah b4aa323577 Cleaning up the admin credentials creation a ton and creating the default bubble
admin user in the users table.
Still need UUIDv7 in as primary keys but we're getting there slowly
2025-01-07 22:54:50 -08:00

17 lines
323 B
SQL

CREATE TABLE IF NOT EXISTS users (
/* */
id UUID,
/* Acts as a kind of nick name per instance as it assumes no uniqueness */
username VARCHAR(256),
/* Basic salted+hashed password */
password VARCHAR(256),
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS invites (
id BIGINT,
expires INTEGER,
PRIMARY KEY (id)
);