Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bitcoin Telegram Bot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s2191814
Bitcoin Telegram Bot
Commits
f73478e6
Commit
f73478e6
authored
2 years ago
by
Dylan Janssen
Browse files
Options
Downloads
Patches
Plain Diff
remove mysql.sql
parent
bfd7caaf
No related branches found
No related tags found
1 merge request
!2
Draft: initial user flow for creating a wallet
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/mysql.sql
+0
-64
0 additions, 64 deletions
db/mysql.sql
with
0 additions
and
64 deletions
db/mysql.sql
deleted
100644 → 0
+
0
−
64
View file @
bfd7caaf
create
table
app_state
(
id
int
auto_increment
,
message
varchar
(
200
)
not
null
,
menu
varchar
(
200
)
null
,
prev_state
int
default
0
not
null
,
constraint
app_state_pk
primary
key
(
id
)
);
create
unique
index
app_state_id_uindex
on
app_state
(
id
);
create
table
app_user
(
id
int
auto_increment
,
telegram_id
int
not
null
,
state_id
int
default
0
not
null
,
nickname
varchar
(
100
)
null
,
variables
text
null
,
constraint
app_user_pk
primary
key
(
id
),
constraint
app_user_state_id_fk
foreign
key
(
state_id
)
references
app_state
(
id
)
);
create
unique
index
app_user_id_uindex
on
app_user
(
id
);
create
unique
index
app_user_telegram_id_uindex
on
app_user
(
telegram_id
);
create
table
app_wallet
(
id
int
auto_increment
,
max_co_signers
int
not
null
,
min_co_signers
int
not
null
,
name
varchar
(
100
)
null
,
initiator_id
int
not
null
,
constraint
app_wallet_pk
primary
key
(
id
),
constraint
app_wallet_user_id_fk
foreign
key
(
initiator_id
)
references
app_user
(
id
)
);
create
unique
index
app_wallet_id_uindex
on
app_wallet
(
id
);
create
table
app_wallet_request
(
id
int
auto_increment
,
token
varchar
(
64
)
not
null
,
wallet_id
int
not
null
,
constraint
app_wallet_request_pk
primary
key
(
id
),
constraint
app_wallet_request_wallet_id_fk
foreign
key
(
wallet_id
)
references
app_wallet
(
id
)
);
create
unique
index
app_wallet_request_id_uindex
on
app_wallet_request
(
id
);
create
unique
index
app_wallet_request_token_uindex
on
app_wallet_request
(
token
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment