Add backend skeleton
This commit is contained in:
16
.editorconfig
Normal file
16
.editorconfig
Normal file
@@ -0,0 +1,16 @@
|
||||
# Specifies editor configuration
|
||||
# http://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
# General style
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
18
.gitignore
vendored
Normal file
18
.gitignore
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# Specifies intentionally untracked files to ignore when using Git
|
||||
# https://git-scm.com/docs/gitignore
|
||||
|
||||
# Logs
|
||||
*.log*
|
||||
|
||||
# Node
|
||||
node_modules/
|
||||
|
||||
# NPM / Yarn (use PNPM instead)
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
|
||||
# Mac
|
||||
.DS_Store
|
||||
|
||||
# Data
|
||||
data/data.db
|
||||
8
.prettierrc
Normal file
8
.prettierrc
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSpacing": true,
|
||||
"printWidth": 120,
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5"
|
||||
}
|
||||
327
backend/.env
Normal file
327
backend/.env
Normal file
@@ -0,0 +1,327 @@
|
||||
####################################################################################################
|
||||
###### DIRECTUS ####################################################################################
|
||||
####################################################################################################
|
||||
#
|
||||
# These values set environment variables which modify core settings of Directus.
|
||||
#
|
||||
# Values in square brackets are the default values.
|
||||
#
|
||||
# The following options are not all possible options. For more, see
|
||||
# https://docs.directus.io/self-hosted/config-options/
|
||||
#
|
||||
####################################################################################################
|
||||
####################################################################################################
|
||||
|
||||
### General
|
||||
|
||||
# IP or host the API listens on ["0.0.0.0"]
|
||||
HOST="0.0.0.0"
|
||||
|
||||
# The port Directus will run on [8055]
|
||||
PORT=8055
|
||||
|
||||
# The URL where your API can be reached on the web. It is also used for things like OAuth redirects,
|
||||
# forgot-password emails, and logos that needs to be publicly available on the internet. ["/"]
|
||||
# PUBLIC_URL="http://localhost:8055"
|
||||
PUBLIC_URL="http://0.0.0.0:8055"
|
||||
|
||||
# What level of detail to log. [info]
|
||||
# "fatal", "error", "warn", "info", "debug", "trace", "silent"
|
||||
# LOG_LEVEL="info"
|
||||
|
||||
# Render the logs human readable (pretty) or as JSON (raw), [pretty]
|
||||
# "pretty", "raw"
|
||||
# LOG_STYLE="pretty"
|
||||
|
||||
# Controls the maximum request body size. Accepts number of bytes, or human readable string ["1mb"]
|
||||
# MAX_PAYLOAD_SIZE="1mb"
|
||||
|
||||
# Where to redirect to when navigating to /. Accepts a relative path, absolute URL, or false to disable ["./admin"]
|
||||
# ROOT_REDIRECT="./admin"
|
||||
|
||||
# Whether or not to serve the Admin App under /admin. [true]
|
||||
# SERVE_APP=true
|
||||
|
||||
# Whether or not to enable GraphQL Introspection [true]
|
||||
# GRAPHQL_INTROSPECTION=true
|
||||
|
||||
# The maximum number of items for batch mutations when creating, updating and deleting. ["Infinity"]
|
||||
# MAX_BATCH_MUTATION="Infinity"
|
||||
|
||||
####################################################################################################
|
||||
### Database
|
||||
|
||||
# All DB_* environment variables are passed to the connection configuration of a Knex instance.
|
||||
# Based on your project's needs, you can extend the DB_* environment variables with any config
|
||||
# you need to pass to the database instance.
|
||||
|
||||
DB_CLIENT="sqlite3"
|
||||
DB_FILENAME="../data/data.db"
|
||||
|
||||
## Postgres
|
||||
# DB_CLIENT="pg"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=5432
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="postgres"
|
||||
# DB_PASSWORD="secret"
|
||||
|
||||
## CockroachDB
|
||||
# DB_CLIENT="cockroachdb"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=26257
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="root"
|
||||
# DB_PASSWORD=""
|
||||
|
||||
## MySQL 8
|
||||
# DB_CLIENT="mysql"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=3306
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="root"
|
||||
# DB_PASSWORD="secret"
|
||||
|
||||
## MariaDB
|
||||
# DB_CLIENT="mysql"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=3306
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="root"
|
||||
# DB_PASSWORD="secret"
|
||||
|
||||
## MS SQL
|
||||
# DB_CLIENT="mssql"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=1343
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="sa"
|
||||
# DB_PASSWORD="Test@123"
|
||||
|
||||
## OracleDB
|
||||
# DB_CLIENT="oracledb"
|
||||
# DB_CONNECT_STRING="localhost:1521/XE"
|
||||
# DB_USER="secretsysuser"
|
||||
# DB_PASSWORD="secretpassword"
|
||||
|
||||
## SQLite Example
|
||||
# DB_CLIENT="sqlite3"
|
||||
# DB_FILENAME="./data.db"
|
||||
|
||||
## MySQL 5.7
|
||||
# DB_CLIENT="mysql"
|
||||
# DB_HOST="localhost"
|
||||
# DB_PORT=3306
|
||||
# DB_DATABASE="directus"
|
||||
# DB_USER="root"
|
||||
# DB_PASSWORD="secret"
|
||||
|
||||
####################################################################################################
|
||||
### Rate Limiting
|
||||
|
||||
# Whether or not to enable rate limiting on the API [false]
|
||||
RATE_LIMITER_ENABLED=false
|
||||
|
||||
# Where to store the rate limiter counts [memory]
|
||||
# memory, redis, memcache
|
||||
RATE_LIMITER_STORE=memory
|
||||
# RATE_LIMITER_REDIS="redis://@127.0.0.1:5105"
|
||||
# RATE_LIMITER_MEMCACHE="localhost:5109"
|
||||
|
||||
# The amount of allowed hits per duration [50]
|
||||
RATE_LIMITER_POINTS=25
|
||||
|
||||
# The time window in seconds in which the hits are counted [1]
|
||||
RATE_LIMITER_DURATION=1
|
||||
|
||||
####################################################################################################
|
||||
### Caching
|
||||
|
||||
# Whether or not caching is enabled. [false]
|
||||
CACHE_ENABLED=false
|
||||
|
||||
# How long the cache is persisted ["5m"]
|
||||
# CACHE_TTL="30m"
|
||||
|
||||
# How to scope the cache data ["directus-cache"]
|
||||
# CACHE_NAMESPACE="directus-cache"
|
||||
|
||||
# Automatically purge the cache on create, update, and delete actions. [false]
|
||||
# CACHE_AUTO_PURGE=true
|
||||
|
||||
# memory | redis | memcache
|
||||
CACHE_STORE=memory
|
||||
|
||||
# How long assets will be cached for in the browser. Sets the max-age value of the Cache-Control header ["30d"]
|
||||
ASSETS_CACHE_TTL="30d"
|
||||
|
||||
# CACHE_REDIS="redis://@127.0.0.1:5105"
|
||||
# CACHE_MEMCACHE="localhost:5109"
|
||||
|
||||
####################################################################################################
|
||||
### File Storage
|
||||
|
||||
# A CSV of storage locations (eg: local,digitalocean,amazon) to use. You can use any names you'd like for these keys ["local"]
|
||||
STORAGE_LOCATIONS="local"
|
||||
STORAGE_LOCAL_DRIVER="local"
|
||||
STORAGE_LOCAL_ROOT="../data/uploads"
|
||||
|
||||
## S3 Example (location name: DigitalOcean)
|
||||
# STORAGE_DIGITALOCEAN_DRIVER="s3"
|
||||
# STORAGE_DIGITALOCEAN_KEY="abcdef"
|
||||
# STORAGE_DIGITALOCEAN_SECRET="ghijkl"
|
||||
# STORAGE_DIGITALOCEAN_ENDPOINT="https://ams3.digitaloceanspaces.com"
|
||||
# STORAGE_DIGITALOCEAN_BUCKET="my-files"
|
||||
# STORAGE_DIGITALOCEAN_REGION="ams3"
|
||||
|
||||
## Google Cloud Storage Example (location name: Google)
|
||||
# STORAGE_GOOGLE_DRIVER="gcs"
|
||||
# STORAGE_GOOGLE_KEY_FILENAME="abcdef"
|
||||
# STORAGE_GOOGLE_BUCKET="my-files"
|
||||
|
||||
## A comma-separated list of metadata keys to collect during file upload. Use * for all
|
||||
# Extracting all metadata might cause memory issues when the file has an unusually large set of metadata
|
||||
# [ifd0.Make,ifd0.Model,exif.FNumber,exif.ExposureTime,exif.FocalLength,exif.ISO]
|
||||
# FILE_METADATA_ALLOW_LIST=
|
||||
|
||||
####################################################################################################
|
||||
### Security
|
||||
|
||||
# Unique identifier for the project
|
||||
# KEY="xxxxxxx-xxxxxx-xxxxxxxx-xxxxxxxxxx"
|
||||
KEY="78457793-f4ea-4057-a9ae-87d0f6d32cc8"
|
||||
|
||||
# Secret string for the project
|
||||
# SECRET="abcdef"
|
||||
SECRET="cJweH2dRpkM515hQJZSR64jiYCb6QJrZ"
|
||||
|
||||
# The duration that the access token is valid ["15m"]
|
||||
ACCESS_TOKEN_TTL="15m"
|
||||
|
||||
# The duration that the refresh token is valid, and also how long users stay logged-in to the App ["7d"]
|
||||
REFRESH_TOKEN_TTL="7d"
|
||||
|
||||
# Whether or not to use a secure cookie for the refresh token in cookie mode [false]
|
||||
REFRESH_TOKEN_COOKIE_SECURE=false
|
||||
|
||||
# Value for sameSite in the refresh token cookie when in cookie mode ["lax"]
|
||||
REFRESH_TOKEN_COOKIE_SAME_SITE="lax"
|
||||
|
||||
# Name of refresh token cookie ["directus_refresh_token"]
|
||||
REFRESH_TOKEN_COOKIE_NAME="directus_refresh_token"
|
||||
|
||||
# Which domain to use for the refresh cookie. Useful for development mode.
|
||||
# REFRESH_TOKEN_COOKIE_DOMAIN
|
||||
|
||||
# The duration in milliseconds that a login request will be stalled for,
|
||||
# and it should be greater than the time taken for a login request with an invalid password [500]
|
||||
# LOGIN_STALL_TIME=500
|
||||
|
||||
# Whether or not to enable the CORS headers [false]
|
||||
CORS_ENABLED=true
|
||||
|
||||
# Value for the Access-Control-Allow-Origin header. Use true to match the Origin header, or provide a domain or a CSV of domains for specific access [false]
|
||||
CORS_ORIGIN=true
|
||||
|
||||
# Value for the Access-Control-Allow-Methods header [GET,POST,PATCH,DELETE]
|
||||
CORS_METHODS=GET,POST,PATCH,DELETE
|
||||
|
||||
# Value for the Access-Control-Allow-Headers header [Content-Type,Authorization]
|
||||
CORS_ALLOWED_HEADERS=Content-Type,Authorization
|
||||
|
||||
# Value for the Access-Control-Expose-Headers header [Content-Range]
|
||||
CORS_EXPOSED_HEADERS=Content-Range
|
||||
|
||||
# Whether or not to send the Access-Control-Allow-Credentials header [true]
|
||||
CORS_CREDENTIALS=true
|
||||
|
||||
# Value for the Access-Control-Max-Age header [18000]
|
||||
CORS_MAX_AGE=18000
|
||||
|
||||
####################################################################################################
|
||||
### Argon2
|
||||
|
||||
# How much memory to use when generating hashes, in KiB [4096]
|
||||
# HASH_MEMORY_COST=81920
|
||||
|
||||
# The length of the hash function output in bytes [32]
|
||||
# HASH_HASH_LENGTH=32
|
||||
|
||||
# The amount of passes (iterations) used by the hash function. It increases hash strength at the cost of time required to compute [3]
|
||||
# HASH_TIME_COST=10
|
||||
|
||||
# The amount of threads to compute the hash on. Each thread has a memory pool with HASH_MEMORY_COST size [1]
|
||||
# HASH_PARALLELISM=2
|
||||
|
||||
# The variant of the hash function (0: argon2d, 1: argon2i, or 2: argon2id) [2]
|
||||
# HASH_TYPE=2
|
||||
|
||||
# An extra and optional non-secret value. The value will be included B64 encoded in the parameters portion of the digest []
|
||||
# HASH_ASSOCIATED_DATA=foo
|
||||
|
||||
####################################################################################################
|
||||
### Auth Providers
|
||||
|
||||
# A comma-separated list of auth providers []
|
||||
AUTH_PROVIDERS=""
|
||||
# AUTH_PROVIDERS="github"
|
||||
|
||||
# AUTH_GITHUB_DRIVER="oauth2"
|
||||
# AUTH_GITHUB_CLIENT_ID="73e...4b"
|
||||
# AUTH_GITHUB_CLIENT_SECRET="b9...98"
|
||||
# AUTH_GITHUB_AUTHORIZE_URL="https://github.com/login/oauth/authorize"
|
||||
# AUTH_GITHUB_ACCESS_URL="https://github.com/login/oauth/access_token"
|
||||
# AUTH_GITHUB_PROFILE_URL="https://api.github.com/user"
|
||||
# AUTH_GITHUB_ALLOW_PUBLIC_REGISTRATION=true
|
||||
# AUTH_GITHUB_DEFAULT_ROLE_ID="82424427-c9d4-4289-8bc5-ed1bf8422c90"
|
||||
# AUTH_GITHUB_ICON="github"
|
||||
# AUTH_GITHUB_LABEL="GitHub"
|
||||
# AUTH_GITHUB_EMAIL_KEY="email"
|
||||
# AUTH_GITHUB_IDENTIFIER_KEY="login"
|
||||
|
||||
####################################################################################################
|
||||
### Extensions
|
||||
|
||||
# Path to your local extensions folder ["./extensions"]
|
||||
EXTENSIONS_PATH="./extensions"
|
||||
|
||||
# Automatically reload extensions when they have changed [false]
|
||||
EXTENSIONS_AUTO_RELOAD=false
|
||||
|
||||
####################################################################################################
|
||||
### Email
|
||||
|
||||
# Email address from which emails are sent ["no-reply@directus.io"]
|
||||
EMAIL_FROM="no-reply@directus.io"
|
||||
|
||||
# What to use to send emails. One of
|
||||
# sendmail, smtp, mailgun, sendgrid, ses.
|
||||
EMAIL_TRANSPORT="sendmail"
|
||||
EMAIL_SENDMAIL_NEW_LINE="unix"
|
||||
EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
|
||||
|
||||
## Email (Sendmail Transport)
|
||||
|
||||
# What new line style to use in sendmail ["unix"]
|
||||
# EMAIL_SENDMAIL_NEW_LINE="unix"
|
||||
|
||||
# Path to your sendmail executable ["/usr/sbin/sendmail"]
|
||||
# EMAIL_SENDMAIL_PATH="/usr/sbin/sendmail"
|
||||
|
||||
## Email (SMTP Transport)
|
||||
# EMAIL_SMTP_HOST="localhost"
|
||||
|
||||
# Use SMTP pooling
|
||||
# EMAIL_SMTP_POOL=true
|
||||
# EMAIL_SMTP_PORT=465
|
||||
# EMAIL_SMTP_SECURE=false # Use TLS
|
||||
# EMAIL_SMTP_IGNORE_TLS=false
|
||||
# EMAIL_SMTP_USER="username"
|
||||
# EMAIL_SMTP_PASSWORD="password"
|
||||
|
||||
## Email (Mailgun Transport)
|
||||
# EMAIL_MAILGUN_API_KEY="key-1234123412341234"
|
||||
# EMAIL_MAILGUN_DOMAIN="a domain name from https://app.mailgun.com/app/sending/domains"
|
||||
|
||||
## Email (SendGrid Transport)
|
||||
# EMAIL_SENDGRID_API_KEY="key-1234123412341234"
|
||||
16
backend/package.json
Normal file
16
backend/package.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "nodemon --exec directus start",
|
||||
"start": "directus start",
|
||||
"snapshot": "directus schema snapshot --yes ../schema/snapshot.yaml",
|
||||
"dump": "sqlite3 ../data/data.db .dump > ../schema/dump.sql"
|
||||
},
|
||||
"dependencies": {
|
||||
"directus": "10.2.1",
|
||||
"sqlite3": "5.1.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "2.0.22"
|
||||
}
|
||||
}
|
||||
8471
backend/pnpm-lock.yaml
generated
Normal file
8471
backend/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
Normal file
14
package.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "pca-pijac",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"description": "A Marketplace",
|
||||
"author": "Marko Marković <okram@civokram.com>",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "ultra -r dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ultra-runner": "3.10.5"
|
||||
}
|
||||
}
|
||||
453
pnpm-lock.yaml
generated
Normal file
453
pnpm-lock.yaml
generated
Normal file
@@ -0,0 +1,453 @@
|
||||
lockfileVersion: '6.1'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
devDependencies:
|
||||
ultra-runner:
|
||||
specifier: 3.10.5
|
||||
version: 3.10.5
|
||||
|
||||
packages:
|
||||
|
||||
/@nodelib/fs.scandir@2.1.5:
|
||||
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
|
||||
engines: {node: '>= 8'}
|
||||
dependencies:
|
||||
'@nodelib/fs.stat': 2.0.5
|
||||
run-parallel: 1.2.0
|
||||
dev: true
|
||||
|
||||
/@nodelib/fs.stat@2.0.5:
|
||||
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
|
||||
engines: {node: '>= 8'}
|
||||
dev: true
|
||||
|
||||
/@nodelib/fs.walk@1.2.8:
|
||||
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
|
||||
engines: {node: '>= 8'}
|
||||
dependencies:
|
||||
'@nodelib/fs.scandir': 2.1.5
|
||||
fastq: 1.15.0
|
||||
dev: true
|
||||
|
||||
/ansi-regex@3.0.1:
|
||||
resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==}
|
||||
engines: {node: '>=4'}
|
||||
dev: true
|
||||
|
||||
/ansi-regex@5.0.1:
|
||||
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/ansi-split@1.0.1:
|
||||
resolution: {integrity: sha512-RRxQym4DFtDNmHIkW6aeFVvrXURb11lGAEPXNiryjCe8bK8RsANjzJ0M2aGOkvBYwP4Bl/xZ8ijtr6D3j1x/eg==}
|
||||
dependencies:
|
||||
ansi-regex: 3.0.1
|
||||
dev: true
|
||||
|
||||
/ansi-styles@4.3.0:
|
||||
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
color-convert: 2.0.1
|
||||
dev: true
|
||||
|
||||
/argparse@1.0.10:
|
||||
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
|
||||
dependencies:
|
||||
sprintf-js: 1.0.3
|
||||
dev: true
|
||||
|
||||
/balanced-match@1.0.2:
|
||||
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
|
||||
dev: true
|
||||
|
||||
/brace-expansion@1.1.11:
|
||||
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
|
||||
dependencies:
|
||||
balanced-match: 1.0.2
|
||||
concat-map: 0.0.1
|
||||
dev: true
|
||||
|
||||
/braces@3.0.2:
|
||||
resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
fill-range: 7.0.1
|
||||
dev: true
|
||||
|
||||
/chalk@4.1.2:
|
||||
resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
|
||||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
ansi-styles: 4.3.0
|
||||
supports-color: 7.2.0
|
||||
dev: true
|
||||
|
||||
/cliui@7.0.4:
|
||||
resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==}
|
||||
dependencies:
|
||||
string-width: 4.2.3
|
||||
strip-ansi: 6.0.1
|
||||
wrap-ansi: 7.0.0
|
||||
dev: true
|
||||
|
||||
/color-convert@2.0.1:
|
||||
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
|
||||
engines: {node: '>=7.0.0'}
|
||||
dependencies:
|
||||
color-name: 1.1.4
|
||||
dev: true
|
||||
|
||||
/color-name@1.1.4:
|
||||
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
|
||||
dev: true
|
||||
|
||||
/concat-map@0.0.1:
|
||||
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
|
||||
dev: true
|
||||
|
||||
/cross-spawn@7.0.3:
|
||||
resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
|
||||
engines: {node: '>= 8'}
|
||||
dependencies:
|
||||
path-key: 3.1.1
|
||||
shebang-command: 2.0.0
|
||||
which: 2.0.2
|
||||
dev: true
|
||||
|
||||
/emoji-regex@8.0.0:
|
||||
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
|
||||
dev: true
|
||||
|
||||
/escalade@3.1.1:
|
||||
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
|
||||
engines: {node: '>=6'}
|
||||
dev: true
|
||||
|
||||
/fast-glob@3.2.12:
|
||||
resolution: {integrity: sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==}
|
||||
engines: {node: '>=8.6.0'}
|
||||
dependencies:
|
||||
'@nodelib/fs.stat': 2.0.5
|
||||
'@nodelib/fs.walk': 1.2.8
|
||||
glob-parent: 5.1.2
|
||||
merge2: 1.4.1
|
||||
micromatch: 4.0.5
|
||||
dev: true
|
||||
|
||||
/fastq@1.15.0:
|
||||
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
|
||||
dependencies:
|
||||
reusify: 1.0.4
|
||||
dev: true
|
||||
|
||||
/fill-range@7.0.1:
|
||||
resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
to-regex-range: 5.0.1
|
||||
dev: true
|
||||
|
||||
/fs.realpath@1.0.0:
|
||||
resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
|
||||
dev: true
|
||||
|
||||
/get-caller-file@2.0.5:
|
||||
resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
|
||||
engines: {node: 6.* || 8.* || >= 10.*}
|
||||
dev: true
|
||||
|
||||
/glob-parent@5.1.2:
|
||||
resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
|
||||
engines: {node: '>= 6'}
|
||||
dependencies:
|
||||
is-glob: 4.0.3
|
||||
dev: true
|
||||
|
||||
/glob@7.2.3:
|
||||
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
|
||||
dependencies:
|
||||
fs.realpath: 1.0.0
|
||||
inflight: 1.0.6
|
||||
inherits: 2.0.4
|
||||
minimatch: 3.1.2
|
||||
once: 1.4.0
|
||||
path-is-absolute: 1.0.1
|
||||
dev: true
|
||||
|
||||
/globrex@0.1.2:
|
||||
resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}
|
||||
dev: true
|
||||
|
||||
/has-flag@4.0.0:
|
||||
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/ignore@5.2.4:
|
||||
resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}
|
||||
engines: {node: '>= 4'}
|
||||
dev: true
|
||||
|
||||
/inflight@1.0.6:
|
||||
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
|
||||
dependencies:
|
||||
once: 1.4.0
|
||||
wrappy: 1.0.2
|
||||
dev: true
|
||||
|
||||
/inherits@2.0.4:
|
||||
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
|
||||
dev: true
|
||||
|
||||
/is-extglob@2.1.1:
|
||||
resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/is-fullwidth-code-point@3.0.0:
|
||||
resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/is-glob@4.0.3:
|
||||
resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
dependencies:
|
||||
is-extglob: 2.1.1
|
||||
dev: true
|
||||
|
||||
/is-number@7.0.0:
|
||||
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
|
||||
engines: {node: '>=0.12.0'}
|
||||
dev: true
|
||||
|
||||
/isexe@2.0.0:
|
||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||
dev: true
|
||||
|
||||
/json5@2.2.3:
|
||||
resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
|
||||
engines: {node: '>=6'}
|
||||
hasBin: true
|
||||
dev: true
|
||||
|
||||
/merge2@1.4.1:
|
||||
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
|
||||
engines: {node: '>= 8'}
|
||||
dev: true
|
||||
|
||||
/micro-memoize@4.1.2:
|
||||
resolution: {integrity: sha512-+HzcV2H+rbSJzApgkj0NdTakkC+bnyeiUxgT6/m7mjcz1CmM22KYFKp+EVj1sWe4UYcnriJr5uqHQD/gMHLD+g==}
|
||||
dev: true
|
||||
|
||||
/micromatch@4.0.5:
|
||||
resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
|
||||
engines: {node: '>=8.6'}
|
||||
dependencies:
|
||||
braces: 3.0.2
|
||||
picomatch: 2.3.1
|
||||
dev: true
|
||||
|
||||
/minimatch@3.1.2:
|
||||
resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
|
||||
dependencies:
|
||||
brace-expansion: 1.1.11
|
||||
dev: true
|
||||
|
||||
/npm-run-path@4.0.1:
|
||||
resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
path-key: 3.1.1
|
||||
dev: true
|
||||
|
||||
/once@1.4.0:
|
||||
resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
|
||||
dependencies:
|
||||
wrappy: 1.0.2
|
||||
dev: true
|
||||
|
||||
/path-is-absolute@1.0.1:
|
||||
resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/path-key@3.1.1:
|
||||
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/picomatch@2.3.1:
|
||||
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
|
||||
engines: {node: '>=8.6'}
|
||||
dev: true
|
||||
|
||||
/pid-cwd@1.2.0:
|
||||
resolution: {integrity: sha512-8QQzIdBmy4bd2l1NKWON1X8flO5TQQRzU2uRDua/XaxSC0iJ+rgbDrlX76t0W3DaJ7OevTYpftyvQ6oMe3hclQ==}
|
||||
dev: true
|
||||
|
||||
/ps-list@7.2.0:
|
||||
resolution: {integrity: sha512-v4Bl6I3f2kJfr5o80ShABNHAokIgY+wFDTQfE+X3zWYgSGQOCBeYptLZUpoOALBqO5EawmDN/tjTldJesd0ujQ==}
|
||||
engines: {node: '>=10'}
|
||||
dev: true
|
||||
|
||||
/queue-microtask@1.2.3:
|
||||
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
|
||||
dev: true
|
||||
|
||||
/require-directory@2.1.1:
|
||||
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/reusify@1.0.4:
|
||||
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
|
||||
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/run-parallel@1.2.0:
|
||||
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
|
||||
dependencies:
|
||||
queue-microtask: 1.2.3
|
||||
dev: true
|
||||
|
||||
/shebang-command@2.0.0:
|
||||
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
shebang-regex: 3.0.0
|
||||
dev: true
|
||||
|
||||
/shebang-regex@3.0.0:
|
||||
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/shellwords-ts@3.0.1:
|
||||
resolution: {integrity: sha512-GabK4ApLMqHFRGlpgNqg8dmtHTnYHt0WUUJkIeMd3QaDrUUBEDXHSSNi3I0PzMimg8W+I0EN4TshQxsnHv1cwg==}
|
||||
dev: true
|
||||
|
||||
/sprintf-js@1.0.3:
|
||||
resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
|
||||
dev: true
|
||||
|
||||
/string-width@4.2.3:
|
||||
resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
emoji-regex: 8.0.0
|
||||
is-fullwidth-code-point: 3.0.0
|
||||
strip-ansi: 6.0.1
|
||||
dev: true
|
||||
|
||||
/strip-ansi@6.0.1:
|
||||
resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
ansi-regex: 5.0.1
|
||||
dev: true
|
||||
|
||||
/supports-color@7.2.0:
|
||||
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
|
||||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
has-flag: 4.0.0
|
||||
dev: true
|
||||
|
||||
/to-regex-range@5.0.1:
|
||||
resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
|
||||
engines: {node: '>=8.0'}
|
||||
dependencies:
|
||||
is-number: 7.0.0
|
||||
dev: true
|
||||
|
||||
/tslib@2.1.0:
|
||||
resolution: {integrity: sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==}
|
||||
dev: true
|
||||
|
||||
/type-fest@0.21.3:
|
||||
resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
|
||||
engines: {node: '>=10'}
|
||||
dev: true
|
||||
|
||||
/ultra-runner@3.10.5:
|
||||
resolution: {integrity: sha512-0U2OPII7sbvtbu9rhDlUUkP4Au/DPz2Tzbnawd/XwDuUruDqd+t/Bmel3cLJxl3yMLHf0OY0TMcIx9zzxdlAZw==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
ansi-split: 1.0.1
|
||||
chalk: 4.1.2
|
||||
cross-spawn: 7.0.3
|
||||
fast-glob: 3.2.12
|
||||
globrex: 0.1.2
|
||||
ignore: 5.2.4
|
||||
json5: 2.2.3
|
||||
micro-memoize: 4.1.2
|
||||
npm-run-path: 4.0.1
|
||||
pid-cwd: 1.2.0
|
||||
ps-list: 7.2.0
|
||||
shellwords-ts: 3.0.1
|
||||
string-width: 4.2.3
|
||||
tslib: 2.1.0
|
||||
type-fest: 0.21.3
|
||||
wrap-ansi: 7.0.0
|
||||
yamljs: 0.3.0
|
||||
yargs: 16.2.0
|
||||
dev: true
|
||||
|
||||
/which@2.0.2:
|
||||
resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
|
||||
engines: {node: '>= 8'}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
isexe: 2.0.0
|
||||
dev: true
|
||||
|
||||
/wrap-ansi@7.0.0:
|
||||
resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
|
||||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
ansi-styles: 4.3.0
|
||||
string-width: 4.2.3
|
||||
strip-ansi: 6.0.1
|
||||
dev: true
|
||||
|
||||
/wrappy@1.0.2:
|
||||
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
|
||||
dev: true
|
||||
|
||||
/y18n@5.0.8:
|
||||
resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
|
||||
engines: {node: '>=10'}
|
||||
dev: true
|
||||
|
||||
/yamljs@0.3.0:
|
||||
resolution: {integrity: sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
argparse: 1.0.10
|
||||
glob: 7.2.3
|
||||
dev: true
|
||||
|
||||
/yargs-parser@20.2.9:
|
||||
resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==}
|
||||
engines: {node: '>=10'}
|
||||
dev: true
|
||||
|
||||
/yargs@16.2.0:
|
||||
resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==}
|
||||
engines: {node: '>=10'}
|
||||
dependencies:
|
||||
cliui: 7.0.4
|
||||
escalade: 3.1.1
|
||||
get-caller-file: 2.0.5
|
||||
require-directory: 2.1.1
|
||||
string-width: 4.2.3
|
||||
y18n: 5.0.8
|
||||
yargs-parser: 20.2.9
|
||||
dev: true
|
||||
108
schema/dump.sql
Normal file
108
schema/dump.sql
Normal file
@@ -0,0 +1,108 @@
|
||||
PRAGMA foreign_keys=OFF;
|
||||
BEGIN TRANSACTION;
|
||||
CREATE TABLE `directus_migrations` (`version` varchar(255) not null, `name` varchar(255) not null, `timestamp` datetime default CURRENT_TIMESTAMP, primary key (`version`));
|
||||
INSERT INTO directus_migrations VALUES('20201028A','Remove Collection Foreign Keys','2023-06-09 14:51:48');
|
||||
INSERT INTO directus_migrations VALUES('20201029A','Remove System Relations','2023-06-09 14:51:48');
|
||||
INSERT INTO directus_migrations VALUES('20201029B','Remove System Collections','2023-06-09 14:51:48');
|
||||
INSERT INTO directus_migrations VALUES('20201029C','Remove System Fields','2023-06-09 14:51:48');
|
||||
INSERT INTO directus_migrations VALUES('20201105A','Add Cascade System Relations','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20201105B','Change Webhook URL Type','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210225A','Add Relations Sort Field','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210304A','Remove Locked Fields','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210312A','Webhooks Collections Text','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210331A','Add Refresh Interval','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210415A','Make Filesize Nullable','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210416A','Add Collections Accountability','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210422A','Remove Files Interface','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210506A','Rename Interfaces','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210510A','Restructure Relations','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210518A','Add Foreign Key Constraints','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210519A','Add System Fk Triggers','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210521A','Add Collections Icon Color','2023-06-09 14:51:49');
|
||||
INSERT INTO directus_migrations VALUES('20210525A','Add Insights','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210608A','Add Deep Clone Config','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210626A','Change Filesize Bigint','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210716A','Add Conditions to Fields','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210721A','Add Default Folder','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210802A','Replace Groups','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210803A','Add Required to Fields','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210805A','Update Groups','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210805B','Change Image Metadata Structure','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210811A','Add Geometry Config','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210831A','Remove Limit Column','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210903A','Add Auth Provider','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210907A','Webhooks Collections Not Null','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210910A','Move Module Setup','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210920A','Webhooks URL Not Null','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210924A','Add Collection Organization','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210927A','Replace Fields Group','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210927B','Replace M2M Interface','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20210929A','Rename Login Action','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211007A','Update Presets','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211009A','Add Auth Data','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211016A','Add Webhook Headers','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211103A','Set Unique to User Token','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211103B','Update Special Geometry','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211104A','Remove Collections Listing','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211118A','Add Notifications','2023-06-09 14:51:50');
|
||||
INSERT INTO directus_migrations VALUES('20211211A','Add Shares','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20211230A','Add Project Descriptor','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220303A','Remove Default Project Color','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220308A','Add Bookmark Icon and Color','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220314A','Add Translation Strings','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220322A','Rename Field Typecast Flags','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220323A','Add Field Validation','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220325A','Fix Typecast Flags','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220325B','Add Default Language','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220402A','Remove Default Value Panel Icon','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220429A','Add Flows','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220429B','Add Color to Insights Icon','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220429C','Drop Non Null From IP of Activity','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220429D','Drop Non Null From Sender of Notifications','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220614A','Rename Hook Trigger to Event','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220801A','Update Notifications Timestamp Column','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220802A','Add Custom Aspect Ratios','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20220826A','Add Origin to Accountability','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20230401A','Update Material Icons','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20230525A','Add Preview Settings','2023-06-09 14:51:51');
|
||||
INSERT INTO directus_migrations VALUES('20230526A','Migrate Translation Strings','2023-06-09 14:51:51');
|
||||
CREATE TABLE IF NOT EXISTS "directus_folders" (`id` char(36) NOT NULL, `name` varchar(255) NOT NULL, `parent` char(36), PRIMARY KEY (`id`), FOREIGN KEY (`parent`) REFERENCES `directus_folders` (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_relations" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `many_collection` varchar(64) NOT NULL, `many_field` varchar(64) NOT NULL, `one_collection` varchar(64), `one_field` varchar(64), `one_collection_field` varchar(64), `one_allowed_collections` text, `junction_field` varchar(64), `sort_field` varchar(64), `one_deselect_action` varchar(255) NOT NULL DEFAULT 'nullify');
|
||||
CREATE TABLE IF NOT EXISTS "directus_revisions" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `activity` integer NOT NULL, `collection` varchar(64) NOT NULL, `item` varchar(255) NOT NULL, `data` json, `delta` json, `parent` integer, FOREIGN KEY (`parent`) REFERENCES `directus_revisions` (`id`), FOREIGN KEY (`activity`) REFERENCES `directus_activity` (`id`) ON DELETE CASCADE);
|
||||
CREATE TABLE `directus_dashboards` (`id` char(36) not null, `name` varchar(255) not null, `icon` varchar(30) not null default 'dashboard', `note` text, `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), `color` varchar(255) null, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_files" (`id` char(36) NOT NULL, `storage` varchar(255) NOT NULL, `filename_disk` varchar(255), `filename_download` varchar(255) NOT NULL, `title` varchar(255), `type` varchar(255), `folder` char(36), `uploaded_by` char(36), `uploaded_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_by` char(36), `modified_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `charset` varchar(50), `filesize` bigint DEFAULT null, `width` integer, `height` integer, `duration` integer, `embed` varchar(200), `description` text, `location` text, `tags` text, `metadata` json, PRIMARY KEY (`id`), FOREIGN KEY (`uploaded_by`) REFERENCES `directus_users` (`id`), FOREIGN KEY (`modified_by`) REFERENCES `directus_users` (`id`), FOREIGN KEY (`folder`) REFERENCES `directus_folders` (`id`) ON DELETE SET NULL);
|
||||
CREATE TABLE IF NOT EXISTS "directus_permissions" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `role` char(36), `collection` varchar(64) NOT NULL, `action` varchar(10) NOT NULL, `permissions` json, `validation` json, `presets` json, `fields` text, FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE CASCADE);
|
||||
CREATE TABLE IF NOT EXISTS "directus_webhooks" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `name` varchar(255) NOT NULL, `method` varchar(10) NOT NULL DEFAULT 'POST', `url` varchar(255) NOT NULL, `status` varchar(10) NOT NULL DEFAULT 'active', `data` boolean NOT NULL DEFAULT '1', `actions` varchar(100) NOT NULL, `collections` varchar(255) NOT NULL, `headers` json);
|
||||
CREATE TABLE IF NOT EXISTS "directus_collections" (`collection` varchar(64) NOT NULL, `icon` varchar(30), `note` text, `display_template` varchar(255), `hidden` boolean NOT NULL DEFAULT '0', `singleton` boolean NOT NULL DEFAULT '0', `translations` json, `archive_field` varchar(64), `archive_app_filter` boolean NOT NULL DEFAULT '1', `archive_value` varchar(255), `unarchive_value` varchar(255), `sort_field` varchar(64), `accountability` varchar(255) DEFAULT 'all', `color` varchar(255) NULL, `item_duplication_fields` json NULL, `sort` integer, `group` varchar(64), `collapse` varchar(255) NOT NULL DEFAULT 'open', `preview_url` varchar(255) null, PRIMARY KEY (`collection`), FOREIGN KEY (`group`) REFERENCES `directus_collections` (`collection`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_fields" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `collection` varchar(64) NOT NULL, `field` varchar(64) NOT NULL, `special` varchar(64), `interface` varchar(64), `options` json, `display` varchar(64), `display_options` json, `readonly` boolean NOT NULL DEFAULT '0', `hidden` boolean NOT NULL DEFAULT '0', `sort` integer, `width` varchar(30) DEFAULT 'full', `translations` json, `note` text, `conditions` json, `required` boolean DEFAULT '0', `group` varchar(64), `validation` json, `validation_message` text);
|
||||
CREATE TABLE IF NOT EXISTS "directus_roles" (`id` char(36) NOT NULL, `name` varchar(100) NOT NULL, `icon` varchar(30) NOT NULL DEFAULT 'supervised_user_circle', `description` text, `ip_access` text, `enforce_tfa` boolean NOT NULL DEFAULT '0', `admin_access` boolean NOT NULL DEFAULT '0', `app_access` boolean NOT NULL DEFAULT '1', PRIMARY KEY (`id`));
|
||||
INSERT INTO directus_roles VALUES('067808bd-7c13-40be-8c11-9ba654b79465','Administrator','verified','$t:admin_description',NULL,0,1,1);
|
||||
CREATE TABLE `directus_shares` (`id` char(36) not null, `name` varchar(255), `collection` varchar(64), `item` varchar(255), `role` char(36), `password` varchar(255), `user_created` char(36), `date_created` datetime default CURRENT_TIMESTAMP, `date_start` datetime null default null, `date_end` datetime null default null, `times_used` integer default '0', `max_uses` integer, foreign key(`collection`) references `directus_collections`(`collection`) on delete CASCADE, foreign key(`role`) references `directus_roles`(`id`) on delete CASCADE, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_sessions" (`token` varchar(64) NOT NULL, `user` char(36), `expires` datetime NOT NULL, `ip` varchar(255), `user_agent` varchar(255), `share` char(36), `origin` varchar(255) null, PRIMARY KEY (`token`), FOREIGN KEY (`user`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`share`) REFERENCES `directus_shares` (`id`) ON DELETE CASCADE);
|
||||
CREATE TABLE IF NOT EXISTS "directus_users" (`id` char(36) NOT NULL, `first_name` varchar(50), `last_name` varchar(50), `email` varchar(128), `password` varchar(255), `location` varchar(255), `title` varchar(50), `description` text, `tags` json, `avatar` char(36), `language` varchar(255) DEFAULT null, `theme` varchar(20) DEFAULT 'auto', `tfa_secret` varchar(255), `status` varchar(16) NOT NULL DEFAULT 'active', `role` char(36), `token` varchar(255), `last_access` datetime, `last_page` varchar(255), `provider` varchar(128) NOT NULL DEFAULT 'default', `external_identifier` varchar(255), `auth_data` json, `email_notifications` boolean DEFAULT '1', PRIMARY KEY (`id`), FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE SET NULL);
|
||||
INSERT INTO directus_users VALUES('caf39e60-325e-400d-886f-3ab8c1d1e544','Admin','User','admin@example.com','$argon2id$v=19$m=65536,t=3,p=4$RYN7mdD0Apv8pEyb7UokHw$36ilbhcQBlWy4P6100+kZF5N4CEKsQnuc/IABUQKf8U',NULL,NULL,NULL,NULL,NULL,NULL,'auto',NULL,'active','067808bd-7c13-40be-8c11-9ba654b79465',NULL,NULL,NULL,'default',NULL,NULL,1);
|
||||
CREATE TABLE IF NOT EXISTS "directus_panels" (`id` char(36) NOT NULL, `dashboard` char(36) NOT NULL, `name` varchar(255), `icon` varchar(30) DEFAULT null, `color` varchar(10), `show_header` boolean NOT NULL DEFAULT '0', `note` text, `type` varchar(255) NOT NULL, `position_x` integer NOT NULL, `position_y` integer NOT NULL, `width` integer NOT NULL, `height` integer NOT NULL, `options` json, `date_created` datetime DEFAULT CURRENT_TIMESTAMP, `user_created` char(36), FOREIGN KEY (`dashboard`) REFERENCES `directus_dashboards` (`id`) ON DELETE CASCADE, FOREIGN KEY (`user_created`) REFERENCES `directus_users` (`id`) ON DELETE SET NULL, PRIMARY KEY (`id`));
|
||||
CREATE TABLE `directus_flows` (`id` char(36) not null, `name` varchar(255) not null, `icon` varchar(30), `color` varchar(255) null, `description` text, `status` varchar(255) not null default 'active', `trigger` varchar(255), `accountability` varchar(255) default 'all', `options` json, `operation` char(36), `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
||||
CREATE TABLE `directus_operations` (`id` char(36) not null, `name` varchar(255), `key` varchar(255) not null, `type` varchar(255) not null, `position_x` integer not null, `position_y` integer not null, `options` json, `resolve` char(36), `reject` char(36), `flow` char(36) not null, `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), foreign key(`resolve`) references `directus_operations`(`id`), foreign key(`reject`) references `directus_operations`(`id`), foreign key(`flow`) references `directus_flows`(`id`) on delete CASCADE, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_activity" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `action` varchar(45) NOT NULL, `user` char(36), `timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `ip` varchar(50), `user_agent` varchar(255), `collection` varchar(64) NOT NULL, `item` varchar(255) NOT NULL, `comment` text, `origin` varchar(255) null);
|
||||
CREATE TABLE IF NOT EXISTS "directus_notifications" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) DEFAULT 'inbox', `recipient` char(36) NOT NULL, `sender` char(36), `subject` varchar(255) NOT NULL, `message` text, `collection` varchar(64), `item` varchar(255), FOREIGN KEY (`recipient`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`sender`) REFERENCES `directus_users` (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_presets" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `bookmark` varchar(255), `user` char(36), `role` char(36), `collection` varchar(64), `search` varchar(100), `layout` varchar(100) DEFAULT 'tabular', `layout_query` json, `layout_options` json, `refresh_interval` integer, `filter` json, `icon` varchar(30) DEFAULT 'bookmark', `color` varchar(255) NULL, FOREIGN KEY (`user`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE CASCADE);
|
||||
CREATE TABLE `directus_translations` (`id` char(36) not null, `language` varchar(255) not null, `key` varchar(255) not null, `value` text not null, primary key (`id`));
|
||||
CREATE TABLE IF NOT EXISTS "directus_settings" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `project_name` varchar(100) NOT NULL DEFAULT 'Directus', `project_url` varchar(255), `project_color` varchar(50) DEFAULT null, `project_logo` char(36), `public_foreground` char(36), `public_background` char(36), `public_note` text, `auth_login_attempts` integer DEFAULT '25', `auth_password_policy` varchar(100), `storage_asset_transform` varchar(7) DEFAULT 'all', `storage_asset_presets` json, `custom_css` text, `storage_default_folder` char(36), `basemaps` json, `mapbox_key` varchar(255), `module_bar` json, `project_descriptor` varchar(100) NULL, `default_language` varchar(255) NOT NULL DEFAULT 'en-US', `custom_aspect_ratios` json, FOREIGN KEY (`project_logo`) REFERENCES `directus_files` (`id`), FOREIGN KEY (`public_foreground`) REFERENCES `directus_files` (`id`), FOREIGN KEY (`public_background`) REFERENCES `directus_files` (`id`), CONSTRAINT `directus_settings_storage_default_folder_foreign` FOREIGN KEY (`storage_default_folder`) REFERENCES `directus_folders` (`id`) ON DELETE SET NULL);
|
||||
DELETE FROM sqlite_sequence;
|
||||
INSERT INTO sqlite_sequence VALUES('directus_relations',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_revisions',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_permissions',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_webhooks',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_fields',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_activity',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_notifications',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_presets',0);
|
||||
INSERT INTO sqlite_sequence VALUES('directus_settings',0);
|
||||
CREATE UNIQUE INDEX `directus_users_external_identifier_unique` on `directus_users` (`external_identifier`);
|
||||
CREATE UNIQUE INDEX `directus_users_email_unique` on `directus_users` (`email`);
|
||||
CREATE UNIQUE INDEX `directus_users_token_unique` on `directus_users` (`token`);
|
||||
CREATE UNIQUE INDEX `directus_flows_operation_unique` on `directus_flows` (`operation`);
|
||||
CREATE UNIQUE INDEX `directus_operations_resolve_unique` on `directus_operations` (`resolve`);
|
||||
CREATE UNIQUE INDEX `directus_operations_reject_unique` on `directus_operations` (`reject`);
|
||||
COMMIT;
|
||||
6
schema/snapshot.yaml
Normal file
6
schema/snapshot.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: 1
|
||||
directus: 11.0.1
|
||||
vendor: sqlite
|
||||
collections: []
|
||||
fields: []
|
||||
relations: []
|
||||
Reference in New Issue
Block a user