birdseed 0.2.0

birdseed enables you to seed a libellis database with fake data, clear all tables, or rebuild all tables per the current embedded migrations
Documentation
use crate::schema::*;

#[derive(Queryable)]
pub struct Question {
    pub id: i32,
    pub survey_id: i32,
    pub question_type: String,
    pub title: String,
}

#[derive(Insertable)]
#[table_name = "questions"]
pub struct NewQuestion<'a> {
    pub survey_id: i32,
    pub question_type: &'a str,
    pub title: &'a str,
}

#[derive(Deserialize, AsChangeset, Default, Clone)]
#[table_name = "questions"]
pub struct UpdateQuestionData {
    title: Option<String>,
    question_type: Option<String>,
}