2014-10-09 19:50:34 +00:00
|
|
|
table_name("users")
|
2018-06-06 06:07:14 +00:00
|
|
|
description("Local user accounts (including domain accounts that have logged on locally (Windows)).")
|
2014-10-09 19:50:34 +00:00
|
|
|
schema([
|
2016-06-06 16:36:53 +00:00
|
|
|
Column("uid", BIGINT, "User ID", index=True),
|
2015-02-09 01:40:35 +00:00
|
|
|
Column("gid", BIGINT, "Group ID (unsigned)"),
|
|
|
|
Column("uid_signed", BIGINT, "User ID as int64 signed (Apple)"),
|
2015-06-01 22:53:52 +00:00
|
|
|
Column("gid_signed", BIGINT, "Default group ID as int64 signed (Apple)"),
|
2017-04-13 04:48:28 +00:00
|
|
|
Column("username", TEXT, "Username", additional=True),
|
2015-02-09 01:40:35 +00:00
|
|
|
Column("description", TEXT, "Optional user description"),
|
|
|
|
Column("directory", TEXT, "User's home directory"),
|
|
|
|
Column("shell", TEXT, "User's configured default shell"),
|
2018-06-06 06:07:14 +00:00
|
|
|
Column("uuid", TEXT, "User's UUID (Apple) or SID (Windows)"),
|
2014-10-09 19:50:34 +00:00
|
|
|
])
|
2017-11-20 16:21:06 +00:00
|
|
|
extended_schema(WINDOWS, [
|
|
|
|
Column("type", TEXT, "Whether the account is roaming (domain), local, or a system profile"),
|
|
|
|
])
|
2019-01-30 17:04:54 +00:00
|
|
|
|
|
|
|
extended_schema(DARWIN, [
|
|
|
|
Column("is_hidden", INTEGER, "IsHidden attribute set in OpenDirectory")
|
|
|
|
])
|
2014-10-14 04:58:26 +00:00
|
|
|
implementation("users@genUsers")
|
2015-06-01 22:53:52 +00:00
|
|
|
examples([
|
|
|
|
"select * from users where uid = 1000",
|
|
|
|
"select * from users where username = 'root'",
|
|
|
|
"select count(*) from users u, user_groups ug where u.uid = ug.uid",
|
|
|
|
])
|