8 lines
403 B
Plaintext
8 lines
403 B
Plaintext
// Example initialization script - modify according to your schema
|
|
CREATE CONSTRAINT IF NOT EXISTS FOR (n:YourLabel) REQUIRE n.id IS UNIQUE;
|
|
CREATE INDEX IF NOT EXISTS FOR (n:YourLabel) ON (n.someProperty);
|
|
|
|
// Add any other initialization queries here
|
|
// For example:
|
|
// CREATE CONSTRAINT IF NOT EXISTS FOR (n:Person) REQUIRE n.email IS UNIQUE;
|
|
// CREATE INDEX IF NOT EXISTS FOR (n:Product) ON (n.sku); |