mirror of
https://github.com/supleed2/nanobot.git
synced 2024-11-09 20:25:48 +00:00
Add SQLx migrations
Members, PendingMembers and ManualMembers in members, pending and manual tables
This commit is contained in:
parent
944a950724
commit
5b20f1318f
7
migrations/20230912221321_members.sql
Normal file
7
migrations/20230912221321_members.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE IF NOT EXISTS "members" (
|
||||
"discord_id" BIGINT NOT NULL PRIMARY KEY,
|
||||
"shortcode" VARCHAR(16) NOT NULL CONSTRAINT "users_shortcode_unique" UNIQUE,
|
||||
"nickname" TEXT NOT NULL,
|
||||
"realname" TEXT NOT NULL,
|
||||
"fresher" BOOLEAN NOT NULL
|
||||
)
|
5
migrations/20230919230037_pending.sql
Normal file
5
migrations/20230919230037_pending.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
CREATE TABLE IF NOT EXISTS "pending" (
|
||||
"discord_id" BIGINT NOT NULL PRIMARY KEY,
|
||||
"shortcode" VARCHAR(16) NOT NULL,
|
||||
"realname" TEXT NOT NULL
|
||||
)
|
7
migrations/20230922145619_manual.sql
Normal file
7
migrations/20230922145619_manual.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE IF NOT EXISTS "manual" (
|
||||
"discord_id" BIGINT NOT NULL PRIMARY KEY,
|
||||
"shortcode" VARCHAR(16) NOT NULL,
|
||||
"nickname" TEXT NOT NULL,
|
||||
"realname" TEXT NOT NULL,
|
||||
"fresher" BOOLEAN NOT NULL
|
||||
)
|
Loading…
Reference in a new issue