Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-19 16:11:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
99c020fc3e6960393190dc557658d5f6a159df34
99c020fc
1 parent
40848d9f
init steps.json in migration
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
552 additions
and
0 deletions
back/prisma/migrations/20200419160117-init/steps.json
back/prisma/migrations/20200419160117-init/steps.json
0 → 100644
View file @
99c020f
{
"version"
:
"0.3.14-fixed"
,
"steps"
:
[
{
"tag"
:
"CreateSource"
,
"source"
:
"db"
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Source"
,
"source"
:
"db"
},
"argument"
:
"provider"
,
"value"
:
"
\"
mysql
\"
"
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Source"
,
"source"
:
"db"
},
"argument"
:
"url"
,
"value"
:
"env(
\"
DATABASE_URL
\"
)"
},
{
"tag"
:
"CreateModel"
,
"model"
:
"User"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"id"
,
"type"
:
"Int"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"id"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"id"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"autoincrement()"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"id"
},
"directive"
:
"id"
}
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"avatarUrl"
,
"type"
:
"String"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"email"
,
"type"
:
"String"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"email"
},
"directive"
:
"unique"
}
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"password"
,
"type"
:
"String"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"name"
,
"type"
:
"String"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"loginSecret"
,
"type"
:
"String"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"bio"
,
"type"
:
"String"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"rooms"
,
"type"
:
"Room"
,
"arity"
:
"List"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"rooms"
},
"directive"
:
"relation"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"rooms"
},
"directive"
:
"relation"
},
"argument"
:
"references"
,
"value"
:
"[id]"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"messages"
,
"type"
:
"Message"
,
"arity"
:
"List"
},
{
"tag"
:
"CreateField"
,
"model"
:
"User"
,
"field"
:
"createdAt"
,
"type"
:
"DateTime"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"createdAt"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"User"
,
"field"
:
"createdAt"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"now()"
},
{
"tag"
:
"CreateModel"
,
"model"
:
"Room"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Room"
,
"field"
:
"id"
,
"type"
:
"Int"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"id"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"id"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"autoincrement()"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"id"
},
"directive"
:
"id"
}
},
{
"tag"
:
"CreateField"
,
"model"
:
"Room"
,
"field"
:
"participants"
,
"type"
:
"User"
,
"arity"
:
"List"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"participants"
},
"directive"
:
"relation"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"participants"
},
"directive"
:
"relation"
},
"argument"
:
"references"
,
"value"
:
"[id]"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Room"
,
"field"
:
"categories"
,
"type"
:
"Category"
,
"arity"
:
"List"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"categories"
},
"directive"
:
"relation"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Room"
,
"field"
:
"categories"
},
"directive"
:
"relation"
},
"argument"
:
"references"
,
"value"
:
"[id]"
},
{
"tag"
:
"CreateModel"
,
"model"
:
"Category"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Category"
,
"field"
:
"id"
,
"type"
:
"Int"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"id"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"id"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"autoincrement()"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"id"
},
"directive"
:
"id"
}
},
{
"tag"
:
"CreateField"
,
"model"
:
"Category"
,
"field"
:
"name"
,
"type"
:
"String"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"name"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"name"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"
\"\"
"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Category"
,
"field"
:
"rooms"
,
"type"
:
"Room"
,
"arity"
:
"List"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"rooms"
},
"directive"
:
"relation"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Category"
,
"field"
:
"rooms"
},
"directive"
:
"relation"
},
"argument"
:
"references"
,
"value"
:
"[id]"
},
{
"tag"
:
"CreateModel"
,
"model"
:
"Message"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Message"
,
"field"
:
"id"
,
"type"
:
"Int"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"id"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"id"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"autoincrement()"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"id"
},
"directive"
:
"id"
}
},
{
"tag"
:
"CreateField"
,
"model"
:
"Message"
,
"field"
:
"text"
,
"type"
:
"String"
,
"arity"
:
"Optional"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"text"
},
"directive"
:
"default"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"text"
},
"directive"
:
"default"
},
"argument"
:
""
,
"value"
:
"
\"\"
"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Message"
,
"field"
:
"sender"
,
"type"
:
"User"
,
"arity"
:
"Required"
},
{
"tag"
:
"CreateDirective"
,
"location"
:
{
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"sender"
},
"directive"
:
"relation"
}
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"sender"
},
"directive"
:
"relation"
},
"argument"
:
"fields"
,
"value"
:
"[senderId]"
},
{
"tag"
:
"CreateArgument"
,
"location"
:
{
"tag"
:
"Directive"
,
"path"
:
{
"tag"
:
"Field"
,
"model"
:
"Message"
,
"field"
:
"sender"
},
"directive"
:
"relation"
},
"argument"
:
"references"
,
"value"
:
"[id]"
},
{
"tag"
:
"CreateField"
,
"model"
:
"Message"
,
"field"
:
"senderId"
,
"type"
:
"Int"
,
"arity"
:
"Required"
}
]
}
\ No newline at end of file
Please
register
or
login
to post a comment