-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path123.sql
More file actions
59 lines (45 loc) · 1.28 KB
/
123.sql
File metadata and controls
59 lines (45 loc) · 1.28 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
Navicat SQLite Data Transfer
Source Server : date
Source Server Type : SQLite
Source Server Version : 3021000
Source Schema : main
Target Server Type : SQLite
Target Server Version : 3021000
File Encoding : 65001
Date: 09/05/2018 17:01:24
*/
--PRAGMA foreign_keys = true;
-- ----------------------------
-- Table structure for USER
-- ----------------------------
DROP TABLE IF EXISTS POINT;
DROP TABLE IF EXISTS USER;
CREATE TABLE USER (
AccountID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
Account TEXT NOT NULL UNIQUE,
Password TEXT NOT NULL
);
INSERT INTO "USER" (Account, Password) VALUES ('admin', '123456');
INSERT INTO "USER" (Account, Password) VALUES ('cthcth', '000000');
CREATE TABLE POINT (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
X DOUBLE ,
Y DOUBLE ,
Information TEXT ,
author_id INTEGER ,
FOREIGN KEY (author_id) REFERENCES USER (AccountID)
);
-- ----------------------------
-- Table structure for sqlite_sequence
-- ----------------------------
--DROP TABLE IF EXISTS "sqlite_sequence";
--CREATE TABLE "sqlite_sequence" (
-- "name",
-- "seq"
--);
--
---- ----------------------------
---- Auto increment value for USER
---- ----------------------------
--UPDATE "sqlite_sequence" SET seq = 1 WHERE name = 'USER';