1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 22:39:26 +00:00

Added testTemplate test data

This commit is contained in:
2022-02-24 23:17:06 +00:00
parent 187c3a8b64
commit a4156615d0

View File

@@ -38,6 +38,9 @@ const tableDetails = {
hashPassword: true,
id: 'uuid'
},
testTemplate: {
id: 'uuid'
},
studentParentLink: {
link: true
},
@@ -187,12 +190,37 @@ const data = {
lastName: 'Vaughn',
password: 'a3'
},
]
};
// Object to store the relationships between tables to be inserted into
// link tables
const relationships = {
],
testTemplate: [
{
name: 'Test Template 1',
maxMark: 100,
lookups: {
accountId: 1
}
},
{
name: 'Test Template 2',
maxMark: 50,
lookups: {
accountId: 2
}
},
{
name: 'Test Template 3',
maxMark: 74,
lookups: {
accountId: 2
}
},
{
name: 'Test Template 4',
maxMark: 320,
lookups: {
accountId: 3
}
}
],
studentParentLink: [
{
lookups: {