---
source: tests/typing_surface/create_table.rs
description: "input=\"create table Memberships with pk UserId(int), GroupId(int)\" cursor=58"
expression: "& a"
---
Assessment {
    input: "create table Memberships with pk UserId(int), GroupId(int)",
    cursor: 58,
    state: Valid,
    hint: Some(
        Candidates {
            items: [
                Candidate {
                    text: "not",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "unique",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "default",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "check",
                    kind: Keyword,
                    mode: Both,
                },
            ],
            selected: None,
        },
    ),
    completion: Some(
        Completion {
            replaced_range: (
                58,
                58,
            ),
            partial_prefix: "",
            candidates: [
                Candidate {
                    text: "not",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "unique",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "default",
                    kind: Keyword,
                    mode: Both,
                },
                Candidate {
                    text: "check",
                    kind: Keyword,
                    mode: Both,
                },
            ],
        },
    ),
    parse_result: Ok(
        "CreateTable",
    ),
}
