reifydb-core 0.4.12

Core database interfaces and data structures for ReifyDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use reifydb_type::value::{datetime::DateTime, identity::IdentityId};
use serde::{Deserialize, Serialize};

pub type TokenId = u64;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Token {
	pub id: TokenId,
	pub token: String,
	pub identity: IdentityId,
	pub expires_at: Option<DateTime>,
	pub created_at: DateTime,
}