2023-01-07 23:05:40 +00:00
|
|
|
// Source: lemmy/crates/db_schema/src/source/registration_application.rs
|
2023-01-07 22:45:01 +00:00
|
|
|
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
|
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
type RegistrationApplication struct {
|
2023-01-05 21:42:24 +00:00
|
|
|
ID int32 `json:"id" url:"id,omitempty"`
|
|
|
|
LocalUserID int `json:"local_user_id" url:"local_user_id,omitempty"`
|
|
|
|
Answer string `json:"answer" url:"answer,omitempty"`
|
|
|
|
AdminID Optional[int] `json:"admin_id" url:"admin_id,omitempty"`
|
|
|
|
DenyReason Optional[string] `json:"deny_reason" url:"deny_reason,omitempty"`
|
|
|
|
Published LemmyTime `json:"published" url:"published,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type RegistrationApplicationInsertForm struct {
|
|
|
|
LocalUserID int `json:"local_user_id" url:"local_user_id,omitempty"`
|
|
|
|
Answer string `json:"answer" url:"answer,omitempty"`
|
|
|
|
}
|
|
|
|
type RegistrationApplicationUpdateForm struct {
|
|
|
|
AdminID Optional[Optional[int]] `json:"admin_id" url:"admin_id,omitempty"`
|
|
|
|
DenyReason Optional[Optional[string]] `json:"deny_reason" url:"deny_reason,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|