xync-schema 0.6.36.dev4__tar.gz → 0.6.38.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. xync_schema-0.6.38.dev1/PKG-INFO +186 -0
  2. xync_schema-0.6.38.dev1/README.md +170 -0
  3. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema/models.py +20 -19
  4. xync_schema-0.6.38.dev1/xync_schema.egg-info/PKG-INFO +186 -0
  5. xync_schema-0.6.36.dev4/PKG-INFO +0 -47
  6. xync_schema-0.6.36.dev4/README.md +0 -31
  7. xync_schema-0.6.36.dev4/xync_schema.egg-info/PKG-INFO +0 -47
  8. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/.env.sample +0 -0
  9. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/.gitignore +0 -0
  10. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/.pre-commit-config.yaml +0 -0
  11. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/makefile +0 -0
  12. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/pyproject.toml +0 -0
  13. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/setup.cfg +0 -0
  14. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/tests/__init__.py +0 -0
  15. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/tests/test_db.py +0 -0
  16. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema/__init__.py +0 -0
  17. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema/enums.py +0 -0
  18. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema/pydantic.py +0 -0
  19. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema.egg-info/SOURCES.txt +0 -0
  20. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema.egg-info/dependency_links.txt +0 -0
  21. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema.egg-info/requires.txt +0 -0
  22. {xync_schema-0.6.36.dev4 → xync_schema-0.6.38.dev1}/xync_schema.egg-info/top_level.txt +0 -0
@@ -0,0 +1,186 @@
1
+ Metadata-Version: 2.1
2
+ Name: xync-schema
3
+ Version: 0.6.38.dev1
4
+ Summary: XyncNet project database model schema
5
+ Author-email: Mike Artemiev <mixartemev@gmail.com>
6
+ License: EULA
7
+ Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
+ Project-URL: Repository, https://gitlab.com/xync/back/schema
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: xtg-auth
12
+ Provides-Extra: dev
13
+ Requires-Dist: build; extra == "dev"
14
+ Requires-Dist: pytest-asyncio; extra == "dev"
15
+ Requires-Dist: twine; extra == "dev"
16
+
17
+ ## INSTALL
18
+ ```bash
19
+ # Create python virtual environment
20
+ python3 -m venv venv
21
+ # Activate this environment
22
+ source venv/bin/activate
23
+ # Install dependencies
24
+ pip install -r requirements.dev.txt
25
+
26
+ # Create pg db
27
+ createdb --U username -W dbname
28
+ ## set password for db user
29
+
30
+ # Copy .env file from sample template
31
+ cp .env.sample .env
32
+ ## set your pg creds in .env file
33
+ ```
34
+
35
+ ## TEST
36
+ ```bash
37
+ pytest
38
+ ```
39
+
40
+
41
+ ### pre-commit
42
+ You can done `commit` only after `pytest` will done success.
43
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
+ ```shell
45
+ #!/bin/sh
46
+ pytest
47
+ ```
48
+
49
+ ### Relations
50
+ ```mermaid
51
+ classDiagram
52
+ direction BT
53
+ class Agent {
54
+ timestamp(0) with time zone created_at
55
+ timestamp(0) with time zone updated_at
56
+ integer exid
57
+ jsonb auth
58
+ smallint ex_id
59
+ bigint user_id
60
+ integer id
61
+ }
62
+ class Asset {
63
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
64
+ double precision free
65
+ double precision freeze
66
+ double precision lock
67
+ double precision target
68
+ integer agent_id
69
+ smallint coin_id
70
+ integer id
71
+ }
72
+ class Coin {
73
+ varchar(15) ticker
74
+ double precision rate
75
+ boolean is_fiat
76
+ smallint id
77
+ }
78
+ class CoinEx {
79
+ varchar(31) exid
80
+ boolean p2p
81
+ smallint coin_id
82
+ smallint ex_id
83
+ integer id
84
+ }
85
+ class Cur {
86
+ varchar(3) ticker
87
+ double precision rate
88
+ smallint id
89
+ }
90
+ class CurEx {
91
+ varchar(31) exid
92
+ boolean p2p
93
+ smallint cur_id
94
+ smallint ex_id
95
+ integer id
96
+ }
97
+ class Ex {
98
+ varchar(31) name
99
+ varchar(63) host /* With no protocol 'https://' */
100
+ varchar(63) host_p2p /* With no protocol 'https://' */
101
+ varchar(63) url_login /* With no protocol 'https://' */
102
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
103
+ varchar(511) logo
104
+ smallint id
105
+ }
106
+ class Fiat {
107
+ varchar(127) detail
108
+ varchar(127) name
109
+ double precision amount
110
+ double precision target
111
+ integer pmcur_id
112
+ bigint user_id
113
+ integer id
114
+ }
115
+ class FiatEx {
116
+ integer exid
117
+ smallint ex_id
118
+ integer fiat_id
119
+ integer id
120
+ }
121
+ class Limit {
122
+ integer amount
123
+ integer unit
124
+ integer level
125
+ boolean income
126
+ bigint added_by_id
127
+ integer pmcur_id
128
+ integer id
129
+ }
130
+ class Pm {
131
+ varchar(63) name
132
+ smallint rank
133
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
134
+ varchar(127) logo
135
+ boolean multiAllow
136
+ integer id
137
+ }
138
+ class PmCur {
139
+ smallint cur_id
140
+ integer pm_id
141
+ integer id
142
+ }
143
+ class PmCurEx {
144
+ boolean blocked
145
+ smallint ex_id
146
+ integer pmcur_id
147
+ integer id
148
+ }
149
+ class PmEx {
150
+ varchar(31) exid
151
+ smallint ex_id
152
+ integer pm_id
153
+ integer id
154
+ }
155
+ class User {
156
+ timestamp(0) with time zone created_at
157
+ timestamp(0) with time zone updated_at
158
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
159
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
160
+ varchar(95) username
161
+ bigint ref_id
162
+ bigint id
163
+ }
164
+
165
+ Agent --> Ex : ex_id-id
166
+ Agent --> User : user_id-id
167
+ Asset --> Agent : agent_id-id
168
+ Asset --> Coin : coin_id-id
169
+ CoinEx --> Coin : coin_id-id
170
+ CoinEx --> Ex : ex_id-id
171
+ CurEx --> Cur : cur_id-id
172
+ CurEx --> Ex : ex_id-id
173
+ Fiat --> PmCur : pmcur_id-id
174
+ Fiat --> User : user_id-id
175
+ FiatEx --> Ex : ex_id-id
176
+ FiatEx --> Fiat : fiat_id-id
177
+ Limit --> PmCur : pmcur_id-id
178
+ Limit --> User : added_by_id-id
179
+ PmCur --> Cur : cur_id-id
180
+ PmCur --> Pm : pm_id-id
181
+ PmCurEx --> Ex : ex_id-id
182
+ PmCurEx --> PmCur : pmcur_id-id
183
+ PmEx --> Ex : ex_id-id
184
+ PmEx --> Pm : pm_id-id
185
+ User --> User : ref_id-id
186
+ ```
@@ -0,0 +1,170 @@
1
+ ## INSTALL
2
+ ```bash
3
+ # Create python virtual environment
4
+ python3 -m venv venv
5
+ # Activate this environment
6
+ source venv/bin/activate
7
+ # Install dependencies
8
+ pip install -r requirements.dev.txt
9
+
10
+ # Create pg db
11
+ createdb --U username -W dbname
12
+ ## set password for db user
13
+
14
+ # Copy .env file from sample template
15
+ cp .env.sample .env
16
+ ## set your pg creds in .env file
17
+ ```
18
+
19
+ ## TEST
20
+ ```bash
21
+ pytest
22
+ ```
23
+
24
+
25
+ ### pre-commit
26
+ You can done `commit` only after `pytest` will done success.
27
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
28
+ ```shell
29
+ #!/bin/sh
30
+ pytest
31
+ ```
32
+
33
+ ### Relations
34
+ ```mermaid
35
+ classDiagram
36
+ direction BT
37
+ class Agent {
38
+ timestamp(0) with time zone created_at
39
+ timestamp(0) with time zone updated_at
40
+ integer exid
41
+ jsonb auth
42
+ smallint ex_id
43
+ bigint user_id
44
+ integer id
45
+ }
46
+ class Asset {
47
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
48
+ double precision free
49
+ double precision freeze
50
+ double precision lock
51
+ double precision target
52
+ integer agent_id
53
+ smallint coin_id
54
+ integer id
55
+ }
56
+ class Coin {
57
+ varchar(15) ticker
58
+ double precision rate
59
+ boolean is_fiat
60
+ smallint id
61
+ }
62
+ class CoinEx {
63
+ varchar(31) exid
64
+ boolean p2p
65
+ smallint coin_id
66
+ smallint ex_id
67
+ integer id
68
+ }
69
+ class Cur {
70
+ varchar(3) ticker
71
+ double precision rate
72
+ smallint id
73
+ }
74
+ class CurEx {
75
+ varchar(31) exid
76
+ boolean p2p
77
+ smallint cur_id
78
+ smallint ex_id
79
+ integer id
80
+ }
81
+ class Ex {
82
+ varchar(31) name
83
+ varchar(63) host /* With no protocol 'https://' */
84
+ varchar(63) host_p2p /* With no protocol 'https://' */
85
+ varchar(63) url_login /* With no protocol 'https://' */
86
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
87
+ varchar(511) logo
88
+ smallint id
89
+ }
90
+ class Fiat {
91
+ varchar(127) detail
92
+ varchar(127) name
93
+ double precision amount
94
+ double precision target
95
+ integer pmcur_id
96
+ bigint user_id
97
+ integer id
98
+ }
99
+ class FiatEx {
100
+ integer exid
101
+ smallint ex_id
102
+ integer fiat_id
103
+ integer id
104
+ }
105
+ class Limit {
106
+ integer amount
107
+ integer unit
108
+ integer level
109
+ boolean income
110
+ bigint added_by_id
111
+ integer pmcur_id
112
+ integer id
113
+ }
114
+ class Pm {
115
+ varchar(63) name
116
+ smallint rank
117
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
118
+ varchar(127) logo
119
+ boolean multiAllow
120
+ integer id
121
+ }
122
+ class PmCur {
123
+ smallint cur_id
124
+ integer pm_id
125
+ integer id
126
+ }
127
+ class PmCurEx {
128
+ boolean blocked
129
+ smallint ex_id
130
+ integer pmcur_id
131
+ integer id
132
+ }
133
+ class PmEx {
134
+ varchar(31) exid
135
+ smallint ex_id
136
+ integer pm_id
137
+ integer id
138
+ }
139
+ class User {
140
+ timestamp(0) with time zone created_at
141
+ timestamp(0) with time zone updated_at
142
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
143
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
144
+ varchar(95) username
145
+ bigint ref_id
146
+ bigint id
147
+ }
148
+
149
+ Agent --> Ex : ex_id-id
150
+ Agent --> User : user_id-id
151
+ Asset --> Agent : agent_id-id
152
+ Asset --> Coin : coin_id-id
153
+ CoinEx --> Coin : coin_id-id
154
+ CoinEx --> Ex : ex_id-id
155
+ CurEx --> Cur : cur_id-id
156
+ CurEx --> Ex : ex_id-id
157
+ Fiat --> PmCur : pmcur_id-id
158
+ Fiat --> User : user_id-id
159
+ FiatEx --> Ex : ex_id-id
160
+ FiatEx --> Fiat : fiat_id-id
161
+ Limit --> PmCur : pmcur_id-id
162
+ Limit --> User : added_by_id-id
163
+ PmCur --> Cur : cur_id-id
164
+ PmCur --> Pm : pm_id-id
165
+ PmCurEx --> Ex : ex_id-id
166
+ PmCurEx --> PmCur : pmcur_id-id
167
+ PmEx --> Ex : ex_id-id
168
+ PmEx --> Pm : pm_id-id
169
+ User --> User : ref_id-id
170
+ ```
@@ -7,29 +7,29 @@ from x_auth.models import Model
7
7
  from x_model.models import TsTrait, DatetimeSecField
8
8
  from tg_auth.models import UserStatus, AuthUser
9
9
 
10
- from xync_schema.enums import ExType, AdStatus, PmType, AssetType, OrderStatus, ExAction
10
+ from xync_schema.enums import ExType, AdStatus, AssetType, OrderStatus, ExAction
11
11
 
12
12
 
13
- class Country(Model):
14
- id = fields.SmallIntField(True)
15
- code: int | None = fields.IntField(null=True)
16
- short: str | None = fields.CharField(3, unique=True, null=True)
17
- name: str | None = fields.CharField(63, unique=True, null=True)
18
- cur: fields.ForeignKeyRelation["Cur"] = fields.ForeignKeyField("models.Cur", related_name="countries")
19
- curexs: fields.ManyToManyRelation["Curex"]
20
- fiats: fields.BackwardFKRelation["Fiat"]
13
+ # class Country(Model):
14
+ # id = fields.SmallIntField(True)
15
+ # code: int | None = fields.IntField(null=True)
16
+ # short: str | None = fields.CharField(3, unique=True, null=True)
17
+ # name: str | None = fields.CharField(63, unique=True, null=True)
18
+ # cur: fields.ForeignKeyRelation["Cur"] = fields.ForeignKeyField("models.Cur", related_name="countries")
19
+ # curexs: fields.ManyToManyRelation["Curex"]
20
+ # fiats: fields.BackwardFKRelation["Fiat"]
21
21
 
22
22
 
23
23
  class Cur(Model):
24
24
  id = fields.SmallIntField(True)
25
25
  ticker: str = fields.CharField(3, unique=True)
26
26
  rate: float | None = fields.FloatField(null=True)
27
- country: str | None = fields.CharField(63, null=True)
27
+ # country: str | None = fields.CharField(63, null=True)
28
28
 
29
29
  pms: fields.ManyToManyRelation["Pm"] = fields.ManyToManyField("models.Pm", through="pmcur")
30
30
  exs: fields.ManyToManyRelation["Ex"] = fields.ManyToManyField("models.Ex", through="curex")
31
31
  pairs: fields.ReverseRelation["Pair"]
32
- countries: fields.ReverseRelation[Country]
32
+ # countries: fields.ReverseRelation[Country]
33
33
 
34
34
  _name = {"ticker"}
35
35
 
@@ -92,9 +92,9 @@ class Curex(BaseModel):
92
92
  ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex")
93
93
  exid: str = fields.CharField(31)
94
94
  p2p: bool = fields.BooleanField(default=True)
95
- countries: fields.ManyToManyRelation[Country] = fields.ManyToManyField(
96
- "models.Country", through="curexcountry", backward_key="curexs"
97
- )
95
+ # countries: fields.ManyToManyRelation[Country] = fields.ManyToManyField(
96
+ # "models.Country", through="curexcountry", backward_key="curexs"
97
+ # )
98
98
 
99
99
  class Meta:
100
100
  table_description = "Currency in Exchange"
@@ -246,10 +246,11 @@ class Ad(Model, TsTrait):
246
246
 
247
247
 
248
248
  class Pm(Model):
249
- name: str = fields.CharField(63, unique=True)
250
- # identifier: str | None = fields.CharField(63, unique=True, null=True)
249
+ name: str = fields.CharField(63, unique=False)
250
+ identifier: str | None = fields.CharField(63, unique=False, null=True)
251
251
  rank: int | None = fields.SmallIntField(default=0)
252
- type_: PmType | None = fields.IntEnumField(PmType, null=True)
252
+ # type_: PmType | None = fields.IntEnumField(PmType, null=True)
253
+ type_: int | None = fields.SmallIntField(null=True)
253
254
  logo: str | None = fields.CharField(127, null=True)
254
255
  multiAllow: bool | None = fields.BooleanField(null=True)
255
256
 
@@ -310,8 +311,8 @@ class Pmcurex(BaseModel): # existence pm in ex for exact cur, with "blocked" fl
310
311
  class Fiat(Model):
311
312
  pmcur: fields.ForeignKeyRelation[Pmcur] = fields.ForeignKeyField("models.Pmcur")
312
313
  pmcur_id: int
313
- country: fields.ForeignKeyRelation[Country] = fields.ForeignKeyField("models.Country", related_name="fiats")
314
- country_id: int
314
+ # country: fields.ForeignKeyRelation[Country] = fields.ForeignKeyField("models.Country", related_name="fiats")
315
+ # country_id: int
315
316
  detail: str = fields.CharField(127)
316
317
  name: str | None = fields.CharField(127, null=True)
317
318
  user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", "fiats")
@@ -0,0 +1,186 @@
1
+ Metadata-Version: 2.1
2
+ Name: xync-schema
3
+ Version: 0.6.38.dev1
4
+ Summary: XyncNet project database model schema
5
+ Author-email: Mike Artemiev <mixartemev@gmail.com>
6
+ License: EULA
7
+ Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
+ Project-URL: Repository, https://gitlab.com/xync/back/schema
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: xtg-auth
12
+ Provides-Extra: dev
13
+ Requires-Dist: build; extra == "dev"
14
+ Requires-Dist: pytest-asyncio; extra == "dev"
15
+ Requires-Dist: twine; extra == "dev"
16
+
17
+ ## INSTALL
18
+ ```bash
19
+ # Create python virtual environment
20
+ python3 -m venv venv
21
+ # Activate this environment
22
+ source venv/bin/activate
23
+ # Install dependencies
24
+ pip install -r requirements.dev.txt
25
+
26
+ # Create pg db
27
+ createdb --U username -W dbname
28
+ ## set password for db user
29
+
30
+ # Copy .env file from sample template
31
+ cp .env.sample .env
32
+ ## set your pg creds in .env file
33
+ ```
34
+
35
+ ## TEST
36
+ ```bash
37
+ pytest
38
+ ```
39
+
40
+
41
+ ### pre-commit
42
+ You can done `commit` only after `pytest` will done success.
43
+ Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
+ ```shell
45
+ #!/bin/sh
46
+ pytest
47
+ ```
48
+
49
+ ### Relations
50
+ ```mermaid
51
+ classDiagram
52
+ direction BT
53
+ class Agent {
54
+ timestamp(0) with time zone created_at
55
+ timestamp(0) with time zone updated_at
56
+ integer exid
57
+ jsonb auth
58
+ smallint ex_id
59
+ bigint user_id
60
+ integer id
61
+ }
62
+ class Asset {
63
+ smallint type_ /* spot: 1\nearn: 2\nfound: 3 */
64
+ double precision free
65
+ double precision freeze
66
+ double precision lock
67
+ double precision target
68
+ integer agent_id
69
+ smallint coin_id
70
+ integer id
71
+ }
72
+ class Coin {
73
+ varchar(15) ticker
74
+ double precision rate
75
+ boolean is_fiat
76
+ smallint id
77
+ }
78
+ class CoinEx {
79
+ varchar(31) exid
80
+ boolean p2p
81
+ smallint coin_id
82
+ smallint ex_id
83
+ integer id
84
+ }
85
+ class Cur {
86
+ varchar(3) ticker
87
+ double precision rate
88
+ smallint id
89
+ }
90
+ class CurEx {
91
+ varchar(31) exid
92
+ boolean p2p
93
+ smallint cur_id
94
+ smallint ex_id
95
+ integer id
96
+ }
97
+ class Ex {
98
+ varchar(31) name
99
+ varchar(63) host /* With no protocol 'https://' */
100
+ varchar(63) host_p2p /* With no protocol 'https://' */
101
+ varchar(63) url_login /* With no protocol 'https://' */
102
+ smallint type_ /* p2p: 1\ncex: 2\nmain: 3\ndex: 4\nfutures: 8 */
103
+ varchar(511) logo
104
+ smallint id
105
+ }
106
+ class Fiat {
107
+ varchar(127) detail
108
+ varchar(127) name
109
+ double precision amount
110
+ double precision target
111
+ integer pmcur_id
112
+ bigint user_id
113
+ integer id
114
+ }
115
+ class FiatEx {
116
+ integer exid
117
+ smallint ex_id
118
+ integer fiat_id
119
+ integer id
120
+ }
121
+ class Limit {
122
+ integer amount
123
+ integer unit
124
+ integer level
125
+ boolean income
126
+ bigint added_by_id
127
+ integer pmcur_id
128
+ integer id
129
+ }
130
+ class Pm {
131
+ varchar(63) name
132
+ smallint rank
133
+ smallint type_ /* bank: 0\nweb_wallet: 1\ncash: 2\ngift_card: 3\ncredit_card: 4 */
134
+ varchar(127) logo
135
+ boolean multiAllow
136
+ integer id
137
+ }
138
+ class PmCur {
139
+ smallint cur_id
140
+ integer pm_id
141
+ integer id
142
+ }
143
+ class PmCurEx {
144
+ boolean blocked
145
+ smallint ex_id
146
+ integer pmcur_id
147
+ integer id
148
+ }
149
+ class PmEx {
150
+ varchar(31) exid
151
+ smallint ex_id
152
+ integer pm_id
153
+ integer id
154
+ }
155
+ class User {
156
+ timestamp(0) with time zone created_at
157
+ timestamp(0) with time zone updated_at
158
+ smallint role /* READER: 4\nWRITER: 2\nMANAGER: 6\nADMIN: 7 */
159
+ smallint status /* CREATOR: 5\nADMINISTRATOR: 4\nMEMBER: 3\nRESTRICTED: 2\nLEFT:... */
160
+ varchar(95) username
161
+ bigint ref_id
162
+ bigint id
163
+ }
164
+
165
+ Agent --> Ex : ex_id-id
166
+ Agent --> User : user_id-id
167
+ Asset --> Agent : agent_id-id
168
+ Asset --> Coin : coin_id-id
169
+ CoinEx --> Coin : coin_id-id
170
+ CoinEx --> Ex : ex_id-id
171
+ CurEx --> Cur : cur_id-id
172
+ CurEx --> Ex : ex_id-id
173
+ Fiat --> PmCur : pmcur_id-id
174
+ Fiat --> User : user_id-id
175
+ FiatEx --> Ex : ex_id-id
176
+ FiatEx --> Fiat : fiat_id-id
177
+ Limit --> PmCur : pmcur_id-id
178
+ Limit --> User : added_by_id-id
179
+ PmCur --> Cur : cur_id-id
180
+ PmCur --> Pm : pm_id-id
181
+ PmCurEx --> Ex : ex_id-id
182
+ PmCurEx --> PmCur : pmcur_id-id
183
+ PmEx --> Ex : ex_id-id
184
+ PmEx --> Pm : pm_id-id
185
+ User --> User : ref_id-id
186
+ ```
@@ -1,47 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xync-schema
3
- Version: 0.6.36.dev4
4
- Summary: XyncNet project database model schema
5
- Author-email: Mike Artemiev <mixartemev@gmail.com>
6
- License: EULA
7
- Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
- Project-URL: Repository, https://gitlab.com/xync/back/schema
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: xtg-auth
12
- Provides-Extra: dev
13
- Requires-Dist: build; extra == "dev"
14
- Requires-Dist: pytest-asyncio; extra == "dev"
15
- Requires-Dist: twine; extra == "dev"
16
-
17
- ## INSTALL
18
- ```bash
19
- # Create python virtual environment
20
- python3 -m venv venv
21
- # Activate this environment
22
- source venv/bin/activate
23
- # Install dependencies
24
- pip install -r requirements.dev.txt
25
-
26
- # Create pg db
27
- createdb --U username -W dbname
28
- ## set password for db user
29
-
30
- # Copy .env file from sample template
31
- cp .env.sample .env
32
- ## set your pg creds in .env file
33
- ```
34
-
35
- ## TEST
36
- ```bash
37
- pytest
38
- ```
39
-
40
-
41
- ### pre-commit
42
- You can done `commit` only after `pytest` will done success.
43
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
- ```shell
45
- #!/bin/sh
46
- pytest
47
- ```
@@ -1,31 +0,0 @@
1
- ## INSTALL
2
- ```bash
3
- # Create python virtual environment
4
- python3 -m venv venv
5
- # Activate this environment
6
- source venv/bin/activate
7
- # Install dependencies
8
- pip install -r requirements.dev.txt
9
-
10
- # Create pg db
11
- createdb --U username -W dbname
12
- ## set password for db user
13
-
14
- # Copy .env file from sample template
15
- cp .env.sample .env
16
- ## set your pg creds in .env file
17
- ```
18
-
19
- ## TEST
20
- ```bash
21
- pytest
22
- ```
23
-
24
-
25
- ### pre-commit
26
- You can done `commit` only after `pytest` will done success.
27
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
28
- ```shell
29
- #!/bin/sh
30
- pytest
31
- ```
@@ -1,47 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: xync-schema
3
- Version: 0.6.36.dev4
4
- Summary: XyncNet project database model schema
5
- Author-email: Mike Artemiev <mixartemev@gmail.com>
6
- License: EULA
7
- Project-URL: Homepage, https://gitlab.com/xync/back/schema
8
- Project-URL: Repository, https://gitlab.com/xync/back/schema
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: xtg-auth
12
- Provides-Extra: dev
13
- Requires-Dist: build; extra == "dev"
14
- Requires-Dist: pytest-asyncio; extra == "dev"
15
- Requires-Dist: twine; extra == "dev"
16
-
17
- ## INSTALL
18
- ```bash
19
- # Create python virtual environment
20
- python3 -m venv venv
21
- # Activate this environment
22
- source venv/bin/activate
23
- # Install dependencies
24
- pip install -r requirements.dev.txt
25
-
26
- # Create pg db
27
- createdb --U username -W dbname
28
- ## set password for db user
29
-
30
- # Copy .env file from sample template
31
- cp .env.sample .env
32
- ## set your pg creds in .env file
33
- ```
34
-
35
- ## TEST
36
- ```bash
37
- pytest
38
- ```
39
-
40
-
41
- ### pre-commit
42
- You can done `commit` only after `pytest` will done success.
43
- Pre-commit script stored in `.git/hooks/pre-commit` file; current script is:
44
- ```shell
45
- #!/bin/sh
46
- pytest
47
- ```