This commit is contained in:
bumpsoo 2026-02-03 09:44:08 +00:00
commit b887f15662
21 changed files with 1038 additions and 0 deletions

10
schema.sql Normal file
View file

@ -0,0 +1,10 @@
CREATE DATABASE IF NOT EXISTS socket_server;
USE socket_server;
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(32) UNIQUE NOT NULL,
gold BIGINT UNSIGNED DEFAULT 10000,
sword_level INT DEFAULT 0,
last_login TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);