You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
909 B
Plaintext

node Job {
*id: Int,
title: Text,
min_salary: Float,
max_salary: Float
}
node Employee {
*id: Int,
first_name: Text,
last_name: Text,
email: Text,
phone_number: ?Text
}
node Dependent {
*id: Int,
first_name: Text,
last_name: Text
}
node Department {
*id: Int,
name: Text
}
node Location {
*id: Int,
street_address: Text,
postal_code: ?Text,
city: Text,
state_province: ?Text
}
node Country {
*id: Text,
name: Text
}
node Region {
*id: Int,
name: Text
}
edge (Employee)-[HasJob]->(Job) {
salary: Float,
hire_date: Text
}
edge (Employee)-[InDepartment]->(Department);
edge (Employee)-[Manages]->(Employee);
edge (Employee)-[HasDependent]->(Dependent) {
relationship: Text
}
edge (Department)-[InLocation]->(Location);
edge (Location)-[InCountry]->(Country);
edge (Country)-[InRegion]->(Region);