Deployment configuration
This commit is contained in:
1 parent
f8c9820e2c
commit
ea1615995d
10 files changed
+123
-60
No files matched your search
+5
-5
@@ -2,18 +2,18 @@ CREATE TABLE users (
|
||||
user_id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
username VARCHAR(100) UNIQUE NOT NULL,
|
||||
email VARCHAR(255) UNIQUE NOT NULL,
|
||||
password_hash CHAR(64) DEFAULT NULL, -- SHA256 hash or similar
|
||||
api_key VARCHAR(255) UNIQUE NOT NULL, -- for API authentication
|
||||
password_hash CHAR(64) DEFAULT NULL,
|
||||
api_key VARCHAR(255) UNIQUE NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
last_login TIMESTAMP NULL DEFAULT NULL,
|
||||
status ENUM('active','inactive','banned') NOT NULL DEFAULT 'active'
|
||||
);
|
||||
|
||||
CREATE TABLE device_tokens (
|
||||
token_id CHAR(36) NOT NULL PRIMARY KEY, -- UUID
|
||||
user_id BIGINT NOT NULL, -- Foreign key
|
||||
token_id CHAR(36) NOT NULL PRIMARY KEY,
|
||||
user_id BIGINT NOT NULL,
|
||||
platform ENUM('ios','android','web') NOT NULL,
|
||||
token VARBINARY(512) NOT NULL, -- encrypted token
|
||||
token VARBINARY(512) NOT NULL,
|
||||
status ENUM('active','invalid','expired') NOT NULL DEFAULT 'active',
|
||||
app_version VARCHAR(50),
|
||||
locale VARCHAR(10),
|
||||
|
||||
Reference in new issue
Block a user