Create one-to-many relationship for SQLite
Closed this issue · 0 comments
mjovanc commented
We want to add the possibility to add junction tables for a MANY-TO-MANY relationship if we define our tables such as:
#[derive(Table, Default)]
struct Posts {
title: String,
description: String,
category: Categories
}
#[derive(Table, Default)]
struct Categories {
name: String,
}