waffle/src/database/init.ts

11 lines
265 B
TypeScript
Raw Normal View History

2022-04-05 22:34:06 +03:00
import { query } from ".";
export default async function databaseInit() {
console.log(await query(`
CREATE TABLE users(
id SERIAL PRIMARY KEY,
username VARCHAR(32) UNIQUE NOT NULL,
password TEXT
);
`));
}