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::*;
use diesel_geography::types::GeogPoint;
use std::time::SystemTime;

#[derive(Queryable)]
pub struct Vote {
    pub choice_id: i32,
    pub username: String,
    pub score: i32,
    pub geo: GeogPoint,
    pub fence_title: String,
    pub date_voted: SystemTime,
}

#[derive(Insertable)]
#[table_name = "votes"]
pub struct NewVote<'a> {
    pub choice_id: i32,
    pub username: &'a str,
    pub score: i32,
    pub geo: GeogPoint,
    pub fence_title: &'a str,
}