summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/client.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-09-01 11:45:01 +0200
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-09-01 11:45:01 +0200
commit684bd56528c5ffa37af8340b8b141fe390dd05a4 (patch)
tree4a78d70c2ca7f15e47f8a2e6bc51d62c99b0f52d /internal/gtsmodel/client.go
parentMerge branch 'struct_validation' of github.com:superseriousbusiness/gotosocia... (diff)
downloadgotosocial-684bd56528c5ffa37af8340b8b141fe390dd05a4.tar.xz
move oauth models into gtsmodel
Diffstat (limited to 'internal/gtsmodel/client.go')
-rw-r--r--internal/gtsmodel/client.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/gtsmodel/client.go b/internal/gtsmodel/client.go
new file mode 100644
index 000000000..24028fd69
--- /dev/null
+++ b/internal/gtsmodel/client.go
@@ -0,0 +1,9 @@
+package gtsmodel
+
+// Client is a handy little wrapper for typical oauth client details
+type Client struct {
+ ID string `bun:"type:CHAR(26),pk,notnull"`
+ Secret string
+ Domain string
+ UserID string
+}