Skip to content

Commit cbcef30

Browse files
author
App Generator
committed
Added Sample I/O
1 parent 3465c16 commit cbcef30

7 files changed

+160
-0
lines changed

output/.gitkeep

Whitespace-only changes.

output/09_19_SQLITE.sql

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
2+
-- Table: api_user_user
3+
CREATE TABLE IF NOT EXISTS "api_user_user" (
4+
"id" INTEGER NOT NULL PRIMARY KEY,
5+
"password" VARCHAR(255) NOT NULL,
6+
"last_login" DATETIME,
7+
"is_superuser" INTEGER NOT NULL,
8+
"username" VARCHAR(255) NOT NULL,
9+
"email" VARCHAR(255) NOT NULL,
10+
"is_active" INTEGER NOT NULL,
11+
"date" DATETIME NOT NULL
12+
);
13+
14+
-- Table: api_authentication_activesession
15+
CREATE TABLE IF NOT EXISTS "api_authentication_activesession" (
16+
"id" INTEGER NOT NULL PRIMARY KEY,
17+
"token" VARCHAR(255) NOT NULL,
18+
"date" DATETIME NOT NULL,
19+
"user_id" INTEGER NOT NULL,
20+
FOREIGN KEY ("user_id") REFERENCES "api_user_user" ("id")
21+
);
22+
23+
-- Table: auth_group
24+
CREATE TABLE IF NOT EXISTS "auth_group" (
25+
"id" INTEGER NOT NULL PRIMARY KEY,
26+
"name" VARCHAR(255) NOT NULL
27+
);
28+
29+
-- Table: api_user_user_groups
30+
CREATE TABLE IF NOT EXISTS "api_user_user_groups" (
31+
"id" INTEGER NOT NULL PRIMARY KEY,
32+
"user_id" INTEGER NOT NULL,
33+
"group_id" INTEGER NOT NULL,
34+
FOREIGN KEY ("user_id") REFERENCES "api_user_user" ("id"),
35+
FOREIGN KEY ("group_id") REFERENCES "auth_group" ("id")
36+
);
37+
38+
-- Table: django_content_type
39+
CREATE TABLE IF NOT EXISTS "django_content_type" (
40+
"id" INTEGER NOT NULL PRIMARY KEY,
41+
"app_label" VARCHAR(255) NOT NULL,
42+
"model" VARCHAR(255) NOT NULL
43+
);
44+
45+
-- Table: auth_permission
46+
CREATE TABLE IF NOT EXISTS "auth_permission" (
47+
"id" INTEGER NOT NULL PRIMARY KEY,
48+
"content_type_id" INTEGER NOT NULL,
49+
"codename" VARCHAR(255) NOT NULL,
50+
"name" VARCHAR(255) NOT NULL,
51+
FOREIGN KEY ("content_type_id") REFERENCES "django_content_type" ("id")
52+
);
53+
54+
-- Table: api_user_user_user_permissions
55+
CREATE TABLE IF NOT EXISTS "api_user_user_user_permissions" (
56+
"id" INTEGER NOT NULL PRIMARY KEY,
57+
"user_id" INTEGER NOT NULL,
58+
"permission_id" INTEGER NOT NULL,
59+
FOREIGN KEY ("user_id") REFERENCES "api_user_user" ("id"),
60+
FOREIGN KEY ("permission_id") REFERENCES "auth_permission" ("id")
61+
);
62+
63+
-- Table: auth_group_permissions
64+
CREATE TABLE IF NOT EXISTS "auth_group_permissions" (
65+
"id" INTEGER NOT NULL PRIMARY KEY,
66+
"group_id" INTEGER NOT NULL,
67+
"permission_id" INTEGER NOT NULL,
68+
FOREIGN KEY ("group_id") REFERENCES "auth_group" ("id"),
69+
FOREIGN KEY ("permission_id") REFERENCES "auth_permission" ("id")
70+
);
71+
72+
-- Table: django_admin_log
73+
CREATE TABLE IF NOT EXISTS "django_admin_log" (
74+
"id" INTEGER NOT NULL PRIMARY KEY,
75+
"action_time" DATETIME NOT NULL,
76+
"object_id" TEXT,
77+
"object_repr" VARCHAR(255) NOT NULL,
78+
"change_message" TEXT NOT NULL,
79+
"content_type_id" INTEGER,
80+
"user_id" INTEGER NOT NULL,
81+
"action_flag" INTEGER NOT NULL,
82+
FOREIGN KEY ("content_type_id") REFERENCES "django_content_type" ("id"),
83+
FOREIGN KEY ("user_id") REFERENCES "api_user_user" ("id")
84+
);
85+
86+
-- Table: django_migrations
87+
CREATE TABLE IF NOT EXISTS "django_migrations" (
88+
"id" INTEGER NOT NULL PRIMARY KEY,
89+
"app" VARCHAR(255) NOT NULL,
90+
"name" VARCHAR(255) NOT NULL,
91+
"applied" DATETIME NOT NULL
92+
);
93+
94+
-- Table: django_session
95+
CREATE TABLE IF NOT EXISTS "django_session" (
96+
"session_key" VARCHAR(255) NOT NULL PRIMARY KEY,
97+
"session_data" TEXT NOT NULL,
98+
"expire_date" DATETIME NOT NULL
99+
);

output/09_19_SQLITE_api_user_user.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
id,password,last_login,is_superuser,username,email,is_active,date,
2+
1,pbkdf2_sha256$320000$XOBcShb45HmpJ8xBO5kfhQ$lJzLbylHXSKsxw1EfS7KoGlCreqbs3zsoonadZ5sxkU=,None,False,test2,test2@appseed.us,True,2022-01-28 08:55:03.757957,
3+
2,pbkdf2_sha256$320000$HRa9VFfnsnSUa7CXtcWvmv$H+oIWzDBza3OaEKv3tAiZpJMlxM82yUrQq5Xrq0Mivk=,None,False,test3,test3@appseed.us,True,2022-01-28 09:10:42.385521,
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
id,content_type_id,codename,name,
2+
1,1,add_logentry,Can add log entry,
3+
2,1,change_logentry,Can change log entry,
4+
3,1,delete_logentry,Can delete log entry,
5+
4,1,view_logentry,Can view log entry,
6+
5,2,add_permission,Can add permission,
7+
6,2,change_permission,Can change permission,
8+
7,2,delete_permission,Can delete permission,
9+
8,2,view_permission,Can view permission,
10+
9,3,add_group,Can add group,
11+
10,3,change_group,Can change group,
12+
11,3,delete_group,Can delete group,
13+
12,3,view_group,Can view group,
14+
13,4,add_contenttype,Can add content type,
15+
14,4,change_contenttype,Can change content type,
16+
15,4,delete_contenttype,Can delete content type,
17+
16,4,view_contenttype,Can view content type,
18+
17,5,add_session,Can add session,
19+
18,5,change_session,Can change session,
20+
19,5,delete_session,Can delete session,
21+
20,5,view_session,Can view session,
22+
21,6,add_user,Can add user,
23+
22,6,change_user,Can change user,
24+
23,6,delete_user,Can delete user,
25+
24,6,view_user,Can view user,
26+
25,7,add_activesession,Can add active session,
27+
26,7,change_activesession,Can change active session,
28+
27,7,delete_activesession,Can delete active session,
29+
28,7,view_activesession,Can view active session,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
id,app_label,model,
2+
1,admin,logentry,
3+
2,auth,permission,
4+
3,auth,group,
5+
4,contenttypes,contenttype,
6+
5,sessions,session,
7+
6,api_user,user,
8+
7,api_authentication,activesession,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
id,app,name,applied,
2+
1,contenttypes,0001_initial,2022-01-28 08:54:45.319851,
3+
2,contenttypes,0002_remove_content_type_name,2022-01-28 08:54:45.375351,
4+
3,auth,0001_initial,2022-01-28 08:54:45.447736,
5+
4,auth,0002_alter_permission_name_max_length,2022-01-28 08:54:45.489094,
6+
5,auth,0003_alter_user_email_max_length,2022-01-28 08:54:45.517915,
7+
6,auth,0004_alter_user_username_opts,2022-01-28 08:54:45.557104,
8+
7,auth,0005_alter_user_last_login_null,2022-01-28 08:54:45.590356,
9+
8,auth,0006_require_contenttypes_0002,2022-01-28 08:54:45.617586,
10+
9,auth,0007_alter_validators_add_error_messages,2022-01-28 08:54:45.650854,
11+
10,auth,0008_alter_user_username_max_length,2022-01-28 08:54:45.680749,
12+
11,auth,0009_alter_user_last_name_max_length,2022-01-28 08:54:45.716266,
13+
12,auth,0010_alter_group_name_max_length,2022-01-28 08:54:45.754734,
14+
13,auth,0011_update_proxy_permissions,2022-01-28 08:54:45.782648,
15+
14,auth,0012_alter_user_first_name_max_length,2022-01-28 08:54:45.817732,
16+
15,api_user,0001_initial,2022-01-28 08:54:45.883037,
17+
16,admin,0001_initial,2022-01-28 08:54:45.936332,
18+
17,admin,0002_logentry_remove_auto_add,2022-01-28 08:54:45.995451,
19+
18,admin,0003_logentry_add_action_flag_choices,2022-01-28 08:54:46.039595,
20+
19,api_authentication,0001_initial,2022-01-28 08:54:46.084120,
21+
20,sessions,0001_initial,2022-01-28 08:54:46.136399,

samples/api-django.sqlite3

140 KB
Binary file not shown.

0 commit comments

Comments
 (0)