start of db management and tables
All checks were successful
Code quality checks / biome (push) Successful in 9s
All checks were successful
Code quality checks / biome (push) Successful in 9s
This commit is contained in:
parent
ab81475ad6
commit
d066cc9fed
6 changed files with 112 additions and 18 deletions
17
config/setup/tables/users.ts
Normal file
17
config/setup/tables/users.ts
Normal 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
|
||||
);
|
||||
`);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue