File size: 1,042 Bytes
daa9d8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*

 Navicat Premium Dump SQL



 Source Server         : api_keys

 Source Server Type    : SQLite

 Source Server Version : 3045000 (3.45.0)

 Source Schema         : main



 Target Server Type    : SQLite

 Target Server Version : 3045000 (3.45.0)

 File Encoding         : 65001



 Date: 03/11/2024 20:45:36

*/

PRAGMA foreign_keys = false;

-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS "users";
CREATE TABLE "users" (
  "id" INTEGER PRIMARY KEY AUTOINCREMENT,
  "username" TEXT NOT NULL,
  "password" TEXT NOT NULL,
  "email" TEXT NOT NULL,
  "nikename" TEXT,
  "api_key" TEXT,
  "config" TEXT,
  "created_at" DATETIME DEFAULT CURRENT_TIMESTAMP,
  "updated_at" DATETIME DEFAULT CURRENT_TIMESTAMP,
  UNIQUE ("username" ASC),
  UNIQUE ("email" ASC)
);

-- ----------------------------
-- Auto increment value for users
-- ----------------------------
UPDATE "sqlite_sequence" SET seq = 5 WHERE name = 'users';

PRAGMA foreign_keys = true;