net/indexeddb/engines/sqlite/object_store_index_model.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4use sea_query::Iden;
5
6#[derive(Iden)]
7#[expect(unused)]
8pub enum Column {
9 #[iden = "object_store_index"]
10 Table,
11 ObjectStoreId,
12 Name,
13 KeyPath,
14 UniqueIndex,
15 MultiEntryIndex,
16}
17
18#[allow(dead_code)]
19#[derive(Clone, Debug, Eq, PartialEq)]
20pub struct Model {
21 pub id: i32,
22 pub object_store_id: i32,
23 pub name: String,
24 pub key_path: Vec<u8>,
25 pub unique_index: bool,
26 pub multi_entry_index: bool,
27}