Update plan
This commit is contained in:
parent
2584600dbf
commit
9dfd395d93
37
plan/milestone/credit.puml
Normal file
37
plan/milestone/credit.puml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
@startuml
|
||||||
|
|
||||||
|
hide circle
|
||||||
|
skinparam linetype ortho
|
||||||
|
|
||||||
|
entity users_telegram {
|
||||||
|
id : int <<PK>>
|
||||||
|
first_name : longtext
|
||||||
|
last_name : longtext null
|
||||||
|
username : longtext null
|
||||||
|
phone_number : longtext null
|
||||||
|
last_update : datetime
|
||||||
|
--
|
||||||
|
}
|
||||||
|
|
||||||
|
entity users {
|
||||||
|
id : binary(40) <<PK>>
|
||||||
|
telegram : int <<FK>>
|
||||||
|
--
|
||||||
|
* telegram = users_telegram.id
|
||||||
|
on update cascade
|
||||||
|
on delete cascade
|
||||||
|
}
|
||||||
|
users ||-o| users_telegram
|
||||||
|
|
||||||
|
entity credit_wallet {
|
||||||
|
id : binary(40) <<PK>>
|
||||||
|
owner : binary(40) <<FK>>
|
||||||
|
balance : int
|
||||||
|
--
|
||||||
|
* owner = users.id
|
||||||
|
on update cascade
|
||||||
|
on delete cascade
|
||||||
|
}
|
||||||
|
users ||--|| credit_wallet
|
||||||
|
|
||||||
|
@enduml
|
||||||
Loading…
Reference in New Issue
Block a user