start of db management and tables
All checks were successful
Code quality checks / biome (push) Successful in 9s

This commit is contained in:
creations 2025-05-01 17:16:36 -04:00
parent ab81475ad6
commit d066cc9fed
Signed by: creations
GPG key ID: 8F553AA4320FC711
6 changed files with 112 additions and 18 deletions

View file

@ -0,0 +1,17 @@
import { CassandraService } from "@lib/cassandra";
export async function createTable() {
await CassandraService.getClient().execute(`
CREATE TABLE IF NOT EXISTS users (
id TEXT PRIMARY KEY,
name TEXT,
display_name TEXT,
email TEXT,
password TEXT,
avatar_url TEXT,
is_verified BOOLEAN,
created_at TIMESTAMP,
updated_at TIMESTAMP
);
`);
}