Compare commits
4 Commits
feature/pr
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b788a9024 | ||
|
|
0e58a8cef7 | ||
|
|
a63eff9f46 | ||
|
|
e0a9f55eeb |
28
docker-compose.dev.yml
Normal file
28
docker-compose.dev.yml
Normal file
@ -0,0 +1,28 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres
|
||||
ports:
|
||||
- '127.0.0.1:5432:5432'
|
||||
environment:
|
||||
POSTGRES_USER: ${DATABASE_USERNAME}
|
||||
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
||||
POSTGRES_DB: ${DATABASE_NAME}
|
||||
strapi:
|
||||
build: .
|
||||
ports:
|
||||
- '127.0.0.1:1337:1337'
|
||||
environment:
|
||||
APP_KEYS: ${APP_KEYS}
|
||||
API_TOKEN_SALT: ${API_TOKEN_SALT}
|
||||
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
|
||||
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
DATABASE_HOST: ${DATABASE_HOST}
|
||||
DATABASE_PORT: ${DATABASE_PORT}
|
||||
DATABASE_NAME: ${DATABASE_NAME}
|
||||
DATABASE_USERNAME: ${DATABASE_USERNAME}
|
||||
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
||||
DATABASE_SSL: 'false'
|
||||
BOT_TOKEN: ${BOT_TOKEN}
|
||||
|
||||
|
||||
@ -17,6 +17,11 @@
|
||||
"maxLength": 100,
|
||||
"required": true
|
||||
},
|
||||
"surname": {
|
||||
"type": "string",
|
||||
"maxLength": 100,
|
||||
"required": false
|
||||
},
|
||||
"telegramId": {
|
||||
"type": "biginteger",
|
||||
"unique": true
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
"required": true,
|
||||
"enum": [
|
||||
"trial",
|
||||
"day",
|
||||
"week",
|
||||
"month",
|
||||
"half_year",
|
||||
|
||||
6
types/generated/contentTypes.d.ts
vendored
6
types/generated/contentTypes.d.ts
vendored
@ -431,6 +431,10 @@ export interface ApiCustomerCustomer extends Struct.CollectionTypeSchema {
|
||||
'oneToMany',
|
||||
'api::subscription.subscription'
|
||||
>;
|
||||
surname: Schema.Attribute.String &
|
||||
Schema.Attribute.SetMinMaxLength<{
|
||||
maxLength: 100;
|
||||
}>;
|
||||
telegramId: Schema.Attribute.BigInteger & Schema.Attribute.Unique;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
@ -665,7 +669,7 @@ export interface ApiSubscriptionPriceSubscriptionPrice
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
period: Schema.Attribute.Enumeration<
|
||||
['trial', 'week', 'month', 'half_year', 'year']
|
||||
['trial', 'day', 'week', 'month', 'half_year', 'year']
|
||||
> &
|
||||
Schema.Attribute.Required;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user