import { Column, Entity, PrimaryColumn } from "typeorm";
import { id } from "../id.js";
import { User } from "./user.js";

@Entity("reversi_matching")
export class ReversiMatching {
	@PrimaryColumn(id())
	public id: string;

	@Column("timestamp with time zone", {
		comment: "The created date of the ReversiMatching.",
	})
	public createdAt: Date;

	@Column(id())
	public parentId: User["id"];

	@Column(id())
	public childId: User["id"];
}
