feat: add open ai key to database (#1852)

* feat: add open ai key to database

* chore: refactor code
This commit is contained in:
Lucas.Xu
2023-02-14 10:04:36 +08:00
committed by GitHub
parent 7207e35349
commit 72e155f5b9
12 changed files with 125 additions and 15 deletions

View File

@ -0,0 +1 @@
ALTER TABLE user_table DROP COLUMN openai_key;

View File

@ -0,0 +1 @@
ALTER TABLE user_table ADD COLUMN openai_key TEXT NOT NULL DEFAULT '';

View File

@ -146,6 +146,7 @@ diesel::table! {
email -> Text,
workspace -> Text,
icon_url -> Text,
openai_key -> Text,
}
}