OCP 2.10.17

offline-chess-puzzles - GUI to solve puzzles from the lichess puzzle database
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use diesel::prelude::*;

use crate::schema::favs;

#[derive(Insertable)]
#[diesel(table_name = favs)]
pub struct NewFavorite<'a> {
	pub puzzle_id: &'a str,
	pub fen: &'a str,
	pub moves: &'a str,
	pub rating: i32,
	pub rd: i32,
	pub popularity: i32,
	pub nb_plays: i32,
	pub themes: &'a str,
	pub game_url: &'a str,
	pub opening_tags: &'a str,
}