50ra4 / ele-board-app

A whiteboard-like app that you can write freely on the web
https://ele-board-app.vercel.app
0 stars 0 forks source link

データ #14

Open 50ra4 opened 2 years ago

50ra4 commented 2 years ago

prisma

next.jsサンプル

トランザクション処理

リレーション

view

マイグレーション

50ra4 commented 2 years ago

MyAQL+Prismaで持つか、Firestoreで持つか?

50ra4 commented 2 years ago

MEMO

type Memo = {
  id: string;
  uid: string;
  /** タイトル:50文字 */
  title: string;
  /** 内容:50000文字 */
  description: string;
  /** 下書き */
  isDraft?: boolean;
  /** 非公開 */
  isPrivate?: boolean;
  createdAt: string;
  updatedAt: string;
};
type MemoLog = Memo & { deletedAt: string };

TODO

type TodoTask = {
  id: string;
  parentId: string;
  done?: boolean;
  /** 50文字 */
  task: string;
  order: number;
};
type TodoList = {
  id: string;
  uid: string;
  /** タイトル:50文字 */
  title: string;
  tasks: TodoTask[];
  /** 下書き */
  isDraft?: boolean;
  /** 非公開 */
  isPrivate?: boolean;
  createdAt: string;
  updatedAt: string;
};
type TodoListLog = TodoList & { deletedAt: string };

Tag

type Tag = {
  id: string;
  uid: string;
  value: string;
};
50ra4 commented 2 years ago

編集履歴(バージョン)持つ?

type Memo = {
  id: string;
  uid: string;
  /** タイトル:50文字 */
  title: string;
  /** 内容:50000文字 */
  description: string;
  /** 下書き */
  isDraft?: boolean;
  /** 非公開 */
  isPrivate?: boolean;
  createdAt: string;
  updatedAt: string;
};
type MemoLog = Memo & { deletedAt: string };