added sql table structs
This commit is contained in:
parent
22776dd9e7
commit
beaaf8ef08
@ -13,4 +13,28 @@ pub struct Question {
|
||||
title string @[json: 'Title']
|
||||
description string @[json: 'Description']
|
||||
buttons []Button @[json: 'Buttons']
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TelegramIntegration {
|
||||
pub mut:
|
||||
id i64
|
||||
account_id string
|
||||
quiz_id string
|
||||
bot_token string
|
||||
repeatable bool
|
||||
name string
|
||||
description string
|
||||
deleted bool
|
||||
}
|
||||
|
||||
|
||||
pub struct RespondentState {
|
||||
pub mut:
|
||||
id i64
|
||||
telegram_id i64
|
||||
quiz_id i64
|
||||
state string
|
||||
lang string
|
||||
contact string
|
||||
finish bool
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
module repository
|
||||
|
||||
import models
|
||||
import db.pg
|
||||
|
||||
pub struct Repo {
|
||||
pub mut:
|
||||
|
Loading…
Reference in New Issue
Block a user