-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from OneLiteFeatherNET/feat/responses
Feat/responses
- Loading branch information
Showing
19 changed files
with
1,372 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// just placeholder to get OUT_DIR | ||
|
||
fn main() {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
DROP TABLE IF EXISTS field; | ||
DROP TABLE IF EXISTS prompt; | ||
DROP TABLE IF EXISTS target; | ||
DROP TABLE IF EXISTS feedback_prompt_field_response; | ||
DROP TABLE IF EXISTS feedback_prompt_response; | ||
DROP TABLE IF EXISTS feedback_prompt_field; | ||
DROP TABLE IF EXISTS feedback_prompt; | ||
DROP TABLE IF EXISTS feedback_target; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
CREATE TABLE IF NOT EXISTS target ( | ||
CREATE TABLE IF NOT EXISTS feedback_target ( | ||
id VARCHAR(32) UNIQUE NOT NULL, | ||
name VARCHAR(32) NOT NULL, | ||
description VARCHAR(255), | ||
updated_at TIMESTAMP, | ||
created_at TIMESTAMP | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS prompt ( | ||
CREATE TABLE IF NOT EXISTS feedback_prompt ( | ||
id VARCHAR(32) UNIQUE NOT NULL, | ||
title VARCHAR(32) NOT NULL, | ||
target VARCHAR(32) REFERENCES target(id) NOT NULL, | ||
target VARCHAR(32) REFERENCES feedback_target(id) NOT NULL, | ||
active BOOLEAN NOT NULL, | ||
updated_at TIMESTAMP, | ||
created_at TIMESTAMP | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS field ( | ||
CREATE TABLE IF NOT EXISTS feedback_prompt_field ( | ||
id VARCHAR(32) UNIQUE NOT NULL, | ||
title VARCHAR(255) NOT NULL, | ||
prompt VARCHAR(32) REFERENCES prompt(id) NOT NULL, | ||
prompt VARCHAR(32) REFERENCES feedback_prompt(id) NOT NULL, | ||
type VARCHAR(32) NOT NULL, | ||
options BPCHAR NOT NULL, | ||
options JSON NOT NULL, | ||
updated_at TIMESTAMP, | ||
created_at TIMESTAMP | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS feedback_prompt_response ( | ||
id VARCHAR(32) UNIQUE NOT NULL, | ||
prompt VARCHAR(32) REFERENCES feedback_prompt(id) NOT NULL, | ||
created_at TIMESTAMP | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS feedback_prompt_field_response ( | ||
id VARCHAR(32) UNIQUE NOT NULL, | ||
response VARCHAR(32) REFERENCES feedback_prompt_response(id) NOT NULL, | ||
field VARCHAR(32) REFERENCES feedback_prompt_field(id) NOT NULL, | ||
data JSON NOT NULL | ||
); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.