创建notepad_list表
在“表编辑器”页面,点击“新建表”,创建notepad_list 表。notepad_list 表主要记录云笔记小程序列表信息,表结构字段如下:
名称 | 类型 | 描述 |
---|---|---|
id | bigint | 主键,自动为列分配一个连续的唯一编号,唯一标识ID |
create_time | timetamptz | 创建时间 |
update_time | timetamptz | 修改时间 |
class | text | 类名 |
title | text | 笔记标题 |
value | text | 笔记内容 |
user_id | uuid | 创建笔记的人的id |
sql建表语句
create table
public.notepad_list (
id bigint generated by default as identity,
create_time timestamp with time zone not null default now(),
state smallint null,
class text null,
value text null,
title text null,
update_time timestamp with time zone null default now(),
user_id uuid null,
constraint notepad_list_pkey primary key (id)
) tablespace pg_default;