summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-17 16:32:11 -0600
committermo khan <mo@mokhan.ca>2025-03-17 16:32:11 -0600
commit084ec28adef9f16a0f38f0457662e9695dfcff8a (patch)
treeb2f4abd372d26d13331a9c9ee69d75249bcc50a3 /db
parent94d084a51172b7e3851779e9e052435084d4abfe (diff)
feat: use csv files to simulate database tables
Diffstat (limited to 'db')
-rw-r--r--db/groups.csv9
-rw-r--r--db/organizations.csv3
-rw-r--r--db/projects.csv9
-rw-r--r--db/users.csv2
4 files changed, 23 insertions, 0 deletions
diff --git a/db/groups.csv b/db/groups.csv
new file mode 100644
index 0000000..1ff280b
--- /dev/null
+++ b/db/groups.csv
@@ -0,0 +1,9 @@
+id, organization_id, parent_id, name
+1, 1, -1, "A"
+2, 1, -1, "B"
+3, 2, -1, "gitlab-org"
+4, 2, -1, "gitlab-com"
+5, 2, 4, "gl-security"
+6, 2, 5, "test-projects"
+7, 2, 4, "support"
+8, 2, 7, "toolbox"
diff --git a/db/organizations.csv b/db/organizations.csv
new file mode 100644
index 0000000..6758477
--- /dev/null
+++ b/db/organizations.csv
@@ -0,0 +1,3 @@
+id, name
+1, default
+2, gitlab
diff --git a/db/projects.csv b/db/projects.csv
new file mode 100644
index 0000000..d824f59
--- /dev/null
+++ b/db/projects.csv
@@ -0,0 +1,9 @@
+id, group_id, name
+1, 1, "A1"
+2, 2, "B1"
+3, 3, "gitlab"
+4, 6, "eicar-test-project"
+5, 5, "disclosures"
+6, 8, "changelog-parser"
+7, 4, "handbook"
+8, 4, "www-gitlab-com"
diff --git a/db/users.csv b/db/users.csv
new file mode 100644
index 0000000..a0194d7
--- /dev/null
+++ b/db/users.csv
@@ -0,0 +1,2 @@
+"id","username","email","password_digest"
+1,"root","root@example.org","$2a$12$pFh1DgN0JcvRAeHeTCGfiuDtuaFaV0vG7He0B6YVpkKWsBy2ZmZtO"