added sql table structs

This commit is contained in:
Pavel 2024-08-15 17:24:06 +03:00
parent 22776dd9e7
commit beaaf8ef08
2 changed files with 26 additions and 1 deletions

@ -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: