用于显示Ecto模型字段的命令,如Phoenixframework指南中所示

时间:2015-09-11 08:35:30

标签: postgresql phoenix-framework ecto

我想知道在Phoenixframework指南网站的Ecto Model章节中显示实际用户表的命令是什么:

hello_phoenix_dev=# \d users
Table "public.users"
Column     |            Type             |                     Modifiers
----------------+-----------------------------+----------------------------------------------------
id             | integer                     | not null default nextval('users_id_seq'::regclass)
name           | character varying(255)      |
email          | character varying(255)      |
bio            | character varying(255)      |
number_of_pets | integer                     |
inserted_at    | timestamp without time zone | not null
updated_at     | timestamp without time zone | not null
Indexes:
"users_pkey" PRIMARY KEY, btree (id)

0 个答案:

没有答案