support user

This commit is contained in:
maojindao55
2025-04-01 07:26:40 +08:00
parent 4a5a224056
commit 6929aa8a47
3 changed files with 62 additions and 0 deletions

13
friends.sql Normal file
View File

@@ -0,0 +1,13 @@
PRAGMA defer_foreign_keys=TRUE;
CREATE TABLE users (
id INTEGER PRIMARY KEY AUTOINCREMENT,
phone VARCHAR(11) NOT NULL UNIQUE,
nickname VARCHAR(50),
avatar_url TEXT,
status INTEGER DEFAULT 1,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
last_login_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO users VALUES(1,'13800138000','测试用户',NULL,1,'2025-03-26 08:39:15','2025-03-26 08:39:15','2025-03-26 08:39:15');
INSERT INTO users VALUES(2,'13391881866','Hobby',NULL,1,'2025-03-26 09:42:30','2025-03-27 05:50:04','2025-03-27 03:21:40');