스키마는 페이지에 할당할 수 있는 구조화된 데이터를 관리하는 데 사용됩니다. 테이블 정의로 생각할 수 있습니다. 스키마는 사용할 수 있는 필드와 포함할 type을 정의합니다.
Schemas are used to manage the structured data that can be assigned to pages. You can think of them as a table definition. A schema defines which fields will be available and what type they have.
스키마는 데이터가 사용되는 방식에 구애받지 않습니다. 이전 버전의 플러그인에서는 스키마를 페이지에 할당할지(page schema) 어디에서나 사용할 자유 유동 데이터를 포함할지(lookup schema) 미리 결정해야 했습니다. 더 이상 그렇지 않습니다.
Schemas are agnostic of how the data is going to be used. In previous versions of the plugin you had to decide up-front if your schema would be assigned to pages (page schema) or contain free-floating data to be used anywhere (lookup schema). This is no longer the case.
새 스키마를 생성하려면 관리자 페이지에 액세스합니다. “추가 플러그인” 섹션에서 “Struct Schema Editor”를 선택합니다. 양식을 사용하여 새 스키마를 생성합니다.
To create a new schema, log in as a Manager and access the “Admin” page. Select the “Struct Schema Editor” from the “Additional Plugins” section. Use the form to create a new schema.
스키마 이름은 소문자로 시작해야 하며 소문자, 숫자 및 밑줄 문자1)를 포함할 수 있습니다. 즉, 정규식 ^[a-z][a-z0-9_]*$와 일치해야 합니다. 이 이름과 일치하지 않는 이름은 스키마를 저장할 때 잘못된 문자가 제거됩니다.
Schema names must start with a lowercase letter, then can contain lowercase letters, numerals, and the underscore character2). In other words, must match the regular expression ^[a-z][a-z0-9_]*$. Names that don't match this will have offending characters removed when you save the schema.
목차에서 기존 스키마를 선택하고 편집할 수 있습니다.
Existing schemas can be selected in the table of contents and can be edited there.
중요: 필드는 삭제할 수 없으며 비활성화만 가능합니다!
Important: Fields can not be deleted, only be disabled!
다음 세 가지 방법으로 데이터를 관리하기 위해 스키마를 배포할 수 있습니다.
Schemas can be deployed to manage data in the three following ways:
Notes:
이전 버전의 플러그인에서는 스키마를 만들 때 향후 스키마 사용을 정의해야 했습니다. 더 이상 그렇지 않습니다. 위의 세 가지 사용 사례 모두에 대해 스키마를 동시에 사용할 수 있지만 실제로는 거의 사용하지 않을 것입니다.
In older versions of the plugin, the future use of the schema had to be defined when creating it. This is no longer the case. A schema can be used for all three of the above use cases simultaneously, though this will probably rarely be the case in the real world.
구조체 데이터 구조에 대한 자세한 내용은 struct database internals 및 csv import를 참조하세요.
For more details on the structure of struct data, see struct database internals and csv import.