made adding a project work

changed the sql migration to make names unique
This commit is contained in:
2026-07-13 20:09:43 -05:00
parent 809dff207f
commit 27fac75738
8 changed files with 170 additions and 25 deletions
+7
View File
@@ -11,6 +11,13 @@ pub struct Project {
pub created_at: NaiveDateTime,
}
#[derive(Insertable)]
#[diesel(table_name = projects)]
pub struct NewProject<'a> {
pub id: &'a str,
pub name: &'a str,
}
#[derive(Debug, Queryable, Selectable)]
#[diesel(table_name = secrets)]
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]