- Fixed Docker service names and volume configuration - Bootstrapped Directus and applied schema - Updated DIRECTUS_URL to local instance in .env - Implemented manual Leaflet lifecycle management in LeafletMap.tsx to prevent re-initialization error
228 lines
4.8 KiB
YAML
228 lines
4.8 KiB
YAML
version: 1
|
|
directus: 11.14.1
|
|
vendor: postgres
|
|
collections:
|
|
- collection: contact_submissions
|
|
meta:
|
|
accountability: all
|
|
archive_app_filter: true
|
|
collapse: open
|
|
collection: contact_submissions
|
|
color: '#002b49'
|
|
display_template: '{{name}} | {{email}}'
|
|
hidden: false
|
|
icon: contact_mail
|
|
singleton: false
|
|
schema:
|
|
name: contact_submissions
|
|
- collection: product_requests
|
|
meta:
|
|
accountability: all
|
|
archive_app_filter: true
|
|
collapse: open
|
|
collection: product_requests
|
|
color: '#002b49'
|
|
display_template: '{{product_name}} | {{email}}'
|
|
hidden: false
|
|
icon: inventory
|
|
singleton: false
|
|
schema:
|
|
name: product_requests
|
|
- collection: products
|
|
meta:
|
|
accountability: all
|
|
collection: products
|
|
icon: inventory_2
|
|
singleton: false
|
|
schema:
|
|
name: products
|
|
- collection: products_translations
|
|
meta:
|
|
accountability: all
|
|
collection: products_translations
|
|
hidden: true
|
|
schema:
|
|
name: products_translations
|
|
|
|
fields:
|
|
# contact_submissions
|
|
- collection: contact_submissions
|
|
field: id
|
|
type: uuid
|
|
meta:
|
|
collection: contact_submissions
|
|
field: id
|
|
hidden: true
|
|
sort: 1
|
|
schema:
|
|
name: id
|
|
table: contact_submissions
|
|
data_type: uuid
|
|
is_nullable: false
|
|
is_primary_key: true
|
|
- collection: contact_submissions
|
|
field: name
|
|
type: string
|
|
meta:
|
|
collection: contact_submissions
|
|
field: name
|
|
interface: input
|
|
sort: 2
|
|
schema:
|
|
name: name
|
|
table: contact_submissions
|
|
data_type: character varying
|
|
- collection: contact_submissions
|
|
field: email
|
|
type: string
|
|
meta:
|
|
collection: contact_submissions
|
|
field: email
|
|
interface: input
|
|
sort: 3
|
|
schema:
|
|
name: email
|
|
table: contact_submissions
|
|
data_type: character varying
|
|
- collection: contact_submissions
|
|
field: message
|
|
type: text
|
|
meta:
|
|
collection: contact_submissions
|
|
field: message
|
|
interface: textarea
|
|
sort: 4
|
|
schema:
|
|
name: message
|
|
table: contact_submissions
|
|
data_type: text
|
|
- collection: contact_submissions
|
|
field: date_created
|
|
type: timestamp
|
|
meta:
|
|
collection: contact_submissions
|
|
field: date_created
|
|
interface: datetime
|
|
readonly: true
|
|
sort: 5
|
|
schema:
|
|
name: date_created
|
|
table: contact_submissions
|
|
data_type: timestamp with time zone
|
|
default_value: CURRENT_TIMESTAMP
|
|
|
|
# product_requests
|
|
- collection: product_requests
|
|
field: id
|
|
type: uuid
|
|
meta:
|
|
collection: product_requests
|
|
field: id
|
|
hidden: true
|
|
sort: 1
|
|
schema:
|
|
name: id
|
|
table: product_requests
|
|
data_type: uuid
|
|
is_nullable: false
|
|
is_primary_key: true
|
|
- collection: product_requests
|
|
field: product_name
|
|
type: string
|
|
meta:
|
|
collection: product_requests
|
|
field: product_name
|
|
interface: input
|
|
sort: 2
|
|
schema:
|
|
name: product_name
|
|
table: product_requests
|
|
data_type: character varying
|
|
- collection: product_requests
|
|
field: email
|
|
type: string
|
|
meta:
|
|
collection: product_requests
|
|
field: email
|
|
interface: input
|
|
sort: 3
|
|
schema:
|
|
name: email
|
|
table: product_requests
|
|
data_type: character varying
|
|
- collection: product_requests
|
|
field: message
|
|
type: text
|
|
meta:
|
|
collection: product_requests
|
|
field: message
|
|
interface: textarea
|
|
sort: 4
|
|
schema:
|
|
name: message
|
|
table: product_requests
|
|
data_type: text
|
|
- collection: product_requests
|
|
field: date_created
|
|
type: timestamp
|
|
meta:
|
|
collection: product_requests
|
|
field: date_created
|
|
interface: datetime
|
|
readonly: true
|
|
sort: 5
|
|
schema:
|
|
name: date_created
|
|
table: product_requests
|
|
data_type: timestamp with time zone
|
|
default_value: CURRENT_TIMESTAMP
|
|
|
|
# products
|
|
- collection: products
|
|
field: id
|
|
type: uuid
|
|
meta:
|
|
collection: products
|
|
field: id
|
|
hidden: true
|
|
sort: 1
|
|
schema:
|
|
name: id
|
|
table: products
|
|
data_type: uuid
|
|
is_nullable: false
|
|
is_primary_key: true
|
|
|
|
# products_translations
|
|
- collection: products_translations
|
|
field: id
|
|
type: integer
|
|
meta:
|
|
collection: products_translations
|
|
field: id
|
|
hidden: true
|
|
schema:
|
|
name: id
|
|
table: products_translations
|
|
data_type: integer
|
|
is_primary_key: true
|
|
has_auto_increment: true
|
|
|
|
|
|
|
|
systemFields:
|
|
- collection: directus_activity
|
|
field: timestamp
|
|
schema:
|
|
is_indexed: true
|
|
- collection: directus_revisions
|
|
field: activity
|
|
schema:
|
|
is_indexed: true
|
|
- collection: directus_revisions
|
|
field: parent
|
|
schema:
|
|
is_indexed: true
|
|
|
|
|